Hello,
I'd like to put some variables into an uninitialized memory section. How shall I configure the linker? I'm using CCS 5.1.0.09 with compiler version 4.9.1.
Thank you
Vaclav
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.
Hello,
I'd like to put some variables into an uninitialized memory section. How shall I configure the linker? I'm using CCS 5.1.0.09 with compiler version 4.9.1.
Thank you
Vaclav
Vaclav,
This feature of the linker is described on Page 217 in SPNU118J.
In gerneral the following should work:
C File:
...
#pragma DATA_SECTION(some_struct, ".no_init_ram_sect");
struct
{
unsigned a;
unsigned b;
} some_struct;
...
The pragma DATA_SECTION is described on Page 92 in SPNU151.
Linker Command File:
...
SECTIONS
{
...
.no_init_ram_sect : {} type=NOINIT > RAM
...
}
...
Best Regards,
Christian
Hello,
Was there any modification in behavior of the build tools between 5.0.3 and 5.0.4?
Following the above instructions this works well for 4.9.7 and 5.0.1, 5.0.2, 5.0.3.
With 5.0.4 it seems, that the NOINIT is ignored, and the variables in the .no_init_ram_sect are initialized too.
Does anybody observe the same, do I miss a new setting?
Working with CCS 5.3.0, for RM48L952
Thank you for every hint!
Roger
Edit: Perhaps this one has en effect on this?: SDSCM00045211 found in DefectHistory.txt of 5.0.4.
Roger,
The v5.0.4 tools do have a bug that causes NOINIT to be ignored. You are correct that the changes made for SDSCM00045211 are the cause of the bug. There is a new bug for this problem, SDSCM00046848.
Apologies,
Steve
Code Generation Tools Support Team
Excellent... I am actually using 5.1.0.B1 at the moment and the bug is still there.