MEMORY { FLASH (rx) : ORIGIN = 0x00000, LENGTH = 0x40000 /* 256K */ RAM (rwx) : ORIGIN = 0x40000, LENGTH = 0x40000 /* 256K */ } SECTIONS { .text : { *(.text.startup.main) *(.text*) *(.rodata*) . = ALIGN(4); LONG (__data_start__) *(.data*) LONG (__data_end__ - __data_start__) . = ALIGN(4); LONG (__bss_start__) *(.bss*) LONG (__bss_end__ - __bss_start__) } > FLASH .data : { . = ALIGN(4); __data_start__ = .; *(.data*) __data_end__ = .; . = ALIGN(4); __bss_start__ = .; *(.bss*) *(COMMON) . = ALIGN(4); __bss_end__ = .; } > RAM }