<?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>JLink script only results in functional device when flashing whole chip?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2873/jlink-script-only-results-in-functional-device-when-flashing-whole-chip</link><description>I have the following jlink script for flashing an nrf51822
I&amp;#39;m on Mac OSX 10.9 and am talking to the PCA10001 eval board. 
 r 
w4 4001E504 2
w4 4001e50C 1 
sleep 1000 
w4 4001e504 1 
sleep 1000 
loadbin s110_nrf51822_6.0.0_softdevice_mainpart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Jun 2014 17:38:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2873/jlink-script-only-results-in-functional-device-when-flashing-whole-chip" /><item><title>RE: JLink script only results in functional device when flashing whole chip?</title><link>https://devzone.nordicsemi.com/thread/10982?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2014 17:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c18ec8fd-9a6d-4596-bffd-43383bdfc038</guid><dc:creator>Scott Buchanan</dc:creator><description>&lt;p&gt;Adding the &amp;#39;-device nrf51822&amp;#39; to the command line, as suggested by RK, worked!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink script only results in functional device when flashing whole chip?</title><link>https://devzone.nordicsemi.com/thread/10980?ContentTypeID=1</link><pubDate>Mon, 23 Jun 2014 00:40:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6ae0ea6-1b6c-48d6-b8c0-5a49541aa615</guid><dc:creator>Scott Buchanan</dc:creator><description>&lt;p&gt;THANKS!!! That solved it!!  Just needed to add -device nrf51822 to the command line.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: JLink script only results in functional device when flashing whole chip?</title><link>https://devzone.nordicsemi.com/thread/10981?ContentTypeID=1</link><pubDate>Sun, 22 Jun 2014 02:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86fad83d-1eaf-49f4-9a05-8659fab01c06</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Should work fine (do you really have a space in loadbin, I doubt it?) - I do similar things with my nrfjprog loader for OS X plus when I use CrossWorks it does that too, leaves the soft device and flashes the software only. Works fine.&lt;/p&gt;
&lt;p&gt;why don&amp;#39;t you try using JLinkExe to pull stuff back OFF the board and make sure it looks right (that&amp;#39;s savebin instead of loadbin). There&amp;#39;s precious little documentation for JLinkExe, just run it and type &amp;#39;?&amp;#39; to get help, and that&amp;#39;s about all the help you will get from it however.&lt;/p&gt;
&lt;p&gt;make sure you&amp;#39;re running JLinkExe with the -device switch so it knows what you&amp;#39;re programming.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have the problem from the poster below - I can unplug, reset, remove, replace and mess around with the device as much as I want, never need to reflash it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>