2024-09-23 07:22 AM - edited 2024-09-23 07:23 AM
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.
Solved! Go to Solution.
2024-10-28 05:45 AM
Hello @gatadivijay ,
But STM32CubeProgrammer supports also J-LINK:
Did you try the same steps with this config?
2024-09-23 08:08 AM
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.
2024-09-23 08:25 AM
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
2024-09-23 08:35 AM - edited 2024-09-23 08:35 AM
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.
2024-10-28 05:10 AM
Thanks Imen.
But in our production set-up we are going to use Jlink.
Whatever you mentioned it is related to ST-Link.
Please can you explain how use PRODUCT_STATE when I use JLINK??
Please provide me Any script /code for this??
2024-10-28 05:45 AM
Hello @gatadivijay ,
But STM32CubeProgrammer supports also J-LINK:
Did you try the same steps with this config?
2024-10-28 05:49 AM
I can able to program with J-Link Flasher.
But Product State how can I implement on J-Link Flasher??
2024-10-28 08:11 AM
When I try this I got below issue. How can I resolve this.