This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hi,
Few doubts about struct parameters in RAM and Flash.
A struct parameter "zhixing" contains 30 16-bit int parameters. In the map, the start address is C5DC, with then end address C5FA. But in the memory map, there are something like holes after the struct.
1 0000c5dc _zhixing
1 0000c600 _path_par
It appears in old compiler like 4.1.3, and in new one like 16.9.2.
Is it normal?
If there's the default value for the struct parameter, where will the be saved in Flash?
Is there something similar to RAM, like hole, with and without optimization?
Thanks a lot.
Br, Jordan
The most likely explanation is that the next variable, path_par, requires data blocking. In this particular case, it means path_par must be located at the next 64-word aligned address. To understand data blocking better, please see the article Data blocking in the C2000 MCU compiler explained.
Thanks and regards,
-George