<?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>IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60235/iar-flash-loader-error-nrf52810</link><description>I am developing for an nRF52810 target application. 
 I am using IAR 8.42 with a PE Micro debugger. If I debug a project (call it project A), the linker ROM space starts at 0x0, I can program a device with the debugger, and run and step through the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Apr 2020 07:14:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60235/iar-flash-loader-error-nrf52810" /><item><title>RE: IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/thread/245132?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 07:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a1b9686-2c68-40de-8a09-26a2e0eeab27</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that you were able to recover the boards! I&amp;#39;m not that familiar with how this works in IAR,&amp;nbsp; but it sounds like the Flash loader might be required with other non Jlink programmers.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/thread/245116?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 04:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138980b4-a146-4d3f-9379-2c84333c0a8d</guid><dc:creator>zkarim</dc:creator><description>&lt;p&gt;So I am able to access the Flash control registers manually and erase the entire flash area, thank you!&amp;nbsp; Boards saved.&lt;/p&gt;
&lt;p&gt;With regard to deselecting the &amp;quot;Use Flash Loaders&amp;quot; in the Debugger Download Options, when I do that, the application does not get programmed, and I get the following error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1587098246886v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When I use the flash loader, the application programs, and I&amp;#39;m able to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/thread/244959?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 11:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f644082c-b243-49cf-8193-e188baa67833</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, I don&amp;#39;t have a PE Micro to test with, unfortunately. I tried to replicate this with the regular J-link by adding automatic loading of the Softdevice in a BLE example then went back and debugged the blinky example starting at 0x0, but the Softdevice got overwritten successfully so didn&amp;#39;t encounter any problems with debugging.&lt;/p&gt;
&lt;p&gt;The problem in your case appears to be that the debugger fails to erase the MBR section of the Softdevice at address 0 for some reason. Does the PE Micro have a separate programming utility you can use to perform a chiperase? Alternatively, give you register access so you can do the &amp;quot;&lt;span&gt;&lt;a title="Erase all" href="https://infocenter.nordicsemi.com/topic/ps_nrf52810/nvmc.html?cp=4_5_0_3_2_4#concept_zw3_mzy_vr"&gt;Erase all&amp;quot;&lt;/a&gt;&lt;/span&gt; manually?&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-abd43b63b16e4bc999ed0cbdf07316ee/pastedimage1587036265410v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-abd43b63b16e4bc999ed0cbdf07316ee/pastedimage1587035703354v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And probably not related but the following option must be enabled when debugging applications that uses the Softdevice:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-abd43b63b16e4bc999ed0cbdf07316ee/pastedimage1587035737300v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also, it may be worth trying to update to the most recent MDK release in case it includes improvements to the flash loader. It&amp;#39;s available for download at &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-MDK/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-MDK/Download#infotabs&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/thread/244835?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 04:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc42754c-f189-44a6-b3b1-6d42991cdd72</guid><dc:creator>zkarim</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried that, and after it loads, it immediately starts running, but it doesn&amp;#39;t stop at main().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: IAR Flash Loader Error nRF52810</title><link>https://devzone.nordicsemi.com/thread/244833?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 03:42:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a61ab0f2-3078-493d-9f8d-48479f12532c</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try&amp;nbsp;&lt;span&gt;un-checking the &amp;quot;Use Flash Loader&amp;quot; box .. worth a try, it causes issues with SoftDevice etc&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>