cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to program STM32H573I-DK

pisqu0
Associate

Hello everyone,

I was just given an STM32H573I-DK to test some of the provided examples.
The issue I have that, after successfully building the project I cannot flash the binary on the device.
The tests I did are:

  • Flashing via STM32CubeIDE that returns
    "Target unknown error 32. Error in initializing ST-LINK device."
  • Using the STM32CubeProgrammer I can only connect using Hotplug Mode, for otherwise I get the following "Error: Cannot connect to access port 1! If you are trying to connect to a device with TrustZone enabled please try to connect with HotPlug mode.".
    Nonetheless even in Hotplug mode I get an error
    regarding a failure in either the download of Segment[0] or in the erasure of the flash, the difference depends on whether or not I skip the flash erase before the download.

I think this problems are caused by a closed device, after looking at the option bytes I saw the the PRODUCT_STATE is set to C6 meaning "TZ-Closed, Debug partially opened (only non-secure)".
I tried to rollback to an open state to no avail, the question is if there is the possibility to rollback to an open sate or to at least flash a firmware for testing.

Thank you very much in advance,
DR

1 REPLY 1
Imen.D
ST Employee

Hello @pisqu0 ,

Check the parameters for the debug configuration. Try to change the port number access.

You can try to connect in "hot plug" mode.

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