memory.x 318 B

123456789101112131415
  1. MEMORY {
  2. BOOT2 : ORIGIN = 0x10000000, LENGTH = 0x100
  3. FLASH : ORIGIN = 0x10000100, LENGTH = 2048K - 0x100
  4. RAM : ORIGIN = 0x20000000, LENGTH = 256K
  5. }
  6. EXTERN(BOOT2_FIRMWARE)
  7. SECTIONS {
  8. /* ### Boot loader */
  9. .boot2 ORIGIN(BOOT2) :
  10. {
  11. KEEP(*(.boot2));
  12. } > BOOT2
  13. } INSERT BEFORE .text;