Skip to main content
DRicc.2
Associate III
May 6, 2023
Question

Target is not responding error?

I have written code with two push buttons to control a set of LEDs, however every time I run the code it says target is not responding, not exactly sure what is wrong with my code.

Also I have tried other programs without pushbuttons and it uploads just fine. I have set PA14 and PA14 to GPIO_INPUT and to pull ups but that did not seem to fix the issue.

The code will be in a separate comment file.

Also I checked the hardware, pushbuttons work fine along with the LEDs.

This topic has been closed for replies.

6 replies

DRicc.2
DRicc.2Author
Associate III
May 6, 2023
Semer CHERNI
ST Employee
May 8, 2023

Hello @DRicc.2​ 

First let me thank you for posting.

Are you able to connect to the target the you get the error while executing the code. Or does the error popup when you try to start a debug session.

Could you provide the debug log for analysis?

To do so, go to the debug configuration check the "log to file" option then specifies the path where to save the log.


_legacyfs_online_stmicro_images_0693W00000bjaNnQAI.png 

KR,

Semer.

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.
DRicc.2
DRicc.2Author
Associate III
May 8, 2023

It happens when I try to upload the code, it starts uploading and then never finishes with the same line repeating "target is not responding". I am using an STM32 Nucleo L476RG board, and will send the debug configuration file later tonight.

Tesla DeLorean
Guru
May 8, 2023

Avoid using the debug pins for buttons, remove.

Use Connect Under Reset options

Jumper BOOT0 HIGH to stop your code running if you need to do that to recover.

Recover board/part with STM32 Cube Programmer directly.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..