<?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>nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49475/nrf52832-how-to-measure-swdio-swdclk-interal-pull-up-pull-down</link><description>We faced the issue that some of our NRF52832 Raytac modules (MDBT42Q-512KV2) don&amp;#39;t respond over the SWD interface. But all of these modules were working previously and we were able to flash them. 
 Is there a possibility to check the SWDIO / SWDCLK pins</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jul 2019 08:47:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49475/nrf52832-how-to-measure-swdio-swdclk-interal-pull-up-pull-down" /><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/198079?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 08:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:348250b1-9eb1-47b1-b0b8-cb8f7e9846dc</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I am not aware of any specific that can cause this to fail, but things to try:&lt;/p&gt;
&lt;p&gt;1- Try a different SEGGER programmer, and make sure that VDD is within the the range of the programmer&lt;/p&gt;
&lt;p&gt;2. Uninstall the nRF Command lines tools you may have installed, and download the latest. Update the SEGGER firmware if asked&lt;/p&gt;
&lt;p&gt;3. Strap nRF52 reset pin to VDD in case it&amp;#39;s been by accident enabled&lt;/p&gt;
&lt;p&gt;4. Try from a different PC&lt;/p&gt;
&lt;p&gt;5. Run the &amp;#39;nrfjprog --recover&amp;#39; or &amp;#39;nrfjprog --eraseall&amp;#39;&lt;/p&gt;
&lt;p&gt;6. Check the schematic is correct, and that all components are properly mounted.&lt;/p&gt;
&lt;p&gt;There is a possibility the nRF52 have been damaged somehow by EOS/ESD, but that is very rare I would say.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/198063?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 08:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f83c7a5f-ce45-480b-a792-6b5c6c18bf99</guid><dc:creator>florian.gaertner</dc:creator><description>&lt;p&gt;We have a 10k pullup on our boards. Measurements with oscilloscope show that pin is tied low for 50ms during command &amp;quot;nrfjprog -p&amp;quot;. But returns with following error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;--------------------------------------------------------------------------------
nrfjprog -p --log
nrfjprog version 9.7.3
--------------------------------------------------------------------------------
nRF_open_dll
. nRFXX_open_dll
. . nRFXX_dll_version
nRF_enum_emu_snr
. nRFXX_enum_emu_snr
nRF_enum_emu_snr
. nRFXX_enum_emu_snr
nRF_connect_to_emu_with_snr
. nRFXX_connect_to_emu_with_snr
. . nRFXX_is_connected_to_emu
. . nRFXX_connect_to_emu_without_snr
. . . nRFXX_is_connected_to_emu
. . . nRFXX_enum_emu_snr
. . nRFXX_connect_to_emu_without_snr:	JLink:	 Firmware: J-Link EDU Mini V1 compiled Mar 15 2019 12:47:02
. . nRFXX_connect_to_emu_without_snr:	JLink:	 Hardware: V1.00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 S/N: 801003932
. . nRFXX_connect_to_emu_without_snr:	JLink:	 Feature(s): GDB, FlashBP
. . nRFXX_connect_to_emu_without_snr:	JLink:	 TELNET listener socket opened on port 19021
. . nRFXX_connect_to_emu_without_snr:	JLink:	WEBSRV  Starting webserver
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0021ms, 0890ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:869 
. . nRFXX_connect_to_emu_without_snr:	JLink:	WEBSRV Webserver running on local port 19080
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0021ms, 0890ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:869 
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns O.K.
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0021ms, 0890ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:890 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_GetHWStatus(...)
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0890ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:890 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand(&amp;quot;Device = NRF52832_xxAA&amp;quot;, ...). 
. . nRFXX_connect_to_emu_without_snr:	JLink:	XML file found at: /opt/SEGGER/JLink/JLinkDevices.xml
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0890ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:890 
. . nRFXX_connect_to_emu_without_snr:	JLink:	/opt/SEGGER/JLink/JLinkDevices.xml evaluated successfully.
. . nRFXX_connect_to_emu_without_snr:	JLink:	Device &amp;quot;NRF52832_XXAA&amp;quot; selected.
. . nRFXX_connect_to_emu_without_snr:	JLink:	Device &amp;quot;NRF52832_XXAA&amp;quot; selected.
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0015ms, 0905ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:905 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand(&amp;quot;SetRestartOnClose = 0&amp;quot;, ...). 
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x01
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0905ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:905 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand(&amp;quot;DisableFlashDL&amp;quot;, ...). 
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0905ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:905 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand(&amp;quot;SetDbgPowerDownOnClose = 1&amp;quot;, ...). 
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x01
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0905ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:905 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_ExecCommand(&amp;quot;ExcludeFlashCacheRange 0x0-0xFFFFFFFF&amp;quot;, ...). 
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0000ms, 0905ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:905 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_TIF_Select(JLINKARM_TIF_SWD)
. . nRFXX_connect_to_emu_without_snr:	JLink:	  returns 0x00
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0002ms, 0907ms total)  
. . nRFXX_connect_to_emu_without_snr:	JLink:	T25B61740 000:907 
. . nRFXX_connect_to_emu_without_snr:	JLink:	JLINK_SetSpeed(2000)
. . nRFXX_connect_to_emu_without_snr:	JLink:	 (0001ms, 0908ms total)  
nRF_read_connected_emu_snr
. nRFXX_read_connected_emu_snr
. . nRFXX_is_connected_to_emu
. . nRFXX_is_connected_to_emu:	JLink:	T25B61740 000:908 
. . nRFXX_is_connected_to_emu:	JLink:	JLINK_IsOpen()
. . nRFXX_is_connected_to_emu:	JLink:	  returns 0x01
. . nRFXX_is_connected_to_emu:	JLink:	 (0000ms, 0908ms total)  
nRF_read_device_family
. nRFXX_read_device_family
. . nRFXX_is_connected_to_emu
. . nRFXX_is_connected_to_emu:	JLink:	T25B61740 000:908 
. . nRFXX_is_connected_to_emu:	JLink:	JLINK_IsOpen()
. . nRFXX_is_connected_to_emu:	JLink:	  returns 0x01
. . nRFXX_is_connected_to_emu:	JLink:	 (0000ms, 0908ms total)  
. . nRFXX_read_access_port_register
. . . nRFXX_coresight_configure
. . . nRFXX_coresight_configure:	JLink:	T25B61740 000:908 
. . . nRFXX_coresight_configure:	JLink:	JLINK_CORESIGHT_Configure()
. . . nRFXX_coresight_configure:	JLink:	  returns 0
. . . nRFXX_coresight_configure:	JLink:	 (0101ms, 1009ms total)  
. . . nRFXX_power_debug_and_system_regions
. . . . nRFXX_write_debug_port_register
. . . . nRFXX_write_debug_port_register:	JLink:	T25B61740 001:009 
. . . . nRFXX_write_debug_port_register:	JLink:	JLINK_CORESIGHT_WriteAPDPReg(DP reg 0x02, 0x00000000)
. . . . nRFXX_write_debug_port_register:	JLink:	  returns -1
. . . . nRFXX_write_debug_port_register:	JLink:	 (0001ms, 1010ms total)  
. . . . nRFXX_write_debug_port_register:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -1.

