SAML11 Fuse Programming using NVM

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all, I am trying to program the fuses using NVM.

I don't know what the last 4 bytes of the user page are. I have attached a photo of the default userpage memory.

 

So what I did is I erased the User page address row and then wrote the 7 user words and the last default 4 bytes into the user page. I have managed to write to NVM successfully but couldn't reset the mcu afterwards. I keep going to hardfault handler.

I also keep getting the error  User page validation failure with error code 11 when I start debugging again after writing into NVM.

Last Edited: Fri. Mar 11, 2022 - 12:26 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sounds like you may have overwritten the factory settings.  Not familiar with the L11, but on the D51 the user page is 512 bytes (128 32-bit words) with the first eight words used by the CPU for calibration and setup.  The 8 words used by the CPU must not be changed when you use the other words to store user data. To write user data  first read all 128 word into an array, add your new data to the array after the first 8 words, erase the page, and re-write the whole 128 words.

John Malaugh

Last Edited: Mon. Mar 21, 2022 - 01:21 AM