cancel
Showing results for 
Search instead for 
Did you mean: 

STLink cannot communicate with STM32L5 : DEV_TARGET_NOT_HALTED

MaxenceV
Visitor

Hello,

I am using the discovery kit with STM32L562QE MCU (UM2617). I tried to disable the TrutZone following the instructions in this article : https://community.st.com/t5/stm32-mcus/how-to-disable-trustzone-on-stm32u5-series/ta-p/49793

However, after doing Step 3 (in the article), I can no longer interact with my card. When I try to connect to it using STM32CubeProgrammer or by flashing, I always have the same error : ST-LINK error : DEV_TARGET_NOT_HALTED

MaxenceV_0-1760362265428.png

I found some persons with the same problems :

https://community.st.com/t5/stm32-mcus-boards-and-hardware/st-link-error-dev-target-not-halted/td-p/278454

https://community.st.com/t5/stm32-mcus-boards-and-hardware/error-in-initializing-st-link-device-reason-9-target-not-halted/td-p/85174

But the solutions described do not seem to work for me. Here is what I've tried :

- Power off / Power on

- Update STLink

- Set NRST to high (because there are many NRST on the board, maybe I did not set the right ones)

- Switching to boot mode (same thing than above)

 

Has anyone an idea on how to solve this problem ?

Thanks in advance for your help,

Maxence V

2 REPLIES 2
Aziz BRIGUI
ST Employee

Hello @MaxenceV,

Try connecting in hotplug mode with Boot0 pin at VDD.

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.

Hello,

Just to be sure that we are talking about the same thing. Here is the only reference I found about boot0 in the doc.

MaxenceV_0-1760363119250.png

After setting, boot0 at 3V3 (I did the same setup as the doc), and trying to connect in Hot plug mode the error has changed. Now I have this :

MaxenceV_1-1760363233715.png