cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to set the option bytes in my firmware?

AAles.5
Associate

Hello everyone,

I must start a production of PCBA which use the MCU STM32G474QET6 and I need to protect my firmware, I want to set the read protection at Level 1. Is it possible to set that option byte in the firmware when I flash the firmware?

Thanks.

Best regards,

Andrea Alessi

1 REPLY 1
Peter BENSCH
ST Employee

Welcome, @AAles.5​, to the community!

Yes, of course you can set the byte option during programming.

There is a lot of information about it, e.g. in the Knowledge Base, either using a search for "How to change the Read Out Protection" or directly here. Even if the G4 is not explicitly mentioned there, the procedure is essentially identical.

Note, however, that level 1 is only a simple protection. With level 2, you are at the maximum possible security level, but level 2 is a one-way street because you can no longer access the memory from outside. Details can be found in RM0440, e.g. section 3.4.

Hope that helps?

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.