diff --git a/l0/linker_scripts/STM32L0_32FLASH_8RAM.ld b/l0/linker_scripts/STM32L0_32FLASH_8RAM.ld index b4967b1b100cc27819378d06ee9284148629428c..91e1b789a35ddcf0b57cdb979ab744bd58bd2a3c 100755 --- a/l0/linker_scripts/STM32L0_32FLASH_8RAM.ld +++ b/l0/linker_scripts/STM32L0_32FLASH_8RAM.ld @@ -40,7 +40,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ /* Specify the memory areas */ MEMORY { -FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 32K +FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 32K +EEPROM (rw) : ORIGIN = 0x08080000, LENGTH = 2K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K } @@ -55,6 +56,13 @@ SECTIONS . = ALIGN(4); } >FLASH + .eeprom : + { + . = ALIGN(4); + *(.eeprom) + . = ALIGN(4); + } >EEPROM + /* The program code and other data goes into FLASH */ .text : { diff --git a/l0/linker_scripts/STM32L0_64FLASH_8RAM.ld b/l0/linker_scripts/STM32L0_64FLASH_8RAM.ld index 1a0d602c28e91e65de16d9d19ec3cd1463e13a3b..f61b86280bcce7d2511a0086b21493ced0942484 100755 --- a/l0/linker_scripts/STM32L0_64FLASH_8RAM.ld +++ b/l0/linker_scripts/STM32L0_64FLASH_8RAM.ld @@ -41,6 +41,7 @@ _Min_Stack_Size = 0x400; /* required amount of stack */ MEMORY { FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 64K +EEPROM (rw) : ORIGIN = 0x08080000, LENGTH = 2K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K } @@ -55,6 +56,13 @@ SECTIONS . = ALIGN(4); } >FLASH + .eeprom : + { + . = ALIGN(4); + *(.eeprom) + . = ALIGN(4); + } >EEPROM + /* The program code and other data goes into FLASH */ .text : {