Skip to main content
Associate II
June 21, 2024
Solved

getting error while connecting ST-Link with Cube-programmer

  • June 21, 2024
  • 2 replies
  • 2915 views

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

Best answer by Himanshuparmar

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. :)

2 replies

Technical Moderator
June 21, 2024

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)

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
Associate II
June 24, 2024

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

 

HimanshuparmarAuthorBest answer
Associate II
June 24, 2024

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. :)