<?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>nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13274/nrf52-app-plus-bootloader</link><description>We&amp;#39;re working on getting our nRF52 app working with buttonless OTA updates and the bootloader. OTA works fine with the example bootloader, but when we extend our application to include the bootloader (as described here: infocenter.nordicsemi.com/index</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jul 2016 13:57:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13274/nrf52-app-plus-bootloader" /><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50608?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 13:57:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07363f30-4c67-4431-b636-03b609521864</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Glad to hear that you got it working using the Rigado Modules!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50606?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 19:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff04246-45bc-4807-839b-f23e9601a48b</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;It did not, but then we switched our hardware to the Rigado nrf52 module, which has its own bootloader and app integration library.  I believe the issues we were having were related to the ROM/RAM settings, but never had a chance to debug.  Appreciate all the help regardless, it kept us moving along at the time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50607?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2016 13:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db415f73-7994-45a3-a14b-b147dd803d30</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@andreas_wickstrom: See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk52.v0.9.0/bledfu_appswitching.html?cp=5_0_5_4_3_2_2"&gt;this&lt;/a&gt; page on our Infocenter to see how you switch to bootloader mode and initiate the DFU process.&lt;/p&gt;
&lt;p&gt;@ejg2putt: Did the memory settings that I gave you fix the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50605?ContentTypeID=1</link><pubDate>Sun, 19 Jun 2016 21:32:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1b0fefe-6f23-473f-b9ee-b3a08e9cacde</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;The SDK handles the firmware update automatically when the DFUServiceInitiator is started.  Just give it the file name of the zip file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50604?ContentTypeID=1</link><pubDate>Fri, 17 Jun 2016 07:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ccd6d56-94de-4298-9300-d788e5b7da17</guid><dc:creator>Andreas_Wickstr&amp;#246;m</dc:creator><description>&lt;p&gt;Hi
When bootloading from app. Do you set the bootloadersetting to BANK_INVALID_APP from the application and then start the bootloader or how do you let the bootloader know when to update the firmware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50603?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 08:12:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9e59124-3724-4443-864b-b92280846556</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great, keep me posted :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50602?ContentTypeID=1</link><pubDate>Sun, 15 May 2016 21:58:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b90a5b6-cc86-4042-97ed-5012ebe93953</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Thanks Bjorn,
Haven&amp;#39;t had a chance to try this yet, been working on  our hardware.  Will post results once I get back to this.&lt;/p&gt;
&lt;p&gt;Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50601?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2016 11:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf673af-306c-410e-ba20-b5eb42bd255c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The correct ROM/RAM settings for the bootloader(S132 v1.0.0-3.alpha and SDK v0.9.2) are:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1: Start 0x7B000 Size: 0x4C00
IRAM1: Start 0x20002C00 Size: 0x5380
IRAM2: Start 0x20007F80 Size: 0x80
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50598?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2016 19:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b24c7c8f-071c-44b6-b2c7-6e64a9650b12</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Bjorn or anyone else.  Any ideas or suggestions about the linking errors?  I can not seem to find the proper settings for the ROM load regions as mentioned above.&lt;/p&gt;
&lt;p&gt;Thanks
Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50600?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 18:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90599acd-e457-4882-911d-e89079bbbd20</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;I&amp;#39;ve not been able to find any definitive documentation on setting the IROM1/2 settings to eliminate the linker errors.  I need 0x50E0 space according to the linker:&lt;/p&gt;
&lt;p&gt;Load region LR_IROM1 size 20704
Execution region ER_IROM1 20480&lt;/p&gt;
&lt;p&gt;If I expand IROM1 by this amount, nrfprog complains about invalid addresses, I could not find an nRF52 version of this post:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/14988/cannot-init-the-m_boot_settings-in-s110-70-bootloader/?answer=15146#post-id-15146"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but playing around with various values for IROM1/2 start and size did not produce anything that works.&lt;/p&gt;
&lt;p&gt;If I need a total of 0x50E0 bytes can you tell me the proper IROM1/2 settings, assuming that is indeed my problem.&lt;/p&gt;
&lt;p&gt;Thanks
Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50599?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 11:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ea79be3-03b7-42dc-9960-8c829708007e</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Thanks Bjorn, I&amp;#39;ve made the code change in bootloader_settings.c, getting a couple linker errors about LR_IROM1 size exceeding limits.  I&amp;#39;m in meetings all day, I&amp;#39;ll troubleshoot those problems later today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50597?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 12:56:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b2d053-eacb-42c5-872a-6e70e36e234d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I recommend setting the &lt;code&gt;BANK_VALID_APP&lt;/code&gt; flag in the bootloader code instead of merging in a spearate hex file. You just have to alter one line in  in &lt;code&gt;bootloader_settings.c&lt;/code&gt; from&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used));   
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to the following&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t  m_boot_settings[CODE_PAGE_SIZE]    __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) = {BANK_VALID_APP};
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50596?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 11:16:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8394eb3-f929-4aa5-8746-51ebd828e8e6</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Yes, the application runs fine if I don&amp;#39;t try to extend with DFU support.  The example code also runs fine, can do an OTA with no problem - the firmware is properly downloaded and the app restarts with the downloaded code with no problem. I&amp;#39;ve successfully done this with a downloaded image of our own code using the dfu boot loader example.&lt;/p&gt;
&lt;p&gt;I was seeing the same problem when I merge the bootloader with the mergehex command in the first line of my script.&lt;/p&gt;
&lt;p&gt;But I was seeing some other strange behavior with our dev system yesterday (some sort of weird JLink logging behavior on our non-OTA/bootloader version of the code), I&amp;#39;m going to switch systems later today, and will retry everything.  I&amp;#39;ll let you know what I find, thanks  for your help so far.&lt;/p&gt;
&lt;p&gt;Just for reference, is either one of the app_valid_setting_apply.hex files that I used correct? Is one preferred over the other?&lt;/p&gt;
&lt;p&gt;Thanks
Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50594?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 07:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f5ff122-2e23-4ce6-85c1-c0fbbc334a56</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Does the application run on the PCA10040 if you do not extend the application with DFU support?&lt;/p&gt;
&lt;p&gt;Looking at one of your previous comments:&lt;/p&gt;
&lt;p&gt;mergehex -m s132_nrf52_1.0.0-3.alpha_softdevice.hex appIn.hex app_valid_setting_apply.hex -o appOut.hex&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --family NRF52 --eraseall&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --family NRF52 --program appOut.hex&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --family NRF52 --verify appOut.hex&lt;/p&gt;
&lt;p&gt;nrfjprog.exe --family NRF52 --reset&lt;/p&gt;
&lt;p&gt;In the first step(mergehex) it would appear that you&amp;#39;re only merging the SoftDevice and the Application. Is the bootloader hex already merged with the application or softdevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50595?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 23:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba6440f7-3848-45fc-85bb-95def57b824f</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Here&amp;#39;s two I tried:&lt;/p&gt;
&lt;p&gt;:020000040003F7
:10FC00000100000000000000FE000000FFFFFFFFF9
:00000001FF&lt;/p&gt;
&lt;p&gt;:020000040003F7
:08FC00000100000000000000FB
:00000001FF&lt;/p&gt;
&lt;p&gt;If I do not merge either hex file above, the device appears to be non-operable - I don&amp;#39;t get anything on the console, nor can I see any dfu advertising, etc.  So it really doesn&amp;#39;t seem to matter if one of the above files are merged or not, device seems to be dead.  Any suggestions are debugging further, troubleshooting, etc. are appreciated.&lt;/p&gt;
&lt;p&gt;Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50593?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 10:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:201a004d-1403-4fd3-9f11-458943d6f808</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Could you upload the app_valid_setting_apply.hex? Does the device start in bootloader mode if you do not merge in the app_valid_setting_apply.hex?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50592?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 09:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d7d9ce9-d634-413f-9ef5-dee522ac2c80</guid><dc:creator>ejg2putt</dc:creator><description>&lt;p&gt;Yes, that appears to be the case. Neither the debugger nor various printfs I&amp;#39;ve added show anything - I&amp;#39;ve see various posts on debugging this, but none have really worked for me.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my script:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;mergehex -m s132_nrf52_1.0.0-3.alpha_softdevice.hex appIn.hex app_valid_setting_apply.hex -o appOut.hex
nrfjprog.exe --family NRF52 --eraseall
nrfjprog.exe --family NRF52 --program appOut.hex
nrfjprog.exe --family NRF52 --verify appOut.hex
nrfjprog.exe --family NRF52 --reset&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;After I run the script, I can see the app, softdevice, and bootloader at the proper addresses in nRFgo Studio.&lt;/p&gt;
&lt;p&gt;Ed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 app plus bootloader</title><link>https://devzone.nordicsemi.com/thread/50591?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 09:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c565b5d8-0fa4-461f-88ae-3060e3f0205c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;So if you flash the application with DFU support together with the Bootloader and Softdevice, then neither the Bootloader or the application wills start?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>