Hi,
I have a problem with the declaration of the tables in SDRAM.
In my project is more than a dozen files
My Linker command file for 6713 DSP is
-heap 0x400
-stack 0x400 /* very large stack for DSP programs. */
-lrts6700.lib /* floating point library */
MEMORY
{
vecs: o = 00000000h l = 00000200h
IRAM: o = 00000200h l = 0003FE00h
CE0: o = 80000000h l = 01000000h
}
SECTIONS
{
"vectors" > vecs
.cinit > IRAM
.text > IRAM
.stack > IRAM
.bss > IRAM
.const > IRAM
.data > IRAM
.far > IRAM
.switch > IRAM
.sysmem > IRAM
.tables > IRAM
.cio > IRAM
"SDRAM" > CE0
}
In another file (Tables.h) I have declared arrays:
#pragma DATA_SECTION (Table_A, "CE0");
#pragma DATA_SECTION (Table_B, "CE0");
#pragma DATA_SECTION (Table_C, "CE0");
double Table_A[64] = {0};
double Table_B[512] = {0};
double Table_C[12][32] = {0};
Data from the audio codec also writes SDRAM
When I try to compile the project everything is OK, I have only a few warnings.
But when I run the project data stored in tables are overwritten, and I do not know why.
How should I declare the arrays so that the incoming data, for example, the audio codec did not change their contents
Jarek