Skip to content
Snippets Groups Projects
Commit 3429a371 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added the EEPROM section to the linker scripts of the L0 family

parent 3ab754ee
No related branches found
No related tags found
No related merge requests found
......@@ -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 :
{
......
......@@ -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 :
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment