cancel
Showing results for 
Search instead for 
Did you mean: 

getting error while connecting ST-Link with Cube-programmer

Himanshuparmar
Associate II

I am getting error while connecting ST-link with cube-programmer in STM32H7s78-DK.
ERROR:

error: cannot connect to access port 0 if you are trying to connect to a device with trustzone enabled please try to connect with hotplug mode

1 ACCEPTED SOLUTION

Accepted Solutions
Himanshuparmar
Associate II

hello @Imen.D 

Its successfully read the ST link because I have not updated version. Currently I have updated STM32 Cube Programmer and it is read all information from MCU.
Thanks for your support. :)

View solution in original post

3 REPLIES 3
Imen.D
ST Employee

Hello @Himanshuparmar and welcome to the Community :)

Check NRST pin connection.

Try connecting in "Hot plug" mode and change the port number access.

Via STM32CubeProgrammer CLI, you can use: STM32_Programmer_CLI -c port=SWD mode=HOTPLUG --shared

(please refer to UM2237 for more details)

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

Hello @Imen.D, thank you for the connecting.
As you can see that the NRST Pin is open. I have also tried with "Hot plug" mode but the getting same error. 

 

 

Media.jfif

 

Himanshuparmar
Associate II

hello @Imen.D 

Its successfully read the ST link because I have not updated version. Currently I have updated STM32 Cube Programmer and it is read all information from MCU.
Thanks for your support. :)