<?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>How to flash bootloader with JLink / gcc ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11001/how-to-flash-bootloader-with-jlink-gcc</link><description>Hi ; Following my question how-to-flash-with-jlink-command-line which was successful, I can flash Soft Device and my app on my nRF51822 board (mac os x + gcc) 
 Now I would like to flash the bootloader 
 if SWD
speed 4000
device nrf51
w4 4001e504</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Oct 2016 09:34:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11001/how-to-flash-bootloader-with-jlink-gcc" /><item><title>RE: How to flash bootloader with JLink / gcc ?</title><link>https://devzone.nordicsemi.com/thread/41126?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2016 09:34:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0e34399-e67b-4281-9e78-db13af5cc4b1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Tanasis: Please create a new question with more detailed description, please try to flash the softdevice before the bootloader and flash only the softdevice and bootloader (no app) first, for testing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader with JLink / gcc ?</title><link>https://devzone.nordicsemi.com/thread/41125?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2016 22:30:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5266fed-bb9b-453d-b383-91421ce535e4</guid><dc:creator>Tanasis!</dc:creator><description>&lt;p&gt;Any updates on this? Having the same issue... Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader with JLink / gcc ?</title><link>https://devzone.nordicsemi.com/thread/41128?ContentTypeID=1</link><pubDate>Wed, 23 Dec 2015 11:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abb34db8-a328-4e73-abd5-e63dd1113200</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Thomas,&lt;/p&gt;
&lt;p&gt;When it FAIL what was failed ? After you flash the bootloader, you supposed to flash the application via DFU not via nrfjprog (because the bootloader will think that there is no valid application when it starts)
If you want to use nrfjprog to flash the application, you would need to write into the bootloader setting telling it that there is a valid application. Please have a look at question E in &lt;a href="https://devzone.nordicsemi.com/blogs/685/common-faq-on-dfu/"&gt;this FAQ&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader with JLink / gcc ?</title><link>https://devzone.nordicsemi.com/thread/41127?ContentTypeID=1</link><pubDate>Tue, 22 Dec 2015 18:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8accb673-9902-4d28-8d87-1ee1a6ca8163</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;I can&amp;#39;t think of any reason this wouldn&amp;#39;t work. Really all the bootloader is is a hex file just like a softdevice or an application.&lt;/p&gt;
&lt;p&gt;So try to flash your bootloader on its own. If that works then try to flash the bootloader and then the application. If that works I have a feeling that your bootloader and softdevice overlap (they both try to store some data in the same address) and this will fail because in our device you can only write to flash that is erased (you can&amp;#39;t write a bit in flash that is 0 to 1 without erasing).&lt;/p&gt;
&lt;p&gt;So double check that the two aren&amp;#39;t overlapping. You can probably fix this really quick by checking the linker scripts for the bootloader and softdevice and making sure their ROM memory doesn;t overlap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>