Skip to main content
saraiahd
Associate II
April 8, 2023
Question

ST-Link Cannot connect to access port 0

  • April 8, 2023
  • 3 replies
  • 2362 views

am trying to connect stlink v2 debugger with stm32f413 mcu hardware in Cube programming sotware

am getting Error: Cannot connect to access port 0 If you are trying to connet to a device with TrustZone enabled please try to connect with HotPlug mode

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 8, 2023

Not much information to work with here.

Suggests the chip/board aren't running.

Start by providing information about the board, how the debugger is attached, and how everything is powered

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
saraiahd
saraiahdAuthor
Associate II
April 10, 2023

what is HotPlug mode do u have any idea

Aziz BRIGUI
Technical Moderator
April 13, 2023

Hello @saraiahd​,

Welcome to ST Community !

Hot Plug mode is used to connect to the target without a halt or reset. You can check STM32CubeProgrammer user manual for further details on the connection modes.

For your specific case, as stated by @Community member​, could you provide more info on how you're connecting your debugger to the target ?

Thanks,

Aziz

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.