Why do you have to write a key which is given in the reference manual to unlock the flash memory. What kind of security is this?
Asked
Active
Viewed 174 times
1 Answers
2
If no keys any accidental sector or mass erase would erase the FLASH. Key + command sequence is much less probable and (I use STM32 for many years) it never happened to me.

0___________
- 60,014
- 4
- 34
- 74
-
Quite common also in critical peripherals like watchdogs that can be disabled, just to avoid destructive bugs. – Damiano Sep 14 '20 at 09:56
-
How you can erase flash memory accidentally by writing a bit to a register if it is not directed in your program. If it is directed in your program you will see it erase flash memory in your tests. – tuncel3 Sep 22 '20 at 13:46
-
1@Yedin if the world was fair then your assumption is OK. But I afraid it is not. – 0___________ Sep 22 '20 at 14:25