adc callback reached, llm linker script changes

This commit is contained in:
2025-03-24 17:19:55 +01:00
parent 0eafcd109c
commit 852ce2fbae
7 changed files with 94 additions and 101 deletions

View File

@ -62,7 +62,9 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
MEMORY
{
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 1024K
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512K /* D1 domain AXI SRAM */
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K /* D2 domain AHB SRAM */
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K /* D3 domain AHB SRAM */
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
}
@ -135,36 +137,39 @@ SECTIONS
/* used by the startup to initialize data */
_sidata = LOADADDR(.data);
/* Initialized data sections goes into RAM, load LMA copy after code */
/* D1 domain RAM section for DMA-accessible data */
.d1_data :
{
. = ALIGN(4);
*(.d1_data) /* DMA-accessible data */
*(.d1_data*)
. = ALIGN(4);
} >RAM_D1
/* Move .data and .bss to RAM_D1 instead of DTCMRAM */
.data :
{
. = ALIGN(4);
_sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */
*(.data*) /* .data* sections */
. = ALIGN(4);
_edata = .; /* define a global symbol at data end */
} >DTCMRAM AT> FLASH
} >RAM_D1 AT> FLASH
/* Uninitialized data section */
. = ALIGN(4);
.bss :
{
/* This is used by the startup in order to initialize the .bss secion */
_sbss = .; /* define a global symbol at bss start */
_sbss = .;
__bss_start__ = _sbss;
*(.bss)
*(.bss*)
*(COMMON)
. = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */
_ebss = .;
__bss_end__ = _ebss;
} >DTCMRAM
} >RAM_D1
/* User_heap_stack section, used to check that there is enough RAM left */
/* Keep stack in DTCMRAM for better performance */
._user_heap_stack :
{
. = ALIGN(8);