Skip to main content
Explorer
June 25, 2024
Question

Error: target voltage may be too low for reliable debugging

  • June 25, 2024
  • 1 reply
  • 1607 views

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. 

 

    This topic has been closed for replies.

    1 reply

    Super User
    June 25, 2024

    @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.

    Shubh150Author
    Explorer
    June 26, 2024

    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?