<?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>Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93375/cannot-flash-nrf52840</link><description>Hi, 
 
 I was about to program my nrf52840 with minor changes in the dts and after that I cannot flash any other images to the device. This is what I get when I flash the board. 
 
 
 I also tried nrfjprog --eraseall and recover. All commands leads to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Nov 2022 12:24:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93375/cannot-flash-nrf52840" /><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/394139?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 12:24:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37bc9843-472b-4144-b8b5-47f92bec4ecf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I hope so too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/394004?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 17:18:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c43d733-8f37-4034-8e6c-15672481943b</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;Hi, This is an intermittent issue. The device is okay now. I&amp;#39;ll update if something goes wrong again,which i really hope never happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393809?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 08:52:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2079dfc3-900f-4317-b5e8-4b2abdd089af</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;The settings_load seems to return error sometimes in your startup initialization. It is hard to understand the issue without knowing why settings_load is failing? what is the error code you get?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393760?ContentTypeID=1</link><pubDate>Thu, 03 Nov 2022 00:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f9afcf-2a01-447e-a983-5730f9173296</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;I used debugger and it showed me that the error at settings_load() in main. But I had not modified the area. Also, the same application was the one loaded again. That is, the same application was the one which failed to flash and also the one that flashed successfully after a long time. I cannot understand what is wrong though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393572?ContentTypeID=1</link><pubDate>Wed, 02 Nov 2022 07:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46beba31-e25d-45c9-85ba-f10239e8c418</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You previous snapshot of the log shows that the application you flashed is rebooting quite early after reset. Not sure what that is but it would have been easier to start the program in debugger and use breakpoints to understand the where the reset is happening.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But since the problem went away we can only guess if this an application issue or something else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393550?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 21:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66e2574b-12ee-4436-b9c6-8c901ddb0ac0</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;Hi, just to add to the above observations, in order to isolate the issue, ( whether it was caused by the UART module or the bluetooth module), I flashed the central_and_peripheral_hr example to the device in NCS and it was all fine. So, I went back and flashed my program and it was all fine again. The device behaves like nothing happened.&lt;br /&gt;But I would really like to know what went wrong here. Can you please clue me in ? thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393546?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 20:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05f24dec-dcfc-4ffa-bdbc-a02d93383013</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;Hi, there is an update. I checked like instructed. but there were no changes.So, out of curiosity, I tried flashing the device with an old program based on nrf5 sdk. Opened it in SES and flashed and it was all good.&amp;nbsp; The dk was up and running. I tried again with the NCS in VS code and this time, the previous error was not seen but i got a new problem.&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/pastedimage1667335690154v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What does this mean ? Is my new code doing something wrong? I tried flashing the peripheral_uart example which is part of the NCS without any changes. But, again that failed too. The device reboots on its own and my UART is filled with this. This is the latest problem I&amp;#39;ve run into. Can you please help me solve this ? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393399?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 09:42:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe499c2f-5087-4076-b319-dbfa24b86963</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;you can try to do&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;gt; nrfjprog --readcode --readuicr filename.bin&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and compare this binary with the original binary you are trying to flash into it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If there are differences then it is simply clear that atleast one flash sector is corrupted/damaged. You then need to replace chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393348?ContentTypeID=1</link><pubDate>Tue, 01 Nov 2022 00:01:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1de6f84-fcdd-4942-bb15-bf9bfa140c4d</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;Hi, hope you are okay. first of all, sorry for the late reply. unfortunately, I do not have any nrf52840 lying around. Is there some other way i can verify what the issue is or recover the device ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot flash nrf52840</title><link>https://devzone.nordicsemi.com/thread/393221?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 12:24:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4772de2c-9dc6-40e9-a9b0-4b9e6c34ddaa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It seems like the flash is failing when verifying the written image. Could be that there are few bad sectors in the flash. Can you try to flash the same binary into some other nRF52840 if you have (just to confirm if this is the issue with bad sector in flash or not).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>