Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RAM retention between system resets (#pragma NOINIT replacement)

Hi,

My application is based of ble_freertos_hrs example (SDK 14.2, nRF52832) and I need some variables to survive an assertion.

It appears that Keil has deprecated #pragma NO_INIT that did just that.

I've noticed a post dealing with same issues here, but unfortunately, I find it very hard to follow as I'm not very familiar with Linker configuration files etc.

Is there a simple step-by-step guideline as how to make it work?

Thanks

Related