Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Flash Memory.
There are tricks that you can play.
About the best it to detect the power to the uC dropping and save the data as the power goes down.
If the saved value does not need to be exact you update the saved value only when it is too different then the actual value.
Depends on the nature of the data.
3v0
I'm worried about saving data into non volatile memory every 30 sec, because it will get wasted after short time.
3V0.
I can try it, but it seems to unreasonable that in such a short time i'll be able to turn off all power consumers GPIOs and peripherals and write to flash.
It seems unacheivable.
Thanks for the effort!
You mean that if i want to write to lets say 1KB of flash, then i need to allocate an array of 1KB size and have it mapped to the flash 1KB memory space that i want to write to?
Could you please explain about "make sure the compiler puts it into flash"?