2025-03-12 3:53 PM
Hello Community,
i have followed the documentation on how to enable RDP-like product state flash protection in STM32H5 microcontrollers.
https://community.st.com/t5/stm32-mcus/how-to-enable-rdp-like-product-state-flash-protection-in-stm32h5/ta-p/708082
In my custom hardware i have an external SPI flash. The issue i have is that after regression, i am not able to read the content of the external flash (i get an error saying Data read failed ). There is no issue on reading the internal flash though. Following are the commands i use
-c port=SWD freq=4000 UR -el "K:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\ExternalLoader\STM32H5_FLASHLOADER.stldr"
-e all
-d "C:\Firmware\Test.hex" -v
-ob PRODUCT_STATE=0x17
--scriptdisconnect
-c port=swd mode=hotplug reset=swrst
-sdp C:\Firmware\Security\DA_ConfigWithPassword.obk
-ob PRODUCT_STATE=0x72
I have used the default DA_ConfigWithPassword.xml provided in the cubemx directories
Anyone knows what could be the issue here?
Any help is much appreciated.
Solved! Go to Solution.
2025-03-12 4:23 PM
Issue was the mode in the cube programmer set in hot plug where it should have been set to Normal.
All good
2025-03-12 4:23 PM
Issue was the mode in the cube programmer set in hot plug where it should have been set to Normal.
All good