cancel
Showing results for 
Search instead for 
Did you mean: 

Using STLink Utility to protect bootloader

Scott Dev
Senior
Posted on April 27, 2018 at 16:40

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

0 REPLIES 0