Skip to main content
Visitor II
November 14, 2019
Question

The device is protected

  • November 14, 2019
  • 3 replies
  • 1591 views

My MCU is loaded with the test program at the supplier. But when I loaded the actual program, it did not allow me to erase or read the chip, and the device was protected.

    This topic has been closed for replies.

    3 replies

    Visitor II
    November 14, 2019

    There seems to be some option bytes programmed to protect the example code. Probably it's RDP == 0xBB. Setting it to 0xAA will allow you to flash your code, but the original demo will be erased forever

    Visitor II
    November 14, 2019

    I did that and still couldn't.

    Graduate II
    November 14, 2019

    Very little detail of board or connectivity.

    Could be a connection issue.

    Please try using the ST-LINK Utilities or STM32 Cube Programmer applications.

    Describe the board.

    Had success with this previously, or new board/design?

    Does mass erase clear the RDP state?​

    Visitor II
    November 14, 2019

    I got it to thank you.