Have been trying to force LARGE array allocation in SDRAM. Due to a bug somewhere in compiler or configuration, arrays defined in l502_user_process.c with '#include l502_sdram_noinit.h' or '__attribute__((section('.sdram_noinit')))' directives (that should allocate array in SDRAM) wrongly allocates in MEM_L1_DATA_A and overfills it. Workaround: define large arrays with these directives in l502_streams.c and include them via 'extern'.

This commit is contained in:
2025-07-18 17:48:29 +03:00
parent f19d963f09
commit 1555adc25b
22 changed files with 8536 additions and 8262 deletions

View File

@ -1,4 +1,4 @@
BFIN GAS /tmp/ccT353bR.s page 1
BFIN GAS /tmp/ccKDL9bi.s page 1
1 # 1 "gcc/l502-bf_basiccrt.s"
@ -58,7 +58,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
38 #include <cdefAD6531.h>
39 #elif defined (__AD6532__)
40 #include <cdefAD6532.h>
BFIN GAS /tmp/ccT353bR.s page 2
BFIN GAS /tmp/ccKDL9bi.s page 2
41 #elif defined (__AD6723__)
@ -118,7 +118,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
95 #elif defined (__ADSPBF548__)
96 #include <cdefBF548.h>
97 #elif defined (__ADSPBF548M__)
BFIN GAS /tmp/ccT353bR.s page 3
BFIN GAS /tmp/ccKDL9bi.s page 3
98 #include <cdefBF548M.h>
@ -178,7 +178,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
152 #elif defined (__AD6903__)
153 #include <defAD6903.h>
154 #elif defined (__AD6904__)
BFIN GAS /tmp/ccT353bR.s page 4
BFIN GAS /tmp/ccKDL9bi.s page 4
155 #include <defAD6904.h>
@ -238,7 +238,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
3 #include <sys/anomaly_macros_rtl.h>
1 /*
4 #include <defBF533.h>
BFIN GAS /tmp/ccT353bR.s page 5
BFIN GAS /tmp/ccKDL9bi.s page 5
1 /*
@ -298,7 +298,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
40 003e 41E10000 R1.H = __bss_end;
41 0042 8152 R2 = R1 - R0;
42 0044 0160 R1 = 0;
BFIN GAS /tmp/ccT353bR.s page 6
BFIN GAS /tmp/ccKDL9bi.s page 6
43 0046 FFE3DDFF CALL.X _memset;
@ -337,7 +337,7 @@ BFIN GAS /tmp/ccT353bR.s page 1
76 __end:
77 008a 2000 IDLE;
78 008c FF2F0000 JUMP __end;
BFIN GAS /tmp/ccT353bR.s page 7
BFIN GAS /tmp/ccKDL9bi.s page 7
DEFINED SYMBOLS