cancel
Showing results for 
Search instead for 
Did you mean: 

Error: target voltage may be too low for reliable debugging

Shubh150
Associate III

After I upload a code by running it in debug mode, as soon as I run the debug session it shows target not responding and failed to read registers. And when I try to debug it again in OpenOCD mode it shows :-

Info : Target voltage: 0.030948
Error: target voltage may be too low for reliable debugging

I have tried with 3 other Boards and the same exact thing happens. 

If I try to ulpoad another code onto a new board, it works fine. So, could this be an issue of my code?

The ST-Link works just fine as it uploads other codes with other boards.

Please find the attached document containing the code I am was trying to upload, that seems to be causing problems with my boards. 

 

2 REPLIES 2
Andrew Neil
Evangelist III

@Shubh150 wrote:

could this be an issue of my code?


No: The ST-Link measures the Target supply voltage on its VAPP pin:

AndrewNeil_0-1719357858393.png

It's a hardware measurement - not a software thing.

So check that you have this connected correctly.

Check the actual voltage using a meter.

Thank you for your reply, I have not connected the VAPP pin anywhere on my board. I have only connected VDD, GND, SWCLK and SWDIO.

Should I also connect the VAPP pin to my board.....if so then where?