Skip to main content
Visitor II
October 10, 2024
Question

Unable to program STM32H573I-DK

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

This topic has been closed for replies.

1 reply

ST Technical Moderator
October 11, 2024

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.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks