Part Number: CC1352R
I'm working on a project in IAR using the CC1352 where we periodically put the chip into the standby low power mode, or what we are calling hibernation for this project. We could be in this mode for anywhere from a few seconds up to 10s of minutes. Upon waking from this mode back to the active mode, we are calling SysCtrlSystemReset to ensure that we start up again in a clean state. (This is an old code base and the customer is worried for the potential of long hidden bugs that could potentially show up after long periods running and multiple sleep/wake cycles without a software reset.) The issue with this though is that there are two different variables that hold key system data that can not be lost on these resets. Because this could be happening every few seconds, storing the variables in flash and then reading them out again on reboot is not an option. Would a__no_init definition of these variables work to preserve the data on the SysCtrlSystemReset calls?
- If __no_init does work, is there anything needed beyond the __no_init before defining the variables?
- If __no_init does not work, is there another software option that we could use? The power on the board is untouched during this process, so I know an external RAM chip would work, but the customer is trying to keep board costs down and would prefer to not include an external RAM on board, so we're really looking for a software solution here.