cancel
Showing results for 
Search instead for 
Did you mean: 

CubeProgrammer (v2.13.0) enables read protection by accident on STM32G491VC

MichelS
Associate

I was trying to modify the option bytes (changing the bit nSWBOOT0) on my STM32G491VC with STLinkV2 (latest firmware).

After writing was succesfull, I was no longer able to flash my chip or read the flash content. it tunred out that somehow the read-out protection and write protection got enabled. The level was still showing 0xAA for the read out protection.

This has cost me quit a lot of time to disable again, since I did not plan on using the protective features at all.  This happend twice to me already.

Please fix this beahviour.

3 REPLIES 3
Sara BEN HADJ YAHYA
ST Employee

Hello @MichelS ,

Thanks for your feedback,

I couldn't reproduce the issue from my end, could you please provide a detailed scenario that led to this issue?

Sara.

vj
Associate

Hi MichelS,

I am facing a similar issue. Could you post the solution as to how you got over it ? 

Thanks

You can try to set the protection level from 0xAA to 0xBB and also set the option RDP in PCROP section to erase PCROP when RDP is decreased. Apally these changes first. Then decrease the read out level to 0xAA again.