<?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>Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77718/trouble-programming-nrf5340dk</link><description>I am following the guide on this page: https://github.com/project-chip/connectedhomeip/tree/master/examples/lock-app/nrfconnect 
 I can build the firmware, but having trouble to program the nRF5340DK. 
 west flash --recover 
 ERROR: The --family option</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Jul 2021 08:07:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77718/trouble-programming-nrf5340dk" /><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/322160?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 08:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7e784dd-9858-4dae-9217-3460000f3f6c</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Ah okey!&lt;/p&gt;
&lt;p&gt;Heheh I was working on checking if anything in the tutorial you followed could result in an issue on MacOS. Im glad it got solved eventually!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/322105?ContentTypeID=1</link><pubDate>Tue, 27 Jul 2021 17:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a661fd-bed6-4e7f-9a08-edd1bcd56f91</guid><dc:creator>Hongfeng</dc:creator><description>&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;I think I have found the problem, I put the power source switch to &amp;quot;USB&amp;quot; position, now I moved it to &amp;quot;VDD&amp;quot; and it started working properly and I could program the device.&lt;/p&gt;
&lt;p&gt;It didn&amp;#39;t look very obvious to me, I thought it&amp;#39;s the USB powering the board, so I should put it at &amp;quot;USB&amp;quot; position. I also tried the &amp;quot;VDD&amp;quot; option, but it didn&amp;#39;t work earlier. Anyway, now I can move forward.&lt;/p&gt;
&lt;p&gt;Thanks for all the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321611?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 16:10:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46925d27-35a4-4d73-9c45-1d41d28d3064</guid><dc:creator>Hongfeng</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;quot;nrfjprog -I&amp;quot; doesn&amp;#39;t return anything.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;LED5 blinks&amp;nbsp;irregularly: it&amp;#39;s much dimmer than before. Sometimes it doesn&amp;#39;t blink up at all after plugged in. Pressing button4 doesn&amp;#39;t have any effect.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is the log from yesterday, when I was at least able to&amp;nbsp;connect to the target:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5670.log.txt"&gt;devzone.nordicsemi.com/.../5670.log.txt&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321546?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 11:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f18cf740-0756-466a-8a37-f91c3fa04864</guid><dc:creator>Elfving</dc:creator><description>[quote user="Hongfeng"]I start to suspect the board is bad.[/quote]
&lt;p&gt;It might be.&lt;/p&gt;
[quote user="Hongfeng"]Now I can&amp;#39;t even detect the usb serial port.[/quote]
&lt;p&gt;In that case does &amp;quot;nrfjprog -i&amp;quot; return anything now? Is LED5 on the DK is still flashing?&lt;/p&gt;
&lt;p&gt;Could you also provide me the logfile produced from the nrfjprog --eraseall --log command, or did it not manage to produce one? There should be a .txt file in the folder you were using.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321443?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 21:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d92c72f-a235-4f92-93bf-6f2b3b2579ce</guid><dc:creator>Hongfeng</dc:creator><description>&lt;p&gt;It got even worse. Now I can&amp;#39;t even detect the usb serial port.I start to suspect the board is bad. How can I get a replacement? I bought it from DigiKey.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321434?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 18:08:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0256f50-31bf-4877-bea7-ece33e5d3bfe</guid><dc:creator>Hongfeng</dc:creator><description>&lt;p&gt;&lt;strong&gt;nrfjprog --eraseall --log&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: [&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;nRFXX] - Device does not have an ARM debug port.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: nrfjprog could not identify the target device...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nRF connect programmer&lt;/strong&gt;: when target is selected:&lt;/p&gt;
&lt;p&gt;2021-07-22T17:53:05.026Z INFO Using nrfjprog library 10.12.1, pc-nrfjprog-js 1.7.6&lt;br /&gt;2021-07-22T17:53:05.103Z DEBUG App pc-nrfconnect-programmer v1.4.11 official&lt;br /&gt;2021-07-22T17:53:05.103Z DEBUG App path: /Users/hongfeng/.nrfconnect-apps/node_modules/pc-nrfconnect-programmer&lt;br /&gt;2021-07-22T17:53:05.103Z DEBUG nRFConnect 3.7.0, required by the app is (^3.6.0)&lt;br /&gt;2021-07-22T17:53:05.104Z DEBUG nRFConnect path: /Applications/nRF Connect.app/Contents/Resources/app.asar&lt;br /&gt;2021-07-22T17:53:05.104Z DEBUG HomeDir: /Users/hongfeng&lt;br /&gt;2021-07-22T17:53:05.104Z DEBUG TmpDir: /var/folders/5m/7jg_758d6bd7qv9p_89fv1dr0000gp/T/&lt;br /&gt;2021-07-22T17:53:11.543Z INFO Using nrfjprog to communicate with target&lt;br /&gt;2021-07-22T17:53:12.311Z ERROR Could not fetch memory size of target devkit: Error: Error occured when get library info. Errorcode: CouldNotOpenDevice (0x4)&lt;br /&gt;Lowlevel error: Unknown value (fffffffa)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;# nRFConnect System Report - 2021-07-20T23-03-29.533Z&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;- System: Apple Inc. MacBookPro14,3&lt;br /&gt;- BIOS: Apple Inc. 429.140.8.0.0&lt;br /&gt;- CPU: 1 x Intel&amp;reg; Core&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;i7-7820HQ 2.9 GHz 8 cores (4 physical)&lt;br /&gt;- Memory: 1.4 GB free of 16 GB total&lt;br /&gt;- Filesystem: /dev/disk1s5s1 (APFS) 465 GB 29.1% used&lt;/p&gt;
&lt;p&gt;- OS: macOS (11.5) darwin x64&lt;/p&gt;
&lt;p&gt;- Versions&lt;br /&gt; - kernel: 20.6.0&lt;br /&gt; - git: 2.30.1&lt;br /&gt; - node: 12.13.0&lt;br /&gt; - python: 2.7.16&lt;br /&gt; - python3: 3.8.2&lt;/p&gt;
&lt;p&gt;- Connected devices:&lt;br /&gt; - /dev/tty.usbmodem0009601386815: 000960138681 PCA10095&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks for the help!&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321379?ContentTypeID=1</link><pubDate>Thu, 22 Jul 2021 13:39:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c281f4f-74d3-42e6-8c77-da04d2bd8f8e</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Could you give me that logfile that was generated?&lt;/p&gt;
&lt;p&gt;And could you try &amp;quot;nrfjprog --eraseall&amp;quot;, as well as checking the Programmer in the nRF Connect App?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321174?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 15:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37db98bf-4edf-4235-98dd-b88b2ba42565</guid><dc:creator>Hongfeng</dc:creator><description>&lt;p&gt;&lt;strong&gt;nrfjprog --recover --coprocessor CP_NETWORK -f NRF53&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: The --family option given with the command (or the default from&amp;nbsp;&lt;/span&gt;&lt;span&gt;nrfjprog.ini) does not match the device connected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrfjprog --recover -f NRF53 --log&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: [&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &lt;/span&gt;nRF53] - Debug probe is not connected to an NRF53 series device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;ERROR: The --family option given with the command (or the default from&lt;/span&gt;&lt;span&gt; nrfjprog.ini) does not match the device connected.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The sticker on the board:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;PCA10095&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;0.11.0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;2020.51&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;960138681&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;FYI,&amp;nbsp;I was able to program nRF52840 Dongle on the same laptop setup&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Trouble programming nrf5340dk</title><link>https://devzone.nordicsemi.com/thread/321157?ContentTypeID=1</link><pubDate>Wed, 21 Jul 2021 13:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc502bce-8868-4cc2-b2b8-5daa3c863607</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi Hongfeng!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thats odd. Do you know what chip version are you using?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And what does it output when you run:&lt;/p&gt;
&lt;pre&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --recover --coprocessor CP_NETWORK -f NRF53
nrfjprog --recover -f NRF53&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>