Showing results for 
Search instead for 
Did you mean: 

What if corruption of STM32 option bytes is detected?

Pavel A.
Evangelist II

Dear experts, 

A question in relation to OB behavior discussed this thread:

Is there documentation or App note that explains what happens (by design or otherwise) when STM32 detect corruption of OBs during load? Especially, considering possible radiation damage, torture attacks etc. causing denial of service?

-- Pavel



For the L4 (chip in question), which has complementary bytes to enable this sort of checking, behavior is specified in the RM:



If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Evangelist II

So let's see... BOR=0 assume OK... WRP none - assume OK.  RDP level 1 - assume OK, can be recovered via debug interface... But RCROP on whole flash? this will cause immediate failure of firmware not built in the PCROP mode (execute-only). Results in denial of service.