Skip to main content
Explorer
January 15, 2022
Question

STM32H7 Cant Set PROT_AREA Option Bytes

  • January 15, 2022
  • 4 replies
  • 2312 views

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

    This topic has been closed for replies.

    4 replies

    ST Employee
    January 17, 2022

    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.1Author
    Explorer
    January 17, 2022

    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

    Visitor II
    March 11, 2024

    Hi,

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

    Y.H

    Explorer II
    January 23, 2025

    Hi,

    I am Facing Problem please suggest Some solution 

    i attached Batch Script running for changing option bytes and stm32cubeprogrammer.

    Prakash_Raj1994_0-1737628531831.pngPrakash_Raj1994_1-1737628585505.png

     

    Regards,

    Prakash

    Explorer II
    February 28, 2025

    still No response

    Regards,

    Raja