writing to SAME70 User Signature Flash

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear all,

 

I was just testing some issues on reading/writing to the 512Byte so called 'user signature flash'. I find it quite useful to store calibration data etc.

After struggling with some unexpected results I find out that it might be a good advise to do the following sequence if you want to write new content to this part of the embedded flash:

char buffer[512];

flash_read_user_signature(buffer,512);

// manipulate the buffer to the new content, here I just change the first value of the array for demonstration

buffer[0] = 0xAA;

flash_erase_user_signature();

// write now the new buffer to the signature flash

flash_write_user_signature(buffer,512);

 

without the erasing I don't get reliable results.

 

Hope that helps in case you try to use the same. If I overlooked something please let me know. I would be happy if it works without reading and erasing before you can actually write new content to the signature flash.

 

Best Regards

Markus