AnsweredAssumed Answered

STM32F0 read out protection at compile time

Question asked by baranov.yury on Oct 12, 2015
Latest reply on Oct 13, 2015 by baranov.yury
Hi All!
I'd like to know is there a way (linker directive or something) to set option byte value

I'm aware that I can set ROP when downloading the program via ST_link, but that means there's a chance that I forget to make appropriate setting at some moment

Another way would be checking the ROP state upon each reset, that's very reliable but implies slight code overhead

What I want to find out is a way to put default option byte values into resulting .hex file by some compiler/linker directive. Is there any?

Outcomes