Hello,
i am using the ezdsp5515 USB-Stick, booting from NOR-Flash.
The NOR-Flash is programmed with "programmer_c5515_ezdsp.out"
In my application i use large arrays with constant data.
The arrays are not fitting into SDRAM, so i want to give them at a defined address on the NOR-Flash.
But how can i map them into NOR-FLASH without loading the data into SDRAM by the bootloader?
i tried to map the data into NOR-Section,... in debug mode all the data is -1, even when the array is initialized.
After programming to NOR-Flash the DSP is not running.
Without mapping data to NOR-Flash --> the DSP is running after programming.
memory mapping:
MEMORY {
PAGE 0: VECT: origin = 0xe00000, len = 0x100
PAGE 0: DARAM: origin = 0x3c0, len = 0xfc3e
PAGE 0: SARAM: origin = 0x10000, len = 0x3e000
PAGE 0: NAND: origin = 0x800000, len = 0x400000
PAGE 0: SAROM: origin = 0xfe0600, len = 0x1f9fe
PAGE 0: SARAM31: origin = 0x4e000, len = 0x1f00
PAGE 0: CROM: origin = 0xfe0000, len = 0x600
}
SECTIONS
{
.text >> SARAM|DARAM /* Code */
/* Both stacks must be on same physical memory page */
.stack > DARAM /* Primary system stack */
.sysstack > DARAM /* Secondary system stack */
.data >> DARAM|SARAM /* Initialized vars */
.bss >> DARAM|SARAM /* Global & static vars */
.const >> DARAM|SARAM /* Constant data */
.sysmem > DARAM /* Dynamic memory (malloc) */
.switch > DARAM /* Switch statement tables */
.cinit > DARAM /* Auto-initialization tables */
.pinit > DARAM /* Initialization fn tables */
.cio > SARAM /* C I/O buffers */
.args > SARAM /* Arguments to main() */
.charrom > CROM
.ioport > IOPORT PAGE 2 /* Global & static ioport vars */
.printf > SARAM
vectors : > VEC ALIGN = 256
.constdata: NAND
}
... usage in code:
#pragma DATA_SECTION(myData, ".constdata");
const int myData[N];
Please help me to solve this problem.
thanks,
Harald Fenzl