cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H5 RDP protection C code

gatadivijay
Associate II

Hi,

Currently I can able to RDP protection ie., Product state using STM32CubeProgrammer and it is working.

But our requirement is we want to use Any HAL_driver /C-code instead of STM32Cube.

 

Any suggestion.

 

3 REPLIES 3
TDK
Guru

RDP is a hardware setting, not a HAL-specific setting. You can use it with whatever code you want.

If you don't want to use STM32CubeProgrammer or HAL functions to set the RDP, see the option byte section of the reference manual for the register interface needed to set RDP in code.

If you feel a post has answered your question, please click "Accept as Solution".
Imen.D
ST Employee

Hello @gatadivijay ,

The RDP is replaced by PRODUCT_STATE on STM32H5.

Please refer to this article : How to enable RDP-like product state flash protect... - STMicroelectronics Community

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

No I want to use HAL_Specific drivers.

If you have any sample code regarding Product State, Please can you attach related HAL Driver Functions.