This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Not Saving in Flash Memory

Hi,
I am saving data in flash memory but when I read after restarting the device it shows FF. 
How can I read from flash after restarting the device? and how can I check that there is already data?
Thanks 

Parents Reply
  • If you are in a function called directly from your main() function, then you are not in an interrupt. But if you are in some sort of event handler, you are in an interrupt. You can also check this using 

    uint8_t current_priority = current_int_priority_get();

    If the current_priority that is returned is 15, then you are in the main context. If the number is smaller than 15, you are in an interrupt.

Children
No Data
Related