adafruit / Adafruit_nRF52_Arduino

Adafruit code for the Nordic nRF52 BLE SoC on Arduino
Other
601 stars 488 forks source link

Add .non_init RAM #741

Open ericlangel opened 1 year ago

ericlangel commented 1 year ago

Is it (already) possible to use variables that are not initialised at softreset? like: static uint8_t data[16] attribute((section(".non_init"))); or

So after a power-On Reset the Variable "counter" is random or zero the counter is increased by application.

after a softreset the variable "counter" should contain the old value before the softreset

Reason: i have an Application running which does a reset from time to time (i think it happens at BLE transfer) and some values should be hold. and i cant writ them in Filesystem, because i dont know the time of the next softreset.

brailovskii commented 11 months ago

Could you solve that problem? I think linker file should be modified by adding non_init section

ericlangel commented 11 months ago

no i couldnt solve the non_init problem

but i solved my Problem with the Soft reset. So i didnt followed this issue

so for me it is more or less closed but there is no real solution for the issue