cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H563Zi: Error in initializing ST-LINK device.

jowakar122
Associate III

Hii,

I am using Nucleo-H563Zi. Suddenly I got  "Error in initializing ST-LINK device" Reason: Unknown. Please check power and cabling to target. What I have tried to solve this:

. Connected pin BOOT0 and VDD and tried to connect to cube programmer.

. tried using power down and under reset mode to connect 

none of the above helped me to connect and earse the full chip.
I have gone through every thread related to this problem but none helped. I have ran out of options. It would be great if someone assist me in this problem.Annotation 2024-11-27 182306.png

17 REPLIES 17
STea
ST Employee

Hello @jowakar122 ,

did you change the default OptionBytes with cube programmer before this issue popped ?

do you have a firmware on your board related to security, OptionByte software configuration or any other protections?

did you try to connect using another cable? 
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

I changed the product state value to 17. 
I was trying to implement OEMiROT_BOOT on my device by following: How to start with OEMiRoT on STM32H573 and 563–Arm® TrustZone® enabled. Yes, I tried connecting using another cable.

I also tried to change the product state value but can'tAnnotation 2024-11-28 094501.png

Hello @jowakar122 ,

did you try to execute the regression script as described in the wiki page section: 2.6.1. Full regression from Provisioned state using a script (included in the STM32CubeFW)
did you follow the necessary steps for the provisioning phase described in the WIKI or you changed the state manually via cubeProgramer ?
Regards

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

No, I didn't execute the regression script. I changed the state manually using cubeProgramer

Later I tried the full regression, but I got an error. Annotation 2024-11-29 144027.png  I checked all the files path that are used in the regression script and everything was at place. Then I tried to run one command at time as it was in the regression file to find out where the problem lies. And the first thing that takes place in regression is to stop/halt debug authentication using  cli command: "debugauth=3". It was unable to open SDM  Lib.

Annotation 2024-11-29 144501.png

 Then I upgraded STM32CubeProgrammer and ST-Link but still the error remains.

@STea  would be great if you help me out with the problem.

 

Hello @jowakar122 ,

  1. open cubeProgrammer 
  2. go to secure programming panel
    STea_0-1733134652363.png 
  3. click on discover while the device is disconnected
  4. if you have supplied the default password when switching to provisioning state perform a full regression with the default password in the following path C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\DA_Default_Config\STM32H5\password.bin

Regards 
Hichem

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Has my device got locked or what? Even with your suggestion nothing is happening.Annotation 2024-12-02 175713.png