<?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>Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16575/porting-s130-bootloader-to-nrf51822</link><description>Hello, 
 I&amp;#39;m pretty much new to NRF development and I&amp;#39;m having lots of questions trying to get a custom board to work with the provided BLE bootloader example in SDK 11. 
 I&amp;#39;m using GCC and most of the answers in this forum are using Keil I think. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Sep 2016 12:48:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16575/porting-s130-bootloader-to-nrf51822" /><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63407?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2016 12:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7bf50cf-9421-433a-9bf9-35e04094f080</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;You could also try using &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_nrfjprogexe.html?resultof=%22%6e%72%66%6a%70%72%6f%67%22%20"&gt;nrfjprog&lt;/a&gt; to program the chip. If you&amp;#39;re nt able to program the chip with nrfjprog, then you can try to recover the chip using &lt;code&gt;nrfjprog --recover&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63406?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 10:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec7b263-9bc1-4547-9ae2-a579dff6fcc2</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Is the MCU  locked ?&lt;/p&gt;
&lt;p&gt;See
&lt;a href="http://www.rogerclark.net/troubleshooting-the-nrf51822/"&gt;www.rogerclark.net/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63405?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 10:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d6a926-1f5e-4477-a1ef-26c6f84b4cf5</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;When I try to download the code I get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Failed to prepare for programming.
Failed to download RAMCode!
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63404?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 10:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1abbcd2e-ae38-4f2e-8518-eea408d0b259</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I&amp;#39;m currently using a JLink programmer and I download the code using JLinkExe. However, when I try to download the code onto the board it just doesn&amp;#39;t download. And yes, my board has an external 32.768kHz crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63403?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 10:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da8ef8a-76f7-4a87-afbd-c4af68cf0398</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try to call &amp;#39;nrfjprog --readregs&amp;#39; while the bootloader is running and post the output in order to confirm that the hardfault exception hasn&amp;#39;t been triggered.&lt;/p&gt;
&lt;p&gt;Also, does your board have a LF crystal like the dev boards? If not you will need to change the clock source to the internal RC in the stack init routine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63402?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 10:03:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14cc95c2-ced4-42ed-8a6d-c19c52725cce</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Ok, thanks. I did that but I still cannot download the .bin to the board. It just gets stuck there... Any idea what could be happening?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63401?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 09:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70080200-0895-4769-a3cc-c9d5b27de148</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;As Roger said, you need to adjust the linker settings to limit RAM usage to the 16K boundary. The linker file (*.ld) is located in the bootloader directory and can be changed as follows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x1380

/** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
*  from application to bootloader when using buttonluss DFU OTA. 
*/
NOINIT (rwx) :  ORIGIN = 0x20003F80, LENGTH = 0x80
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63400?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 09:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c6e074-c392-42a5-9133-37397e2c047b</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;This is what I see in the linker file (some comments removed):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;MEMORY
{
  FLASH (rx) : ORIGIN = 0x3C000, LENGTH = 0x3C00

  /** RAM Region for bootloader. This setting is suitable when used with s110, s120, s130, s310. */
  RAM (rwx) :  ORIGIN = 0x20002C00, LENGTH = 0x5380

  /** Location of non initialized RAM. Non initialized RAM is used for exchanging bond information
   *  from application to bootloader when using buttonluss DFU OTA. 
   */
  NOINIT (rwx) :  ORIGIN = 0x20007F80, LENGTH = 0x80
  BOOTLOADER_SETTINGS (rw) : ORIGIN = 0x0003FC00, LENGTH = 0x0400
  UICR_BOOTLOADER (r) : ORIGIN = 0x10001014, LENGTH = 0x04
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Porting S130 bootloader to NRF51822</title><link>https://devzone.nordicsemi.com/thread/63399?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2016 09:43:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa186d14-05fd-4ff3-8c7c-1fb4a77a12de</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;QFAA has 16k less RAM than the QFAC, so normally you need to change the RAM size setting in the linker and reduce it by 0x4000&lt;/p&gt;
&lt;p&gt;However I don&amp;#39;t know what value IRAM is in your linker file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>