Hi,
I try to download FW to my device via J-link. I use SWD interface.
Sometimes I can not connect to target, but device can be selected.
The log message is as follows
Sometimes I can work well. It’s not stable.
Let me describe the connection environment
PC ⇒ J-link ⇒ wire (Dupont Line) ⇒ transfer board ⇒ wire (Dupont Line) ⇒ device
Total length is about 60cm
On the device side, the SWD path (swdio, swclk, gnd) are directly connect to the MCU.
I don’t put series resistor or pull up/pull down resistors on the path.
Display All
My question is how to improve connection reliability? Can someone give me advice?
Furthermore, in the case of failure,
I try to download FW to my device via J-link. I use SWD interface.
Sometimes I can not connect to target, but device can be selected.
The log message is as follows
Sometimes I can work well. It’s not stable.
Let me describe the connection environment
PC ⇒ J-link ⇒ wire (Dupont Line) ⇒ transfer board ⇒ wire (Dupont Line) ⇒ device
Total length is about 60cm
On the device side, the SWD path (swdio, swclk, gnd) are directly connect to the MCU.
I don’t put series resistor or pull up/pull down resistors on the path.
Source Code
- SEGGER J-Link Commander V6.22c (Compiled Dec 8 2017 15:40:14)
- DLL version V6.22c, compiled Dec 8 2017 15:39:39
- Script file read successfully.
- Processing script file...
- J-Link connection not established yet but required for command.
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link EDU Mini V1 compiled Mar 3 2022 10:17:12
- Hardware version: V1.00
- S/N: 801003045
- License(s): GDB, FlashBP
- VTref = 3.299V
- Selecting SWD as current target interface.
- Selecting 10000 kHz as target interface speed
- Target connection not established yet but required for command.
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- Target connection not established yet but required for command.
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- Target connection not established yet but required for command.
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- Target connection not established yet but required for command.
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- Target connection not established yet but required for command.
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Unknown command. '?' for help.
- Script processing completed.
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Device "KL520-WB" selected.
- Connecting to target via SWD
- Cannot connect to target.
- J-Link>
Furthermore, in the case of failure,
- I try to use an oscilloscope to measure the waveform. When I put the oscilloscope on the clk, I can download the FW normally. The input capacitance of the oscilloscope is 3.9pF.
- Base on list 1, I put 3.9pf on GND and close to the receiver side. It works fine.I don't know why 3.9pf improves connection reliability. Maybe someone can teach me. thanks.
- I download FW with a short line. It works fine. But my requirement is to download firmware using long lines.