Noinit section in LIM #478
-
Hello Guys, I'm trying to define a NoInit section in the linker script of my app running on U54_1 in order to save some variables through reset cycles. At this point I'm not able to do so and as I'm not that familiar with the linker script syntax I'm not sure if the problem is the way I defined the section or the fact that at reboot the HSS is doing an initialization of its own and I should also define this area into its linker file. This is how I've defined the section in the linker script: And this is how I defined a test variable in that section: int32_t NoinitNumber attribute ((section (".noinit"))); Unfortunatelly the value in the NoInitNumber variable is set to 0 at each reboot and I can't figure out why. Any feedback is welcome. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @aScurtu86 when you say the variables are resetting to 0 on reboots, is this a power cycle or starting a new debug session? Just checking as the LIM is RAM it will be in an unknown state after a power cycle. |
Beta Was this translation helpful? Give feedback.
-
Hi Hugh. |
Beta Was this translation helpful? Give feedback.
Hmm ok - so the issue I think will be that once you reset you will loose your LIM contents, the reset propagates to the L2 cache controller. You could try the following: