I'm converting a ADSP-21469 program from VisualDSP++ to CCES.
When I build the project, I get mutliple out of memory errors. I know the original program fit into memory because it's been in production for 6 years and it does not use external memory. This is what the error looks like:
[Error li1040] "C:\Users\JS\Documents\Firmware\DSP\NV_M5\system\startup_ldf\app.ldf":264 Out of memory in output section 'dxe_block2_pm_data' in processor 'p0'
Total of 0xa3d4 word(s) were not mapped.
For more details, see 'linker_log.xml' in the output directory.
Looking at the xml file, the errors are from to files, one called loopback.c and the other SPORTIsr.c.
Not sure if it's related, but I had problems compiling these files.
There were 16 of the buffers shown below.
#pragma align 4
#pragma section("seg_sdram", NO_INIT)
unsigned int CircInBuff_1[CIRC_BUF_LENGTH];
#pragma align 4
#pragma section("seg_sdram", NO_INIT)
unsigned int CircInBuff_2[CIRC_BUF_LENGTH];
through CircInBuff_16.
Following other support pages, I removed the #pragma section ("seq_sdram", NO_INIT). The error related to these went away, but now I have out of memory errors.
Any thoughts on what is causing the out of memory error?