<?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>Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9625/problem-with-nrfjprog-and-corrupted-images</link><description>Hi, 
 I use GCC for compilation and nrfjprog for flashing. A few weeks ago I needed to switch on compiler optimization (Level 1) because my code grew a little too big. Now I&amp;#39;ve often experienced corrupt images after flashing only the application. nRFgo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Oct 2015 09:38:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9625/problem-with-nrfjprog-and-corrupted-images" /><item><title>RE: Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/thread/35584?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 09:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9989afc3-59a6-4f3f-bdd0-3524eaaa54aa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;normally i read it from the chip&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog -e
nrfjprog --memrd 0x10001000 --n 200
now you see all UICR registers are clean&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog --program my_application.hex
nrfjprog --memrd 0x10001000 --n 200&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;now you will know if anything else is written to UICR&lt;/p&gt;
&lt;p&gt;I have missed to see that you mentioned that the error happens occasionally. any possibility that i can get the application.hex to try it out here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/thread/35583?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 08:09:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d5c89d0-45b1-4d3b-9a92-6a9a17532a6b</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;It tells me that it&amp;#39;s nrfjprog 7.5.2 together with LJinkARM.dll version 5.2a. I do not have any UICR registers in my code. Not knowingly that is, is there any way to check my compiled hex file for registers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/thread/35580?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2015 06:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ed50147-2318-4d2a-93b0-bbf085579db7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;does your application.hex contain any UICR register address. If it does, I think the older version of nrfjprog had a problem with the readback. it would get confused with the size and try to read the whole address space in between. That would be lot more than 900KB!! Which version of nrfjprog are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/thread/35582?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 14:14:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63398967-ac90-44e7-8e08-e24454294e2b</guid><dc:creator>Marius Heil</dc:creator><description>&lt;p&gt;The error only happens occasionally. I do not use nrfGostudio much because nrfjprog is scriptable, but I&amp;#39;d guess nrfgo studio uses nrfjprog internally...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with nrfjprog and corrupted images</title><link>https://devzone.nordicsemi.com/thread/35581?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2015 13:47:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2363f73-9af3-493a-aded-1d72aa691246</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;how is this problem related to nrfjprog?
can you flash your application using nrfgo studio and see if the behavior is different?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>