Tool/software:
Could you please explain in detail what the problem is and how to solve it when using #pragma DATA_SECTION to allocate data to flash on a TMS320F28125 and the allocated data is not shown in the compiled map file?
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:
Could you please explain in detail what the problem is and how to solve it when using #pragma DATA_SECTION to allocate data to flash on a TMS320F28125 and the allocated data is not shown in the compiled map file?
Hi Tony,
The expert is currently out of office, so please expect a 1–2-day delay in response. Thank you.
Best Regards,
Aishwarya
Hello Tony,
I will need to refer you to our compiler tools experts. But in the meantime: try going to project properties > C2000 Linker > Advanced Options > Symbol Management, and add the variable or section names you need to the retain section: "Specify symbols/sections to be retained by linker (--retain)". In general, the linker will automatically eliminate symbols from the output file if it finds no reference to them to be used. Similarly for the compiler, if you declare a variable but you never assign a value to it or initialize it, the compiler will generally optimize it out at any level above -O0.
Best regards,
Ibukun