<?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>OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8343/ota-dfu-bootloader-sdk9-0-0</link><description>Hi all, 
 I am trying to put the NRF51822 XXAA chip into DFU mode (the board used is a custom one and not the one in DK/EK). 
 SoftDevice V8.0.0
Bootloader Source from SDK9.0.0 
 I was able to build the bootloader successfully using GCC but when both</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jul 2015 11:35:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8343/ota-dfu-bootloader-sdk9-0-0" /><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30220?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 11:35:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487881f3-eaa5-4feb-a5ac-5b4e7cd0be43</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;@Hung Bui &lt;a href="https://devzone.nordicsemi.com/question/46842/how-to-modify-ld-to-support-16kb-ram-from-32kb/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/question/46838/ota-app-to-app-dfu-sdk900/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30219?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 11:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b10ccc3e-8a31-4e22-abe8-6f98b04fda02</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;Sure will create and add the link here.Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30218?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 11:04:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42fd7393-6c59-4796-84ee-af053f83b259</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@martial: Please create another case when you have different question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30216?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 06:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a9f4dc-91d1-414b-9092-0ba98af64ae0</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;@Hung Bui Now having seen the device advertising in bootloader mode, next step would be downloading the application.hex. So I compiled ble_app_hrs S110_with_dfu example and did OTA dfu. Now the device advertises in normal application mode as Nordic_HRM. What i was not able to do is an OTA DFU after that. The NRFtoolbox app hangs displaying &amp;quot;&lt;strong&gt;Connecting..&lt;/strong&gt;&amp;quot;. Why is that? Please help me on this too. Should I change the ram size for this too?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30217?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2015 04:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:542d3009-4fd3-4fa6-b8f4-7bf7fd427ab9</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;@Hung Bui Once I removed RTT, it worked. Thank you very much. But one more question; How did you convert the RAM settings. Can you help me on that please?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;You are using the 16kB RAM, the example made for 32kB Ram variant. Please modify the Project Setting -&amp;gt;Target -&amp;gt; IRAM1 and IRAM2 setting to match with your chip :
