<?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>Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39072/problem-flashing-custom-nrf52-board-using-openocd-and-unable-to-connect-using-jlink</link><description>Good day, I am new to this forum so I am having some problems posting my question. Sorry for any inconveniences. I am having serious problems flashing my custom NRF5282 board. I started with Openocd, using the st-link v2 debugger and I was able to connect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Oct 2018 13:48:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39072/problem-flashing-custom-nrf52-board-using-openocd-and-unable-to-connect-using-jlink" /><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151692?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 13:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78da5132-b50d-46c1-99cc-aa8305d3d681</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Oh, Kenneth, it seems pulling&amp;nbsp;pin 21 did the trick. I can now flash the chip. Thanks a lot, I am very grateful. Please, can you explain to me what is the function of pin 21?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151589?ContentTypeID=1</link><pubDate>Thu, 04 Oct 2018 07:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53ad2eaa-7a61-49fc-b6bf-773612dc9c72</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Schematic looks good as far as I can see.&lt;/p&gt;
&lt;p&gt;I strongly suggest to get a nRF52-DK for comparison, you can also use the nRF52-DK to program your own board in this case. Then you can compare for instance voltages with your own board for comparison, and verify the tools works as expected.&lt;/p&gt;
&lt;p&gt;I notice pin 21 should be pulled high in case pin reset have been enabled (I was thinking of nRF52840 that use pin 18). You do not need to connect SWO and RESET on debugger J3 header.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151535?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 16:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57aca1ac-77a4-4c3b-8596-08c6961d989f</guid><dc:creator>David</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3364.Capture.PNG" /&gt;Hello Kenneth, I tried pulling pin 18 high, but its the same result. Here is some part of the schematic.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151523?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 15:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c63b266f-f708-43d8-9532-3ccf7a869d1e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Can you pull pin 18 high?&lt;/p&gt;
&lt;p&gt;Can you share schematic?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151429?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7e1b952-ee20-4e00-b26b-a63e44ba6838</guid><dc:creator>David</dc:creator><description>&lt;p&gt;I am using the j-link edu version. I do not have the nRF52-DK .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151423?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 12:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b15471-76b3-4305-8e5c-68e313bca7d5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;What j-link are you using? Do you have a nRF52-DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151414?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 11:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b25b5ffd-a3bf-47fb-928d-d0ead223acd6</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Thank you kenneth, I have a few samples of the board, so I am using a new board. I tried originally with stlink and I am able to connect, But unable to flash probably because of the write protect. I have done some reading and this write protect can only be removed using the nrfjprog&amp;nbsp;tool. That is why I switched to jlink. I am now using the correct voltage range and I have connected swdio, swdclk, vtref and gnd. But its still the same error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151411?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 11:51:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be92c7dd-7222-4829-b70f-ba71da48113e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I am not familiar with&amp;nbsp;&lt;span&gt;st-link v2, but I notice it says JTAG in the log, make sure it is SWD.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If j-link doesn&amp;#39;t work, then make sure you have connected GND(and possible GND_DETECT), VDD (VTarget), SWDIO and SWDCLK. Also make sure you have the latest and greatest nRF command line tools installed. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I hope you have not at any time fed &amp;gt;3.6V to VDD or any other GPIO&amp;#39;s, as that may have damaged the IC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You may pull pin 18 high just in case pin reset have been enabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151092?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 02:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4335f4c0-6160-459c-80fb-8cfe20c2e036</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Hello,, I have tried using 3.3v but still cannot connect to the board. Same errors as listed above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151002?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 13:55:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf76540-b4ad-4c43-a2a4-c00e510f488f</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Okay, I am trying this now. let me check.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/151001?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 13:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a77637b5-7dfb-4b36-a44c-d265b781b73d</guid><dc:creator>awneil</dc:creator><description>[quote userid="74286" url="~/f/nordic-q-a/39072/problem-flashing-custom-nrf52-board-using-openocd-and-unable-to-connect-using-jlink/150995"]Do you think this might be a source of problem?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
&lt;p&gt;From the J-Link Manual:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;VTref is the target reference voltage. It is used by the J-Link to ...&lt;/em&gt;&lt;em&gt;&amp;nbsp;create the logic-level reference for the input comparators and to control the&amp;nbsp;&lt;/em&gt;&lt;em&gt;output logic levels to the target.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/150995?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 13:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ba3ab6-48c0-4b5f-a154-1a97aff05436</guid><dc:creator>David</dc:creator><description>&lt;p&gt;Yes, I mean nRF52832, sorry for the spelling. The chip voltage is 3.3 v. the 4.8 is what I am using as Vtref on my jlink.&lt;/p&gt;
&lt;p&gt;Do you think this might be a source of problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem flashing custom nrf52 board using openocd, and unable to connect using JLink</title><link>https://devzone.nordicsemi.com/thread/150994?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 13:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9fa54f6-e67e-4b83-a488-0daf28c32072</guid><dc:creator>awneil</dc:creator><description>[quote userid="74286" url="~/f/nordic-q-a/39072/problem-flashing-custom-nrf52-board-using-openocd-and-unable-to-connect-using-jlink"]NRF5282 [/quote]
&lt;p&gt;You mean nRF528&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;3&lt;/strong&gt;&lt;/span&gt;2 ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52832"&gt;https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52832&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="74286" url="~/f/nordic-q-a/39072/problem-flashing-custom-nrf52-board-using-openocd-and-unable-to-connect-using-jlink"]My device voltage is also 4.8v[/quote]
&lt;p&gt;The Product Specification says the Absolute Maximum is &lt;strong&gt;3.9V:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/abs_max_ratings.html?cp=2_1_0_4#abs_max_ratings"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/abs_max_ratings.html?cp=2_1_0_4#abs_max_ratings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Recommended max for operation is 3.6V:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/recommended_op_conditions.html?cp=2_1_0_5#concept_vng_xls_2q"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/recommended_op_conditions.html?cp=2_1_0_5#concept_vng_xls_2q&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>