cancel
Showing results for 
Search instead for 
Did you mean: 

How to unlock the Readout protection by STM32CubeProgramer through USART

STM32L09
Associate II

I soldered a new STM32 on the board, it can enter bootloader, but it's under Readout protection(I guess I bought renovated chip), I don't know how to unlock Readout by STM32CubeProgramer, finally, I use STVP and ST-LINK V1 to connect through SWD, and change the option byte, unlock Readout protection.

I don't want to use ST-LINK and STVP, because I need to have SWD interface on the PCB(the PCB space room is very limited). I want to use STM32CubeProgramer through USART to set option byte, but I didn't find out how to set option byte if the chip is Readout protected.

1 ACCEPTED SOLUTION

Accepted Solutions

So try with unprotect enabled, here ->

AScha3_0-1747835753013.png

 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

6 REPLIES 6
AScha.3
Super User

Can you connected in bootloader do a : full erase chip, or mass erase ?

AScha3_0-1747807731369.png

 

If you feel a post has answered your question, please click "Accept as Solution".

I supposed I can, we should able to unlock by erase the whole chip, but seems I can't, it alway display a small window says"the chip is readout protected...", if I close it, and click wherever, it shows up again.

I will try it again when I am home, and paste screen shot here.

STM32L09_0-1747829245832.png

STM32CubeProgramer detect the MCU is Read out protected, then disconnect, so I can do nothing.

STM32L09_0-1747829578509.png

I can use STVP with ST-LINK through SWD to modify option byte. 

Is it possible to use ST utility to modify option byte through UART?

So try with unprotect enabled, here ->

AScha3_0-1747835753013.png

 

If you feel a post has answered your question, please click "Accept as Solution".

It works, thanks.