<?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>Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7890/flashing-alternating-applications-nrfgo-studio</link><description>Two applications using the same softdevice, s110, blinky and beacon from the examples. 
 Flashing softdevice and beacon successfully.
Replacing beacon app by blinky successfully.
Trying to replace blinky by beacon: 
 &amp;quot;Application .. programming failed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jul 2015 12:40:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7890/flashing-alternating-applications-nrfgo-studio" /><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28200?ContentTypeID=1</link><pubDate>Mon, 06 Jul 2015 12:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18d97d0-b6c5-4f5f-aecc-e409e8844831</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;Thanks, then we got total clarity on my flashing issues!! Doing it with nRFgo was just my last resort try since I didn&amp;#39;t get it to work with JLink in Linux, this was solved by RK above and was an error by me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28197?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 15:56:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91313647-2485-4336-959c-73b23c3f9134</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Haha - that was from the school of &amp;#39;been there, done that&amp;#39;. Happy to have been able to help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28194?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 15:15:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:880de059-2e5a-4088-bcc1-2f868fe02d60</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;What can I say, no I didn&amp;#39;t. Never suspected this since interaction with the device worked nicely in all other aspects. The option -device nrf51 did the trick, also w4 works correctly when having this. Many thanks for you persistence!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28189?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 15:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a584d103-7528-4e7e-a5e0-cfd385bb7f21</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;definitely odd as that&amp;#39;s why my RKNRFGO code does, just loadbin to replace data (after enabling writes).&lt;/p&gt;
&lt;p&gt;You are passing -device nrf51 to the jlink command line exe right? Just to be sure as that tends to break things if you don&amp;#39;t&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28193?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 15:00:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:704290be-0a14-487c-9329-4dded3f4c71b</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;Sorry tried this also two bin files one with 0x20002060 and the other with 0x0001830D. Erased flash, flashed the first to memory with loadbin, checked the position with mem32 and correctly read 0x20002060. Flashed the second file with loadbin, checked with mem32, and all zeros.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28191?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c1f9466-db84-4cbb-8947-77c745bba269</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;nothing surprising there - that&amp;#39;s how flash memory works. erase clears it to 1s, only 0s can be written to it, once a bit is zero, it stays that way until everything is erased back to 1.&lt;/p&gt;
&lt;p&gt;but your test above is bogus and has nothing to do with programming the chip. You&amp;#39;re just writing words in memory which does exactly that, writes a word in memory. That&amp;#39;s not what nrfgo does when it writes a file to memory, it&amp;#39;s not what JLink does when it does the equivalent of &amp;#39;loadbin&amp;#39;, it erases the flash it&amp;#39;s going to write to (JLink knows how to erase pages) and then writes. Make yourself 2 4-byte bin files and use loadbin to write them alternately to the flash at the same address instead of using w4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28192?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 14:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5972a22d-d024-4a21-b118-98c202a03048</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;Ok this is now even further narrowed down. When the flash is erased all ones are written to every position, writing to any of the positions works nicely since this means that some positions will go from 1 to 0. Once a position has gone to 0 it can not be brought back to 1 with another write only by a full erase of the flash. Hardware, firmware issue? Doing the same thing in the RAM section works perfectly!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28196?ContentTypeID=1</link><pubDate>Fri, 03 Jul 2015 04:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d927b1-55ed-45db-b74d-c1d02afa1f14</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;Ok, thanks for the answer. Do I have a hardware problem then? I have: Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Jun 16 2015 17:08:23
Hardware: V1.00
I do:&lt;/p&gt;
&lt;p&gt;w4 4001e504 2 // enable erase&lt;/p&gt;
&lt;p&gt;w4 4001e50c 1 // erase all&lt;/p&gt;
&lt;p&gt;r&lt;/p&gt;
&lt;p&gt;w4 4001e504 1 // enable write&lt;/p&gt;
&lt;p&gt;then w4 mem value   //check with mem32 and correct content&lt;/p&gt;
&lt;p&gt;then again w4 mem anotherValue   //check with mem32, not correct content anymore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28195?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2015 23:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36554810-a96f-48a1-95d5-8bd939cd69c6</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That is an incorrect conclusion. JLink is more than capable of erasing and reprogamming any and all bits of the chip without full chip erase, lots of us do it every single day. So you have a problem, but that&amp;#39;s not the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28190?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2015 20:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3480709d-fc94-46f1-b06b-f0ca836024d2</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;After lots of investigations using the JLinkExe I have reached the following conclusion. Each area in the flash can only be flashed once by the JLink tools, if you want to flash that area again you need to do a full erase of the flash before flashing the area. Maybe this is expected behavior but I have not seen it in any documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28199?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2015 21:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa49576f-e3cb-4cbc-8c41-6b9753544bdf</guid><dc:creator>karlsen</dc:creator><description>&lt;p&gt;Thanks for trying to help. I edited my original question above since I could not add images in comment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing alternating applications nRFgo Studio</title><link>https://devzone.nordicsemi.com/thread/28198?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2015 11:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c809da0c-f693-4602-bbee-198245791af1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m able to do this. Are you using the latest version of nRFgo Studio? I&amp;#39;m not sure how to reproduce the error you get. If I try to flash a hex with memory address 0x00000 after I have flash a SoftDevice I get.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1256.error.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Are you sure your blinky project starts at 0x18000? You can check the the hex file.&lt;/p&gt;
&lt;p&gt;It should look like this if the start address is 0x18000:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/not-this.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Not like this (start address is 0x00000):&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/this.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Edit 06.07.2015: I have been able to reproduce the error, this is a bug in nRFgo Studio. It should be able to erase the old application and flash the new one. This will be fixed in the next release. In the meantime an Erase all is required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>