cancel
Showing results for 
Search instead for 
Did you mean: 

readout protection without power on reset

bruno_mazzarotto
Associate II

Dear support team, 

I need to activate and deactivate the readout protection on a fully automated CI enviroment and according to the RM0440 (Note: If the read protection is set while the debugger is still connected through JTAG/SWD, apply
a POR (power-on reset) instead of a system reset.) a POR cycle is required. 

Is there a way to solve this without a POR? The used hardware for CI does not provide means to perform a POR. Is there any G3 register I can manipulate to have the desired result?

Why the behavior is different from STM32F3x? For F3 no POR is required.

Thanks in advance!

 

BR

Bruno

9 REPLIES 9
Peter BENSCH
ST Employee

Welcome @bruno_mazzarotto, to the community!

Please have a look at this video (STM32 Security tips - 3 RDP without POR) and check if you can get on with the transition from standby state, the STM32G4 should behave identically. All materials (including sources of the examples) related to this video you can find using this link.

Hope that helps?

Good luck!
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hi Peter, thanks for the support.

Unfortunately I can not add the code to trigger standy mode to our code.

Is there a way I can achieve the same results by writing registers with open_ocd?

 

I am not aware of any other way than the alternative mentioned.

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Hagi
Associate II

Maybe by manipulating FLASH_CR register, setting OBL_LAUNCH bit to 1 and wait a bit. Maybe you'll need to re-attach the openocd connection because it will reset the target.

Hagi_0-1698693016121.png

 

Douglas MILLER
ST Employee

This forum thread was marked by the moderator as needing a little more investigation, so a Support case was created in your name and will be handled off-line.

Hi, no, this does not work. Only thing that helps is to do a Power On cycle when the debugger cable is attached

Hi @bruno_mazzarotto ,

Have you been able to solve this problem?

Thanks,

JW

Hi, I've added a power on cycle on the process and then it worked.

@bruno_mazzarotto,

I see. That's the straighforward solution anyway.

Thanks.

JW