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

@ -18,7 +18,7 @@ build/release/objs/l502_user_process.o: src/l502_user_process.c \
/home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/include/sys/lock.h \
/home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/include/machine/stdlib.h \
/home/feda/MIPT/RadioPhotonic_Subserface_radar/BlackFin/toolchain_off/bfin-elf/bin/../lib/gcc/bfin-elf/4.3.5/../../../../bfin-elf/include/alloca.h \
src/l502_defs.h src/l502_params.h gcc/l502_sdram_noinit.h
src/l502_defs.h src/l502_params.h src/l502_user_process.h
src/l502_stream.h:
@ -66,4 +66,4 @@ src/l502_defs.h:
src/l502_params.h:
gcc/l502_sdram_noinit.h:
src/l502_user_process.h: