Tool/software: Code Composer Studio
Hi there,
I'm using a C5517 device, connected to an external EPROM via EMIF (CS2 @ 0x400000-0x5fffff).
The project is using DSP-Bios 5.42.2.10, 16 bit NOR flash boot mode.
The project binary image generated by TI hex55 is stored at beginning of EPROM.
In the project I would like to define an inizialized vector located on EPROM, address it directly within the application.
As a test I defined the vector charcoord, initializing it as follow
#pragma DATA_SECTION(charcoord, ".extdata");
Uint16 charcoord[10]={0,1,2,3,4,5,6,7,8,9};
where .extdata is a section defined at address 0x500000, external EPROM.
Compiling the project I see from the .map file that the .extdata section is not inizialized:
.extdata 0 [ 00a00000 ] 00500000 * 0000000a UNINITIALIZED
[ 00a00000 ] 00500000 * 0000000a Main.obj (.extdata)
Moreover the TI hex55 utility returns the following report:
Translating .\..\Debug\ReporterNextTest.out to Binary format...
".\..\Debug\ReporterNextTest.out" ==> .bios (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .switch (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .sysinit (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .trcdata (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .data (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .gblinit (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .const (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .args (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .trace (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .text (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .cinit (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .hwi_vec (BOOT LOAD)
".\..\Debug\ReporterNextTest.out" ==> .fastcode (BOOT LOAD)
Done.
where the .extdata section containing charchoord[10] seems to be skipped.
Is there a way to let the vector charcoord be inizialized in the project to the defined values straight on the EPROM?
In other words, the .extdata section should be actully allocated on binary image, and programmed to the EPROM by means
of the TI JTAG "programmer" utility ?