Hello,
I'm working on an application for C6678 DSP using the c6000_7.4.2 code generation tools. The application works on a set of data which should be preloaded to the platform. In my case the input data is defined in a header file "input.h" that is included in main.c
the content of "input.h" is:
-----------------------------------------------------------------------------------------
#pragma DATA_SECTION(InputTable, ".dataDDR")
const float InputTable[273600] ={ ............. };
-----------------------------------------------------------------------------------------
This way the data should be stored in the external DDR3 memory of the board
However, when I try to compile the application I get the following linker error:
-----------------------------------------------------------------------------------------
"./configPkg/linker.cmd", line 150: error #10099-D: program will not fit into
available memory. placement with alignment fails for section ".cinit" size
0x10cdf3 . Available memory ranges:
LL2SRAM size: 0x80000 unused: 0x795e6 max hole: 0x794e0
-----------------------------------------------------------------------------------------
My question is now: why is this array initialized in .cinit? I thought that declaring it "const" would remove its initialization through the .cinit section.
Is there any other way of declaring a const array?
Regards,
Vitaliy