Skip to main content
Super User
December 6, 2023
Question

What if corruption of STM32 option bytes is detected?

  • December 6, 2023
  • 2 replies
  • 1511 views

Dear experts, 

A question in relation to OB behavior discussed this thread: https://community.st.com/t5/stm32-mcus-embedded-software/stm32-is-getting-stuck-frozen-and-enables-read-out-protection-at/td-p/615228

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

 

    This topic has been closed for replies.

    2 replies

    Super User
    December 6, 2023

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

    TDK_0-1701891334028.png

     

    Pavel A.Author
    Super User
    December 6, 2023

    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.