cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 Cant Set PROT_AREA Option Bytes

TCash.1
Associate III

Hello All,

I have a certain STM32H7 that I can't erase sector 0 using STM32CubeProgrammer.

I think it is because PROT_AREA_START1 and PROT_AREA_END1 are not correct. I am trying to get back to default values of

PROT_AREA_START1 =0xFF (0x0800ff00)

PROT_AREA_END1 = 0x00 (0x080000ff) to disable the protection.

However I cant Actually change the option bytes through the programmer. I get:

an error: "Expected Value for option byteP: "PROT_AREA_START!: 0xFF, fount 0x00"

RDP is level 0 (AA)

I am using ST-link. Thanks for any help,

Trevor

3 REPLIES 3
Chloe Meunier
ST Employee

Hello Trevor,

could you please share your STLink configuration?

Did you try to disconnect/connect your board?

The Security bit is disabled?

nWRPx = 1?

BR

Chloé

TCash.1
Associate III

Hi Chloe,

The results are the same after reconnects/resets/power cycling 

All security bits are disabled.

nWRPx = 1

I attached a log, where I connect, and then try a full chip erase.

Thanks,

Trevor

yhak.1
Associate II

Hi,

I have the same problem, does someone have a solution?

Y.H