cancel
Showing results for 
Search instead for 
Did you mean: 

Default values of STM32G071 option bytes

AljazKr
Associate

Hi,

I checked the default values of option bytes in STM32G071 by reading it from a device by using STM32CubeProgrammer.

I observed that values are not the same as it is specified in the RM0444.

I detected mismatch in value of PCROP1A_STRT registers and WRPxA_STRT registers.

I understand that this is related to the flash size. For example, the default value of the PCROP1A_STRT = 0x1FF (according the the RM0444), value actually written to MCU by ST is 0xFF.

In our test procedure it is specified that if PCB needs to be re-flashed, the option bytes are first cleared back to default and than the whole process of flashing and testing is repeated.

At this point, I do not know, what are the default values.

NOTE: on the MCU where I checked the default values of option bytes, they were not re-programmed yet.

Thank you for your response!

2 REPLIES 2
AljazKr
Associate

List of option bytes and their values read from MCU where they were not touched yet:

RDP=0xAA

BOR_EN=0x0

BORR_LEV=0x3

BORF_LEV=0x3

nRST_STOP=0x1

nRST_STDBY=0x1

nRST_SHDW=0x1

IWDG_SW=0x1

IWDG_STOP=0x1

IWDG_STDBY=0x1

WWDG_SW=0x1

RAM_PARITY_CHECK=0x1

nBOOT_SEL=0x1

nBOOT1=0x1

nBOOT0=0x1

NRST_MODE=0x3

IRHEN=0x1

PCROP1A_STRT=0xFF

PCROP1A_END=0x0

PCROP_RDP=0x0

PCROP1B_STRT=0xFF

PCROP1B_END=0x0

WRP1A_STRT=0x3F

WRP1A_END=0x0

WRP1B_STRT=0x3F

WRP1B_END=0x0

BOOT_LOCK=0x0

SEC_SIZE=0x0

Roger SHIVELY
ST Employee

Hello @Aljaž Krašna​ ,

There has been a case created to resolve this question and we will be reaching out to you directly.

Regards,

Roger