Skip to main content
TrungNguyen
Associate
November 14, 2019
Question

The device is protected

  • November 14, 2019
  • 4 replies
  • 1637 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.

4 replies

Stecklo
Senior
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

TrungNguyen
Associate
November 14, 2019

I did that and still couldn't.

Tesla DeLorean
Guru
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?​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
TrungNguyen
Associate
November 14, 2019

I got it to thank you.