cancel
Showing results for 
Search instead for 
Did you mean: 

The device is protected

TrungNguyen
Associate II

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.

4 REPLIES 4
Stecklo
Senior

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

I did that and still couldn't.

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
Up vote any posts that you find helpful, it shows what's working..
TrungNguyen
Associate II

I got it to thank you.