<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119448/connection-fail-via-swd-with-jlink</link><description>We&amp;#39;re using nrf52833 and our target board is already running our program well. 
 Then 
 we&amp;#39;d like to flash by using Jlink SWD programmer. 
 So, we connected vref, gnd, swdio swclk pin between our target and jlink&amp;#39;s 20 pin connector by wire. 
 When we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Mar 2025 02:43:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119448/connection-fail-via-swd-with-jlink" /><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/527070?ContentTypeID=1</link><pubDate>Thu, 13 Mar 2025 02:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32989cc7-b069-4483-9db7-bcd8dbeadeaf</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Thanks for your support.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I used another nRF52832 DK board as a debugger apart from nRF52833 DK and tested our target with j-link connection.&lt;/p&gt;
&lt;p&gt;It works well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, m&lt;span style="font-family:inherit;"&gt;aybe,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;it might work well using nRF52833 DK as a debugger when I&lt;span&gt;&amp;nbsp;connect a female-to-female jumper wire, or a 2 pin header jumper to P22.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Jaehong Park&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/526750?ContentTypeID=1</link><pubDate>Tue, 11 Mar 2025 12:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172b26b4-a2cf-4834-870b-67fb2d763134</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you made any soldering modifications or changes to the DK? (Please verify this.) It looks like the DK is not being detected.&lt;/p&gt;
&lt;p&gt;You only need to follow the connections mentioned&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html"&gt; in this section.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt; Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/526459?ContentTypeID=1</link><pubDate>Mon, 10 Mar 2025 01:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12c3a977-3f96-45d1-aee5-127c4c80c3ae</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have tested j-link connection between our target and DK board.&lt;/p&gt;
&lt;p&gt;When DK board was connected with RTT Viewer on my PC, the noti message with &amp;quot;update on Jlink OB fw&amp;quot;showed on RTT Viewer.&lt;/p&gt;
&lt;p&gt;And I update Jlink OB on my DK board and I tested again j-link via swd with my target.&lt;/p&gt;
&lt;p&gt;Then the following errors happened. please advice me why this happened and jlink OB connection failed even with our target.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Program Files\SEGGER\JLink_V794e&amp;gt;JLink.exe
SEGGER J-Link Commander V7.94e (Compiled Jan 15 2024 15:20:36)
DLL version V7.94e, compiled Jan 15 2024 15:18:46

Connecting to J-Link via USB...O.K.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Oct  9 2024 11:00:56
Hardware version: V1.00
J-Link uptime (since boot): 0d 00h 02m 58s
S/N: 685079944
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
USB speed mode: High speed (480 MBit/s)
VTref=3.300V


Type &amp;quot;connect&amp;quot; to establish a target connection, &amp;#39;?&amp;#39; for help
J-Link&amp;gt;connect
Please specify device / core. &amp;lt;Default&amp;gt;: NRF52833_XXAA
Type &amp;#39;?&amp;#39; for selection dialog
Device&amp;gt;
Please specify target interface:
  J) JTAG (Default)
  S) SWD
  T) cJTAG
TIF&amp;gt;S
Specify target interface speed [kHz]. &amp;lt;Default&amp;gt;: 4000 kHz
Speed&amp;gt;
Device &amp;quot;NRF52833_XXAA&amp;quot; selected.


