2024-06-25 04:12 PM
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.
2024-06-25 04:25 PM
@Shubh150 wrote:could this be an issue of my code?
No: The ST-Link measures the Target supply voltage on its VAPP pin:
It's a hardware measurement - not a software thing.
So check that you have this connected correctly.
Check the actual voltage using a meter.
2024-06-26 05:15 AM
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?