revise memory layout for ARM Cortex-M