cancel
Showing results for 
Search instead for 
Did you mean: 

Fail to read Ext flash after regression

Kostas Papouis
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Kostas Papouis
Associate III

Issue was the mode in the cube programmer set in hot plug where it should have been set to Normal. 

All good

View solution in original post

1 REPLY 1
Kostas Papouis
Associate III

Issue was the mode in the cube programmer set in hot plug where it should have been set to Normal. 

All good