2023-01-16 05:31 AM
I need an example how to tell linker that frontend store to external sdram..
2023-01-16 06:13 AM
LD Script:
MEMORY
{
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
. . .
SDRAM_BANK1 (xrw) : ORIGIN = 0x60000000, LENGTH = 4M
SDRAM_BANK2 (xrw) : ORIGIN = 0x60400000, LENGTH = 4M
. . .
}
. . .
.sdram_section (NOLOAD) :
{
. = ALIGN(8);
*(.value)
. = ALIGN(8);
} >SDRAM_BANK1
C Code:
uint8_t sdram_array[SIZE] __attribute__((section (".sdram_section")));
2023-01-16 07:55 AM
maybe you know where to insert this 'uint8_t sdram_array[SIZE] __attribute__((section (".sdram_section"))); that frontendheap go to sdram?
'