<?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>nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105878/nrf9160-dk-as-jtag-programmer-to-nrf7002-dk-or-thingy-53</link><description>Hi 
 I am preparing a project for the MAKE IT MATTER contest. 
 During experiments I broke the USB connector on the nRF7002-DK. 
 Fortunately we already have downloaded the Light Bulb firmware on nRF 7002-DK and tested before the USB was broken. We have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Nov 2023 12:56:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105878/nrf9160-dk-as-jtag-programmer-to-nrf7002-dk-or-thingy-53" /><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/457564?ContentTypeID=1</link><pubDate>Mon, 27 Nov 2023 12:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd69808f-d86e-418d-bd8c-da8cd597b2ca</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user="vorrias"]I imagine I can program Thingy:53 (or ant Thingy) in VS code as well using the same method.[/quote]
&lt;p&gt;Correct, this should work the same way.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="vorrias"]I will have that as a reference creating step by step directions to my contest project. This experience may will be interested to others.[/quote]
&lt;p&gt;Great thanks, much appreciated!&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/457415?ContentTypeID=1</link><pubDate>Sat, 25 Nov 2023 19:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50296664-4e02-4cf8-9943-fd8208a833d9</guid><dc:creator>vorrias</dc:creator><description>&lt;p&gt;Hi Jonathan,&lt;/p&gt;
&lt;p&gt;Looks we got it working following your latest suggestion.&lt;/p&gt;
&lt;p&gt;Broken nRF7002-DK now is powered via Arduino connectors since I have build a custom shield there to interface with my WIZcube I/O boards&lt;/p&gt;
&lt;p&gt;So the procedure is:&lt;/p&gt;
&lt;p&gt;1 - Power the nRF7002-DK first&lt;/p&gt;
&lt;p&gt;2 - Then power the nRF9160 &amp;quot;programmer&amp;quot;&lt;/p&gt;
&lt;p&gt;3 - Open VS code reports that nRF9160-DK is connected but reports chip nRF5340 (that is on the nRF7002-DK. Proceed with programming, flashing OK and application is working.&lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In Desk top programmer same results. &lt;strong&gt;This is OK&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Project image looks complicated but it is not. While waiting for the right cable I had to do a &amp;quot;home made&amp;quot; programmer cable from old staff. I was unable to source it locally.&lt;/p&gt;
&lt;p&gt;The nice thing is that I am able to program the nRF7002-DK using nRF9260-DK&lt;/p&gt;
&lt;p&gt;I will have that as a reference creating step by step directions to my contest project. This experience may will be interested to others.&lt;/p&gt;
&lt;p&gt;I imagine I can program Thingy:53 (or ant Thingy) in VS code as well using the same method.&lt;/p&gt;
&lt;p&gt;Job Done. Consider it as answered&lt;/p&gt;
&lt;p&gt;Thank you Jonathan&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Vasilis&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nordicpico-setup.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/8507.programmer.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/nrf9160_2D00_dk-programmer.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/457354?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 14:20:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32424fc3-fc23-49d5-8765-fe858ee8b59e</guid><dc:creator>vorrias</dc:creator><description>&lt;p&gt;Hi Jonathan&lt;/p&gt;
&lt;p&gt;Yes I am still stacked. In fact am in kind of panic concerning the contest dead line. Time is very limited now and I am troubling to move forward.&lt;/p&gt;
&lt;p&gt;Anyway I will do that and report back&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Vasilis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/457341?ContentTypeID=1</link><pubDate>Fri, 24 Nov 2023 13:38:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5825a9d7-dcc7-4f84-bb11-55b706f3e717</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Still stuck?&lt;br /&gt;&lt;br /&gt;Try to only power the nRF7002DK with two jumper cables, one for VDD and one for GND. Then use the 10pin connector cable.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If in need of a infographic i can provide one later.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/456687?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 13:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69260e74-68a4-4fc8-8991-99125b7aa192</guid><dc:creator>vorrias</dc:creator><description>&lt;p&gt;Hi Jonathan&lt;/p&gt;
&lt;p&gt;Within VS trying to recover I got the message:&lt;/p&gt;
&lt;p&gt;Error recovering device. see output tab&lt;br /&gt;&lt;br /&gt;[11/21/2023, 1:06:31 PM] Unable to resolve configuration with compilerPath &amp;quot;/home/vorrias/ncs/toolchains/1f9b40e71a/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc&amp;quot;.&amp;nbsp; Using &amp;quot;/usr/bin/clang-14&amp;quot; instead.&lt;/p&gt;
&lt;p&gt;Within nRF connect for Desktop programmer I have the erase dimmed&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7041.programmer.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Vasilis&lt;/p&gt;
&lt;p&gt;NOTE: I did not change anything on my DKs.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp; see your notes afterwords.&lt;/p&gt;
&lt;p&gt;Anyway I am reading your last post to see your directions&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/456670?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 12:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbbe1b78-823a-48e1-9336-4f833ba289df</guid><dc:creator>JONATHAN LL</dc:creator><description>&lt;p&gt;Hi Vasilis, looks like approtect is on, try to run a recover first.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can do this with either running nrfjprog --recover in the terminal or click on the recover option for connected devices&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700570300146v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Or you can use the nRF connect for Desktop programmer application by clicking on the Erase all button&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700570398961v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/456664?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 12:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60c38317-99aa-4f71-bcbc-d8bbaa17c0d7</guid><dc:creator>JONATHAN LL</dc:creator><description>[quote user=""]eading Nordic documentation we see that another DK can be used as a JTAG programmer.[/quote]
&lt;p&gt;Correct! For the nRF7002DK to be programmed you need a programmer that is able to program the onboard SoC.&amp;nbsp; Since the nRF7002DK uses a nRF5340 you will need a DK that has a onboard programmer that will support it.&amp;nbsp;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700568369488v1.png" alt=" " /&gt;&lt;br /&gt;To be on the safe side you should either be using a nRF9160DK or a nRF5340DK, these two will be able to program everything we have including nRF5340 and nRF9160&amp;#39;s.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So since it seams that you have a nRF9160 available you should be fine.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There are a few ways to program the &amp;quot;external board&amp;quot;(your broken nRF7002DK) so the simplest option according to&amp;nbsp;most is to use a flat ribbon cable. These are easy to use and there is no extra fumbling with cables.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;First and simplest option(if you have a flat ribbon cable)&lt;br /&gt;&lt;br /&gt;Connect the cable to P19 (Debug out) on the DK that you use as your programmer(nRF9160DK or nRF5340DK) then connect the other end of the flat ribbon cable to&amp;nbsp; P18&amp;nbsp;(Debug in) on the nRF7002DK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So from here:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700568718546v3.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;To here:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700568653858v2.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Second option is to use some cables and connect from P20 on the programmer DK to the external boards P25 trace pads.&amp;nbsp;&lt;br /&gt;From here:&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700569175025v5.png" alt=" " /&gt;&lt;br /&gt;The image above is from a nRF5340DK but its the same on the nRF9160 DK. And the custom board will be your broken 7002DK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To here:&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700569135578v4.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Its a bit more tricky and you will have to solder on to the pads. GND and VDD also needs to be connected but that can be done to any of the corresponding P1 female headers&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700569501832v7.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are other options as well here for method two, but feel free to ask and I will guide you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Jonathan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160-DK as JTAG programmer to nRF7002-DK or Thingy:53</title><link>https://devzone.nordicsemi.com/thread/456659?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2023 12:05:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc68c4d9-3e40-448e-8c0b-2e420b319032</guid><dc:creator>vorrias</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The last hours I did some progress but was unable to program the target (nRF7002-DK). I got this error in VS code:&lt;/p&gt;
&lt;p&gt;[error] [ Client] - Encountered error -11: Command erase_file executed for 2075 milliseconds with result -11&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;[error] [&amp;nbsp; nRF53] - Failed while detecting device memory block protection status!&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/VS.png" /&gt;&lt;/p&gt;
&lt;p&gt;What was done so far:&lt;/p&gt;
&lt;p&gt;1 - Connect the two boards with JTAG cable. nRF9150-DK OUT to nRF7002-DK IN&lt;/p&gt;
&lt;p&gt;2 - Leave the Voltage selector on nRF9260-DK in 1V8 position. When in 3V board is dead.&lt;/p&gt;
&lt;p&gt;3 - Power the nRF7002-DK via nRF5340 USB port&lt;/p&gt;
&lt;p&gt;4 - Plug the USB cable on the debugger port (nRF9160-DK)&lt;/p&gt;
&lt;p&gt;at this point I see a JLINK device discovered. If JTAG flat cable is not connecting the two boards I see that nRF9160 is discovered.&lt;/p&gt;
&lt;p&gt;I suppose that means that nrF9160-DK works OK as a JTAG programmer when the tow boards are connected via flat cable.&lt;/p&gt;
&lt;p&gt;It looks that I can not start programming the nRF7002-DK which now runs the Light Bulb Matter program.&lt;/p&gt;
&lt;p&gt;If I can program it with a blink program that will be a good start.&lt;/p&gt;
&lt;p&gt;What am I doing wrong?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/jtag.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any extra help&lt;/p&gt;
&lt;p&gt;Vasilis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>