<?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>programming nrf52840 fails during writing after a random amount of time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77374/programming-nrf52840-fails-during-writing-after-a-random-amount-of-time</link><description>i have a custom board with an nrf52840, i use a J-link programmer to flash the chip with the nrf connector programmer app. 
 I am able to read the memory and erase the chip, however when i try to write any hex to the device it fails with an error. when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jul 2021 12:02:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77374/programming-nrf52840-fails-during-writing-after-a-random-amount-of-time" /><item><title>RE: programming nrf52840 fails during writing after a random amount of time</title><link>https://devzone.nordicsemi.com/thread/319582?ContentTypeID=1</link><pubDate>Mon, 12 Jul 2021 12:02:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9651adca-99e3-4dbf-b4e4-845c4e2b09b8</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]I am able to read the memory and erase the chip, however when i try to write any hex to the device it fails with an error. when using j-flash lite it also fails most of the time but the point where it fails is random and in rare cases it doesn&amp;#39;t fail though this chance decreases as the hex size increases.[/quote][quote user=""]on a dev board with the same chip and everything connected in the same way it flashes successfully so i suspect a hardware issue.[/quote]
&lt;p&gt;This makes me suspect a hardware issue as well. Which debugger are you using, and how is it connected to the SoC on the custom board? Please be as specific as possible.&lt;br /&gt;Have you been able to successfully program your custom board previously? If so, is there any difference between the setups used then and now?&lt;/p&gt;
[quote user=""]it also fails most of the time but the point where it fails is random and in rare cases it doesn&amp;#39;t fail though this chance decreases as the hex size increases.[/quote]
&lt;p&gt;Erasing and writing takes significantly longer than just reading the memory, so this also points in the direction of a hardware issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>