IRAM1:
Start: 0x20002C00 , Size: 0x5380  --&amp;gt; 0x1380
IRAM2:
Start: 20003F80, Size 0x80
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Should I change to these settings for any program that I would compile here after for the board (including the application examples I mean)? It worked for me with the stack size 2048 and why must it be reduced to 2016? what are reasons for you reducing stack from 2048 --&amp;gt; 2016??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30215?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 14:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996c0a09-680c-40a5-bb7e-4b31adb5cfa3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Martial: Please remove RTT, there won&amp;#39;t be enough RAM for RTT in the DFU.&lt;/p&gt;
&lt;p&gt;In addition, you may need to change the Stack_size to a little bit smaller, it works for me to change the stack size to 2016.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30214?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 13:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6944be8b-10dc-44ca-bd87-11c08b87d171</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;Receiving an error during compile time as below for changing the value as given above&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;compiling SEGGER_RTT.c...
compiling system_nrf51.c...
linking...
.\_build\nrf51422_xxac.axf: Error: L6406E: No space in execution regions with .ANY selector matching segger_rtt.o(.data).
.\_build\nrf51422_xxac.axf: Error: L6406E: No space in execution regions with .ANY selector matching dfu_transport_ble.o(.data).
.\_build\nrf51422_xxac.axf: Error: L6406E: No space in execution regions with .ANY selector matching ble_conn_params.o(.bss).
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 0 warning and 16 error messages.
&amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 16 Error(s), 0 Warning(s).
*** Completed Cross-Module-Optimization after 2 iteration(s).
Target not created.
Build Time Elapsed:  00:00:18
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30221?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 12:52:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:576c02f8-9b8e-406b-9ca4-2a1fff2767cb</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You are using the 16kB RAM, the example made for 32kB Ram variant. Please modify the Project Setting -&amp;gt;Target -&amp;gt; IRAM1 and IRAM2 setting to match with your chip :&lt;/p&gt;
&lt;p&gt;IRAM1:&lt;/p&gt;
&lt;p&gt;Start: 0x20002C00 , Size: 0x1380&lt;/p&gt;
&lt;p&gt;IRAM2:&lt;/p&gt;
&lt;p&gt;Start: 20003F80, Size 0x80&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30213?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 12:49:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fadbc04a-24b4-4896-884e-0c3fc65dc87b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@maritial: please download and install latest &lt;a href="http://www.nordicsemi.com/eng/nordic/download_resource/33444/13/21067330"&gt;nRFTools&lt;/a&gt; from us. Or you can remove -family in the command box in Project Setting -&amp;gt; Utilities.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30212?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 12:42:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36140b5a-c526-4c7d-b5c3-097bc2ff4c42</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;SO I tried loading with nRFgo, it was successful but the device was not advertising at all (as DFUTarg). What did I do wrong? I just compiled and loaded the example program. As I Stated earlier, I use&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;SDK 9.0.0&lt;/li&gt;
&lt;li&gt;SD 8.0.0&lt;/li&gt;
&lt;li&gt;nrf51822 CEAAE00 (0x0079) which has  256 kB FLASH, 16 kB RAM&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30211?ContentTypeID=1</link><pubDate>Wed, 29 Jul 2015 11:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1984b8e1-fb7a-4273-bc91-c42c28e9f74e</guid><dc:creator>martial</dc:creator><description>&lt;p&gt;@Hung Bei Now instead of using GCC, I used Keil to build the DFU example under the below location in SDK&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;.\nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\pca10028\dual_bank_ble_s110\arm5_no_packs
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Didn&amp;#39;t make any changes to it , just compiled it and tried loading. I got the following error&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Program Size: Code=12712 RO-data=380 RW-data=352 ZI-data=6108  
FromELF: creating hex file...
&amp;quot;.\_build\nrf51422_xxac.axf&amp;quot; - 0 Error(s), 0 Warning(s).
*** Completed Cross-Module-Optimization after 3 iteration(s).
Build Time Elapsed:  00:00:28
nrfjprog.exe --family NRF51 --program &amp;quot;D:\Projects\Forkbeard\nRF51_SDK_9.0.0_2e23562\examples\dfu\bootloader\pca10028\dual_bank_ble_s110\arm5_no_packs\_build\nrf51422_xxac.HEX&amp;quot;
ERROR: Option &amp;quot;--family&amp;quot; provided is incompatible with any of the erase, program, and reset arguments.
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30206?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 14:27:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebb98cae-aacb-40b1-a0df-4ac078e04f01</guid><dc:creator>syntroniks</dc:creator><description>&lt;p&gt;I wish I was more dedicated, I just replaced xAA silicon with the xxAC chips on my boards. I was getting issues with crc computation and did not investigate further.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30210?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 12:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d12636c-69cd-408e-a92e-6d44b751d33c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@martial:
In your makefile, you use this linker script:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf51822_xxaa_s110: LINKER_SCRIPT=gcc_s110_nrf51822_xxaa.ld
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This is wrong, please use dfu_gcc_nrf51.ld. Without the correct linker script, the setting in UICR area is not set and the MBR will not be able to find your bootloader start address.
If you change to:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf51822_xxaa_s110: LINKER_SCRIPT=dfu_gcc_nrf51.ld
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30209?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 10:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa94357-5459-47cf-b0df-207fd8f91b32</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;you need to use either nrfgo or nrfprog to flash softdevice + dfu first, then go back to eclipse and start debug.
to change ram size.  It&amp;#39;s ins the file dfu_gcc_nrf51.ld&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30208?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 05:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9928b3e-acb6-4d9a-ad98-4276d16a5095</guid><dc:creator>martial</dc:creator><description>&lt;ul&gt;
&lt;li&gt;I use a Rev 3 chip&lt;/li&gt;
&lt;li&gt;Board has a 32KHz crystal&lt;/li&gt;
&lt;li&gt;I have used nrfgo and what to flash? where can I find the bootloader hex files that can be flashed so that UICR is set properly&lt;/li&gt;
&lt;li&gt;How to modify the ld script? The RAM size is 16KB&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OTA DFU Bootloader SDK9.0.0</title><link>https://devzone.nordicsemi.com/thread/30207?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2015 00:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f536eb9-f0c2-4134-8f05-16680a09fe9d</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Many thing you need to check first.  Which chip revision is on your custom board?  Rev 1 won&amp;#39;t work.  Does your board have the 32KHz crystal? If not you need to change the softdevice init to use RC oscillator instead. in order to  breakpoint, you need to flash the dfu with nrfgo or other means that sets the UCIR properly. After that you can break.   Without the UCIR set properly, softdevice won&amp;#39;t jump to DFU, though you cannot break in debug.  Try to break in startup reset function first to see until when it crashes.  Also make sure your ld script set the ram setting correctly for your chip.  the DK uses 32KB ram.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>