2018-05-28 03:46 AM
Hi All,
I have tried to connect my custom target board with ST-link/V2 ISOL.
when I run STM32 ST-Link Utility, it looks OK, setting is captured as follows
after connect 20 pin JTAG cable to my custom board, STM32F103RF with empty flash.(I haven't flash it yet)
few seconds later, setting is changed as follows,
after error, I have to disconnect and reconnect USB cable connected to PC, and re-run ST-link utility.
Would you please let me know what is wrong with my setting or connection ?
FYI, ST-link/V2 is updated with latest firmware.
Thanks in advance.
Best Regards,
Hae Ryong
Solved! Go to Solution.
2018-05-28 09:02 PM
Hi All,
Thanks for your feedback.
I have found the cause of error, we have designed SWDIO, SWDCLK pin as GPIO for later use, so there are capacitors connected on the line, it may cause signal error.
When we removed capacitors, ST link worked OK.
2018-05-28 04:25 AM
Even on the 1st picture the target could not be detected. Not a good sign.
Try to lower the frequency?
-- pa
2018-05-28 05:26 AM
Is the interface powered via VTarget on pin 1 or 2?
2018-05-28 08:44 PM
Connection is as follows
1, 2 : 3.3V power
7 : SWDIO
9 : SWCLK
15 : NRST
remains are GND or open
I have checked NRST pin, when I started connect, then it went to LOW and never went back to HIGH.
Any Idea about why NRST stays at LOW ?
2018-05-28 09:02 PM
Hi All,
Thanks for your feedback.
I have found the cause of error, we have designed SWDIO, SWDCLK pin as GPIO for later use, so there are capacitors connected on the line, it may cause signal error.
When we removed capacitors, ST link worked OK.
2018-05-28 09:08 PM
Check VDDA supply, this powers the POR circuit which can clamp NRST low.
2018-05-28 09:20 PM
Target -> Settings
when I tried to change Frequency at Settings menu, it showed as follows and I could not try connection for error
2018-05-28 09:24 PM
Thanks for your prompt feedback
I have checked VDDA pin of STM32F103 chipset.
before I tried connection, it was 3.3V, and when I tried to connect, it went to LOW and stayed
following is trace.log, FYI
===============
cErrLog::SetLogTraceOn
STLinkUSBDriver.dll loadedST-Link/V2 device detectedTarget voltage detected: 3.461933Driving NRST lowError getting target IDCODE: if SWD, check SWD connectionError (4) while initializing ST-Link in SWD modeST-Link/V2 device detectedTarget voltage detected: 3.461933Driving NRST lowError getting target IDCODE: if SWD, check SWD connectionError (4) while initializing ST-Link in SWD modeST-Link/V2 device detectedTarget voltage detected: 3.450888Driving NRST lowError getting target IDCODE: if SWD, check SWD connectionError (4) while initializing ST-Link in SWD modeST-Link/V2 device detectedTarget voltage detected: 3.463511Driving NRST lowError getting target IDCODE: if SWD, check SWD connectionError (4) while initializing ST-Link in SWD mode=============