Part Number: TMS320F28388D
Hello everyone,
I am developing software for the CM of the TMS320F28388D and I want to store some variables inside the FLASH-Memory. When doing IPC I was able to specify a memory region with the Pragma:
#pragma DATA_SECTION(cpuToCm, "MSGRAM_CPU1_TO_CM_ECAT")
const static GPC_CPU_TO_CM cpuToCm;
Linker-CMD:
MSGRAM_CPU1_TO_CM_ECAT : > CPU1TOCMMSGRAM0_ECAT, type=NOINIT
Now I tried the same thing for other data
#pragma DATA_SECTION(CiA402ProfileObjects, "FLASH_OBJECTS")
PROTO TOBJECT OBJMEM CiA402ProfileObjects[MAX_TOTAL_AXES][13];
Linker-CMD:
FLASH_OBJECTS : > CMBANK0_SECTOR9
With this, the linker is placing the Variable inside the FLASH-Memory, but the memory isn't initialized. All I read from the memory location is 0xFFFF.
So my question is, how do I store read-only Variables inside FLASH-Memory and how can I initialize them during the FLASH-Process. (On the CM of the TMS320F28388D)
Thanks and Regards,
Marcel Kummer.