AnsweredAssumed Answered

Using STLink Utility to protect bootloader

Question asked by Scott Dev on Apr 27, 2018

Hi

  I have been looking on the forum and web regarding flash memory protection,writing etc...  I basically want to write a custom bootoader and have its memory , 1st page, write protected to prevent any overwriting. I see in the STLink Utility that I can set Level 1 option and select page 0 as write protect. Will this prevent any firmware in the rest of the flash from overwriting it?

After the above, to write to the rest of the flash memory, do I simply have to use the FLASH_PECR register to unlock and lock the memory (after I send FLASH_PEKEYR)?   And the Level 1 page 0 will still be write protected?

 

Many Thanks

Scott

Outcomes