ram: stm32: add memory mapping selection support