Skip to content

Commit 6f6dc83

Browse files
committed
litex: Use FLASH_FIRMWARE instead of FLASH in linker scripts
for compatibility with the build_memory_info script
1 parent 808b456 commit 6f6dc83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ports/litex/boards/fomu/fomu-spi.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ENTRY(_start)
88
MEMORY
99
{
1010
FLASH (rx) : ORIGIN = 0x20040000, LENGTH = 0x100000 /* entire flash, 1 MiB */
11+
FLASH_FIRMWARE (rx) : ORIGIN = 0x20040000, LENGTH = 0x100000 /* entire flash, 1 MiB */
1112
RAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x00020000 /* 128 KiB */
1213
}
1314

@@ -19,7 +20,7 @@ SECTIONS
1920
{
2021
/* This is the initialized data section
2122
The program executes knowing that the data is in the RAM
22-
but the loader puts the initial values in the FLASH (inidata).
23+
but the loader puts the initial values in the FLASH_FIRMWARE (inidata).
2324
It is one task of the startup to copy the initial values from FLASH to RAM. */
2425
.data : AT ( _sidata )
2526
{
@@ -73,7 +74,7 @@ SECTIONS
7374
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
7475
} >RAM
7576

76-
/* The program code and other data goes into FLASH */
77+
/* The program code and other data goes into FLASH_FIRMWARE */
7778
.text :
7879
{
7980
. = ALIGN(4);
@@ -88,7 +89,7 @@ SECTIONS
8889
. = ALIGN(4);
8990
_etext = .; /* define a global symbol at end of code */
9091
_sidata = _etext; /* This is used by the startup in order to initialize the .data secion */
91-
} >FLASH
92+
} >FLASH_FIRMWARE
9293

9394
/* Uninitialized data section */
9495
.bss :

0 commit comments

Comments
 (0)