Hi there, embedded friends,
did you know that STM32 MCUs can provide you with some effortless security features that you can use freely?
STM32 has some important option bytes to be used:
- your code you put on the MCU flash is not protected. you think its valuable to you? if yes, you should set RDP to its corresponding level. (read about RDP option bytes).
- your code has some secure info, maybe private data, special keys e.t.c ? if yes, a malicious code could run in your boot or startup code, and it might access all your flash and "see" your whole flashed code/data. if you wish to prevent that, uses PCROP in your option bytes.