Who Sets the BFB2 Bit After Option Bytes Erase in STM32G4?
Hello, I am working with an STM32G4 microcontroller and noticed an unexpected behavior regarding Bit 20 (BFB2) in the User & Read Protection Option Bytes.
According to the reference manual, BFB2 is a read-only bit.
After performing an option bytes erase in Keil, I expected BFB2 to be cleared to 0 (default).
However, after a system reset, I observed that BFB2 is set to 1.
I would like to understand:
Who sets BFB2 to 1 after an option bytes erase?
Is this controlled by bootloader behavior, internal flash controller logic, or some default hardware mechanism?
