2025-03-28 9:03 AM
Greetings,
I would like to know, in summary, what are the key main differences between RDP (ReadOut Protection) and PcROP (Proprietary Code Readout Protection), which one is safer and use cases.
Thank you!
Solved! Go to Solution.
2025-03-28 11:04 AM
Hello @j_filipe ,
the RDP is the main protection to be used to protect your code from read out. It protects all the flash at once.
The PCROP principle is to protect only part of the flash so that it becomes "execute only". This allows providing some library without disclosing the binary. A third party can develop code and jump to the code inside PCROP area. The constraint is that code protected by PCROP cannot read data inside this area. This means you need to use specific compiler option to have no data read but only instructions.
So, 99% chance you only need RDP :)
Best regards
Jocelyn
2025-03-28 10:10 AM
Hello,
Please refer to the AN4758 "Proprietary code read-out protection on STM32L4, STM32L4+, STM32G4 and STM32WB Series MCUs"
2025-03-28 11:04 AM
Hello @j_filipe ,
the RDP is the main protection to be used to protect your code from read out. It protects all the flash at once.
The PCROP principle is to protect only part of the flash so that it becomes "execute only". This allows providing some library without disclosing the binary. A third party can develop code and jump to the code inside PCROP area. The constraint is that code protected by PCROP cannot read data inside this area. This means you need to use specific compiler option to have no data read but only instructions.
So, 99% chance you only need RDP :)
Best regards
Jocelyn