Part Number: LPSTK-CC1352R
Other Parts Discussed in Thread: CC1352P, CC1352R
Tool/software: TI C/C++ Compiler
Hi,
I am trying to store a static variable within a non-initialized memory with the cc1352 like this:
#pragma NOINIT (_var) uint32_t _var[10];
Everything seems to be fine from the memory map file (*.map):
.TI.noinit
* 0 20008990 0000000a UNINITIALIZED
20008990 0000000a foo.obj (.TI.noinit:_var)
However, the startup code ignores my settings and initialize everything to zero.
Therefore, the cc135x technical Manual mention that:
SRAM Auto-Initialization
The SRAM can be initialized by dedicated auto-initialization hardware. All memory locations are initialized
to zero and the parity information is initialized as required.
now, I am confused.
How could we reserve a non-initialized area with the cc1352?
Sincerely