<?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>nRF52840 DK User Program not persistent through a power-cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85640/nrf52840-dk-user-program-not-persistent-through-a-power-cycle</link><description>I have received a newer DK board (2.1.0) and have a problem. 
 The newer board wants to update the FW constantly when I run a test. That appears to be resolved by disabling the readback protection (nrfjprog --recover) after updating the JLink FW (via</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 Mar 2022 11:33:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85640/nrf52840-dk-user-program-not-persistent-through-a-power-cycle" /><item><title>RE: nRF52840 DK User Program not persistent through a power-cycle</title><link>https://devzone.nordicsemi.com/thread/357913?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 11:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ca49df-c878-4ab6-aa85-5eac6fc72610</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hey again!&lt;/p&gt;
[quote user="emTed"]The blinky file does run after a power-cycle; but the test code that multiple people use on two versions of the board does not[/quote]
&lt;p&gt;So there are examples that do run after a cycle. Would you mind telling me more about this code?&lt;/p&gt;
[quote user="emTed"]Could I get a copy of the factory FW that came on the board?[/quote]
&lt;p&gt;You can, but I don&amp;#39;t think&amp;nbsp;the new FW&amp;nbsp;is the issue. We can get back to this if nothing else works&lt;/p&gt;
[quote user="emTed"]&lt;p&gt;The system does not appear to accept pictures.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1647247950448v1.png" alt=" " /&gt;It should be possible to simply paste it here or insert&amp;nbsp;it as a&amp;nbsp;file.&lt;/p&gt;
&lt;p&gt;Are the switches on your DK in the right positions btw? (SW9 on DVV and SW6 on DEFAULT) And I assume the smaller switches like SW10 haven&amp;#39;t been used?&lt;/p&gt;
[quote user="emTed"]&lt;p&gt;Also, are there known issues with any versions of JLink running on Ubuntu 20.4 when communicating with the 52840?&amp;nbsp; When connected to my system running JLink V7.62b they exhibit the behavior described; when connected to JLink V7.58 they behave normally.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;But yet again, this is only the case with your test code?&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t know of any known issues regarding this at the moment. Though i&lt;span&gt;deally you should use the j-link that is bundled with the nrf command line tools, since that is the one that have been tested. I am for instance using version 7.60g with nrfjprog version 10.15.4.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I assume you&amp;#39;ve tried connecting your DK with your coworkers machine which has a version that is making your DK function when reset? Or did you downgrade to&amp;nbsp;&lt;span&gt;JLink V7.58?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 DK User Program not persistent through a power-cycle</title><link>https://devzone.nordicsemi.com/thread/357728?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 15:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:148bfbf4-ac5d-4d34-a194-0ca93b60fe0c</guid><dc:creator>Ted Keller</dc:creator><description>&lt;p&gt;Elfving,&lt;/p&gt;
&lt;p&gt;I agree, this is odd.&lt;/p&gt;
&lt;p&gt;The blinky file does run after a power-cycle; but the test code that multiple people use on two versions of the board does not (as explained in the first post).&amp;nbsp; The test code does run and persist on a 2.1.0 board that did not update the JLink FW.&amp;nbsp; Could I get a copy of the factory FW that came on the board?&lt;/p&gt;
&lt;p&gt;The system does not appear to accept pictures.&lt;/p&gt;
&lt;p&gt;Also, are there known issues with any versions of JLink running on Ubuntu 20.4 when communicating with the 52840?&amp;nbsp; When connected to my system running JLink V7.62b they exhibit the behavior described; when connected to JLink V7.58 they behave normally.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Ted&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: nRF52840 DK User Program not persistent through a power-cycle</title><link>https://devzone.nordicsemi.com/thread/357471?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 15:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4feb5766-174d-49aa-8731-d76d5b6b81eb</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello Ted,&lt;/p&gt;
&lt;p&gt;That sounds odd.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5127.zephyr.hex"&gt;devzone.nordicsemi.com/.../5127.zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So if you flash this blinky hex file by either dropping it into the JLINK Storage Device, or with the commandline, the LED on the DK stops blinking after being reset? Do you even see it blinking at any point?&lt;/p&gt;
&lt;p&gt;Could you give me a picture of the board?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>