Connecting to target via SWD
InitTarget() start
InitTarget() end - Took 108ms
Connect fallback: Reset via Reset pin &amp;amp; Connect.
InitTarget() start
InitTarget() end - Took 109ms
Cannot connect to target.
J-Link&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please help me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/526398?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 16:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfd90316-cc92-4a51-868a-2545afc3e15e</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Above link was&amp;nbsp;&amp;quot;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html"&gt;https://docs.nordicsemi.com/bundle/ug_nrf52832_dk/page/UG/dk/ext_programming_support_P20.html&lt;/a&gt;&amp;quot;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/526397?ContentTypeID=1</link><pubDate>Fri, 07 Mar 2025 15:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aefbf234-b3f1-41b9-827b-f3d50d59ce6f</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Hi Menon,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;the issue occurs when you use an external j-link debugger, but there is no issue for programming when using the nRF52833 DK as the debugger.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, there is still the issue for debugging for using RTT viewer even when using the nRF52833 DK as the debugger.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;I have looked more into the following link referring to nRF52832 DK. &amp;quot;&lt;/span&gt;docs.nordicsemi.com/.../ext_programming_support_P20.html&amp;quot;&lt;/p&gt;
&lt;p&gt;Here, it says the more connection for reset pin ,apart from pins connection of swclk, swdio, vcc and gnd.&lt;/p&gt;
&lt;p&gt;So,&lt;/p&gt;
&lt;p&gt;c&lt;span style="font-family:inherit;"&gt;an you tell me about the pin connections between our external target board and nRF52832 DK debugger.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Then the next time after solving it, I may have to solve issues between our board and j-link external debugger.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/526183?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 13:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:011cb483-416f-4dee-8777-6a46c76b1a89</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From your response, I understand that the issue occurs when you use an external debugger, but there is no issue when using the nRF52833 DK as the debugger. Please correct me if I’m wrong.&lt;/p&gt;
&lt;p&gt;If that is the case, the problem is likely related to the connection between your J-Link debugger and your custom board. Could you please ensure that the power supply is stable while using the external debugger?&lt;/p&gt;
&lt;p&gt;From the last shared logs, it appears that the target device is not being detected.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525862?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 06:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48caae0-08a4-40bf-8952-c92a362afecc</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;Today, I use nrf52833 DK board as a debugger for our target device following this link.&lt;br /&gt;The link is &amp;quot;&lt;a href="https://docs.nordicsemi.com/bundle/ug_nrf52833_dk/page/UG/dk/hw_debug_out.html"&gt;&amp;quot;&amp;gt;docs.nordicsemi.com/.../hw_debug_out.html&amp;quot;&lt;/a&gt; .&lt;br /&gt;&lt;br /&gt;After test as above,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Our target is working good with debugger as DK board.&lt;/p&gt;
&lt;p&gt;It is so good for us.&lt;/p&gt;
&lt;p&gt;Then the connection problem with j-link device still happen as before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please advice us why to happen and how to solve.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525842?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 00:44:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac7c2fe5-48e8-441c-ac7e-715f18167a13</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;After seeing the link you suggested, I checked my issue.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then No&amp;nbsp;CONFIG_GPIO_AS_PINRESET was defined in my code. we don&amp;#39;t use reset (p0.18) pin in our project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and then I did it with using &amp;quot;nrfjprog --recover&amp;quot; and &amp;quot;nrfjprog --eraseall&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but they fails and give us the following errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;C:\Program Files\SEGGER\JLink_V794e&amp;gt;nrfjprog --recover&lt;br /&gt;[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 316 milliseconds with result -102&lt;br /&gt;ERROR: Unable to connect to a debugger.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;C:\Program Files\SEGGER\JLink_V794e&amp;gt;nrfjprog --eraseall&lt;br /&gt;[error] [ Client] - Encountered error -102: Command connect_to_emu_with_snr executed for 399 milliseconds with result -102&lt;br /&gt;ERROR: Unable to connect to a debugger.&lt;br /&gt;[error] [ Worker] - An unknown error.&lt;br /&gt;ERROR: JLinkARM DLL reported an error. Try again. If error condition&lt;br /&gt;ERROR: persists, run the same command again with argument --log, contact Nordic&lt;br /&gt;ERROR: Semiconductor and provide the generated log.log file to them.&lt;br /&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;br /&gt;NOTE: Any generated log error messages will be displayed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, any advice for us?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525708?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 12:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ada7f97-425a-4963-94c8-1c22f3025783</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please check this old DevZone case and see if it is relevant: &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68959/programmation-error-due-to-reset-pin" target="_new"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/68959/programmation-error-due-to-reset-pin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525651?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 07:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd92a1cf-e11e-470f-9f26-6b0423f4e92d</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;I don&amp;#39;t know which SDK and version. but I used &amp;quot;s113_nrf52_7.2.0_softdevice.hex&amp;quot; in our project starting on 2021.01.27.&lt;br /&gt;and I cannot open old DevZone thread you suggested before. please check this and again give me a link.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;In addition, our program is a old custom application and already on mass production. However, there are problems on our project so I am involved with it, currently. so I don&amp;#39;t know the development history well. a&lt;/p&gt;
&lt;p&gt;Anyway, it&amp;#39;s my conditions for this project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our old project is running well under the DFU for fw update using nRF connect for mobile app.&lt;/p&gt;
&lt;p&gt;Here, apart from DFU, I&amp;#39;d like to debug our target via jlink debugger (swd) and see the RTT logs from our target.&lt;/p&gt;
&lt;p&gt;Then RTT viewer give me the error.&lt;/p&gt;
&lt;p&gt;The error log are as followings, again:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;LOG: J-Link RTT Viewer V7.94e: Logging started.&lt;br /&gt;LOG: Connecting to J-Link via USB...&lt;br /&gt;LOG: Device &amp;quot;NRF52833_XXAA&amp;quot; selected.&lt;br /&gt;LOG: InitTarget() start&lt;br /&gt;LOG: InitTarget() end - Took 2.52ms&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: Failed to attach to CPU. Trying connect under reset.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: Connect fallback: Reset via Reset pin &amp;amp; Connect.&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;LOG: InitTarget() start&lt;br /&gt;LOG: InitTarget() end - Took 3.22ms&lt;br /&gt;LOG: RESET (pin 15) high, but should be low. Please check target hardware.&lt;br /&gt;ERROR: Could not connect to target device.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This error seems to be same when not connected with target device with jlink debugger.&lt;/p&gt;
&lt;p&gt;Then please help me how to solve this problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525514?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 13:21:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:182fd2cb-7c06-48ec-97ec-1d77fdc81d86</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which SDK and version are you using to build your application? Take a&lt;a href="https://teams.microsoft.com/l/message/19:meeting_NmE2NzVkYjgtNzY1Ny00YzY4LTgxZTYtMDIyZGNiNjhlMTVm@thread.v2/1740995226972?context=%7B%22contextType%22%3A%22chat%22%7D"&gt; look at this old DevZone thread &lt;/a&gt;discussing a similar issue. Please see if this discussion has any relevance to your issue.&lt;/p&gt;
&lt;p&gt;How did you program your first software? You mentioned that your program is running well. I assume this is a custom application. Have you tried any applications inside the SDK, and do they produce the same issue?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;br /&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: connection fail via swd with jlink</title><link>https://devzone.nordicsemi.com/thread/525378?ContentTypeID=1</link><pubDate>Sat, 01 Mar 2025 08:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1511558f-d53d-475a-9be8-163f563a68e1</guid><dc:creator>bini2007</dc:creator><description>&lt;p&gt;In addition to above,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We also see RESET pin (p0.18) that can be a gpio. We don&amp;#39;t use this RESET pin and it seems to not be used in our software too.&lt;br /&gt;Our software use dfu, currently.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div id="__endic_crx__"&gt;
&lt;div class="css-diqpy0"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>