cancel
Showing results for 
Search instead for 
Did you mean: 

Device is protected

GEvan
Associate

I'm sorry, I'm not a STM8 developer

I just want to upgrade an RFID reader

The CPU is STM8S003F3

The programmer is ST-LINK V2

The connection is SWIM

The programmer is ST Visual Programmer

It gives me the error "The device is protected"

Is there any way to erase everything to update the firmware?

1 REPLY 1
Cristian Gyorgy
Senior III

Hi!

Any MCU out there should be protected. The STM8 has a so called Read-Out Protection mechanism.

In order to disable the read out protection, you only need to program the ROP option byte to a value different than 0xAA, normally 0x00 (the programmer should have a special command for this, like unlock device or so).

Through this operation the device will erase itself, so make sure you have the right firmware to write back.

Good luck!