. . . nRFXX_power_debug_and_system_regions:	JLinkARM.dll CORESIGHT_WriteAPDPReg returned error -102.

nRF_close_dll
. nRFXX_close_dll
. . nRFXX_is_connected_to_emu
. . nRFXX_is_connected_to_emu:	JLink:	T25B61740 001:010 
. . nRFXX_is_connected_to_emu:	JLink:	JLINK_IsOpen()
. . nRFXX_is_connected_to_emu:	JLink:	  returns 0x01
. . nRFXX_is_connected_to_emu:	JLink:	 (0000ms, 1010ms total)  
. . nRFXX_disconnect_from_emu
. . nRFXX_disconnect_from_emu:	JLink:	T25B61740 001:013 
. . nRFXX_disconnect_from_emu:	JLink:	JLINK_Close()
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/197928?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 16:45:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23cacc66-cc10-46c9-a181-04af65c66469</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you try to connect P.21 directly to VDD in case you have by accident enabled pin reset?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/197819?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2019 11:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b542b607-3af7-4a55-b9b0-32aa1d87d45d</guid><dc:creator>florian.gaertner</dc:creator><description>&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;We could measure a pull-up on SWDIO of ~14 kOhm (240 uA @ 3.3V) and the same as pull-down for SWDCLK on correctly working modules.&lt;/p&gt;
&lt;p&gt;For faulty modules we measure as well a current&amp;nbsp;between SWDIO&amp;nbsp;and&amp;nbsp;VDD in the low mA range. Could this&amp;nbsp;has happened&amp;nbsp;by ESD issues? For example if a J-Link programmer is connected to a powered system and&amp;nbsp;GND is not the first pin which get&amp;#39;s connected during plug in and equipotential bonding happens over SWDIO pin...&lt;/p&gt;
&lt;p&gt;Is it possible to get a rough block circuit diagram for SWDIO/SWDCLK?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/197290?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2019 08:19:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:630fe5a0-1496-46d8-8dad-11827635b665</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You may have enabled the readback protection. &amp;nbsp;Try unprotect it first.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52832 How-to measure SWDIO / SWDCLK interal pull-up/pull-down?</title><link>https://devzone.nordicsemi.com/thread/197139?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 12:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d2ab241-8e1e-4736-b2fc-b63a20bad683</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you by accident have enabled pin reset, make sure to connect pin reset to VDD if it may be somehow pulled low by firmware or externally. You can call &amp;#39;nrfjprog --recover&amp;#39; afterwards.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible to measure the pull-up/down resistance by connecting an amperemeter between SWDIO pins (one at a time) and GND/VDD when chip is powered. The internal resistance then follow ohms law (Rinternal = VDD / Imeasured).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>