Wednesday, 15 January 2020

Problems connecting ST-Link V2 and STM32F4 discovery board


I'm unable to connect to my STM32F4Discovery board using an ST-Link/v2.


I've removed jumpers from CN3, connected the cables correctly but the utility tool won't detect anything...


Using the ST-Link/v2 manual:


PIN1  (VAPP)      -> VDD
PIN7 (TMS_SWDIO) -> PA13
PIN9 (TCK_SWCLK) -> PA14

PIN20 (GND) -> GND

Here is the physical connection:


enter image description here


And software settings:


enter image description here


This is the error message that I get when trying to connect:


enter image description here


Here is the log message that I get in trace:


ST-Link/V2 device detected

Target voltage detected: 0.601975
Driving NRST low
Error getting target IDCODE: if SWD, check SWD connection
Error (4) while initializing ST-Link in SWD mode

Please help, it's driving me mad...



Answer




Target voltage detected: 0.601975




You need to power your target. The debug adapter does not provide power, it uses the Vtarget pin to determine the output voltage levels.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...