<?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>Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4214/problems-flashing-the-dfu-on-the-eval-kit</link><description>I am using the GCC DFU project provided by Nordic on GitHub ( devzone.nordicsemi.com/.../) 
 I altered the main.c to trigger to DFU mode based on the contents of the GPREGRET register rather than Button 7. However when I try and Flash the .hex file </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Oct 2014 08:25:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4214/problems-flashing-the-dfu-on-the-eval-kit" /><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15052?ContentTypeID=1</link><pubDate>Fri, 31 Oct 2014 08:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dabaa4a7-9bfb-45e1-922a-ea3db1476cdf</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Yes, I think the support portal is a more suited place for this case. Is it okay that I close the thread then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15051?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2014 21:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ddf8e58-3c43-4e95-863f-8c7d39bffe28</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;I cannot get the project to compile if I remove the linker script gcc_nrf51_bootloader_xxaa.ld  from the /gcc folder in the project and paste it in the template/gcc folder.&lt;/p&gt;
&lt;p&gt;Thanks for the assistance, but i cannot share .hex or .map files on a public forum.  I&amp;#39;ll move this to the customer portal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15050?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2014 11:57:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc44a5d-5484-4f44-a844-42607d7d7d4a</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Could you try to copy your DFU project in to a fresh install of the SDK under the &amp;quot;device_firmware_updates&amp;quot; folder , and copy in the linker files to the template/gcc folder? Then in eclipse, import you project as a Makefile project and add /gcc to the build directory. This is what I did at least.&lt;/p&gt;
&lt;p&gt;There is also a .map file in the Build folder, could you send me this file for both the DFU and the Application, so I can check and see what went wrong during the linking?&lt;/p&gt;
&lt;p&gt;Just to check, the application has to be flashed through the bootloader, if you are using a bootloader, not in nRFgo Studio.&lt;/p&gt;
&lt;p&gt;Could you send me you app .hex file so I can test it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15054?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2014 01:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27b44cfd-4518-4e08-8ab2-dced43519330</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Just to double check:  I have the SoftDevice,  My Application Project, and my DFU Application Project (bootloader - gcc - BLE).   I first Erase-All, then flash the SoftDevice (88kB), then flash the .hex output of the DFU project (54kB), then My Application Project .hex code (112kB).   Total memory usage is therefore 254kB.  I don&amp;#39;t think there is sufficient Flash memory to complete any OTA upgrade?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15055?ContentTypeID=1</link><pubDate>Thu, 30 Oct 2014 01:38:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a85b980a-39d0-4314-b130-096f56d96183</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Also noted that when I build the Nordic DFU project from GitHub,  the bootloader.bin file is 261,937kB in size.   So quite my project it definately not linking to the linker file properly.  However I do not have any option in Eclipse to set the linker file paths.  Isn&amp;#39;t this done via the Makefile, which is already correctly referenced as the project compiles?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15053?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 22:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:095f71e7-b12a-479c-b0d1-84bf8e2b0818</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Thanks for your help.  I had copied those files to the template/gcc folder.  However I still had the same issue.  I found another version of the DFU GCC project on the Nordic Github page (&lt;a href="https://github.com/NordicSemiconductor/DFU-Bootloader-for-gcc-compiler/tree/master/nrf51822_v6.0.0%20-%20GCC_Bootloader/Board/nrf6310/device_firmware_updates/bootloader%20-%20gcc%20-%20BLE)"&gt;github.com/.../bootloader - gcc - BLE)&lt;/a&gt;    When using this project, everything will compile and seems to flash.  However when I try and Flash my application on top of the SoftDevice and the Bootloader, the Application verification fails.   This is not the case when there is no bootloader.   I did notice as you mentioned, that my bootloader hex file is incorrectly named  &lt;em&gt;bootloader&lt;/em&gt;.hex.  So its not linking properly.  I can&amp;#39;t seem to fix this issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15049?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 10:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7fb430c-0d26-45fb-b2a6-22ea99035945</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I compiled your project and was able to successfully flash it to nRF51822. I had to clean the project first.&lt;/p&gt;
&lt;p&gt;I was also able to reproduce the error you got. It happened when the &amp;quot;Makefile.common&amp;quot; and &amp;quot;gcc_nrf51_s110_bootloader_xxaa.ld&amp;quot; was not copied to the folder nrf51822\Source\templates\gcc. (These files are included in the GCC DFU project you found on GitHub)&lt;/p&gt;
&lt;p&gt;The .hex file should be called &amp;quot;bootloader_gcc_s110_bootloader_xxaa.hex&amp;quot; when the right linker script is chosen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15048?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 04:09:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b751a4e5-7f74-436f-a805-4a3c86edab06</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;May be related to .NRF_UICR_BOOT_START_SECT.  There is a good DFU code in the SDK6.1.  That is the one I used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15047?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 03:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9b47ae3-53a4-48fb-b40a-edfaab514a94</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;I am suspecting the same as you.  My bootloader_util_gcc.c has the attributes matching the linker file:&lt;/p&gt;
&lt;p&gt;uint8_t  m_boot_settings[CODE_PAGE_SIZE] &lt;strong&gt;attribute&lt;/strong&gt;((section (&amp;quot;.bootloader_settings_sect&amp;quot;))) &lt;strong&gt;attribute&lt;/strong&gt;((used));&lt;/p&gt;
&lt;p&gt;uint32_t m_uicr_bootloader_start_address &lt;strong&gt;attribute&lt;/strong&gt;((section (&amp;quot;.NRF_UICR_BOOT_START_SECT&amp;quot;)))  = BOOTLOADER_REGION_START;&lt;/p&gt;
&lt;p&gt;in dfu_types.h&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define BOOTLOADER_REGION_START         0x0003C000
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15046?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 03:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3564e0b3-240f-4008-8234-7f0540d806a7</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it&amp;#39;s in the ld script.  I suspect something in the code.  Could you try to find all the &lt;strong&gt;attribute&lt;/strong&gt; stuff see if anything out the ordinary.  You may have set something thing to be located in the softdevice memory area.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15045?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 02:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e1b23b4-a74a-428c-b4e0-17f1b4877334</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Thanks Nguyen,  I am going through your linker files to find any deviations.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15044?ContentTypeID=1</link><pubDate>Wed, 29 Oct 2014 02:24:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f7254af-d4e3-4ff8-acf5-5f398f288736</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You may try my DFU GCC project at &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;embeddedsoftdev.blogspot.ca/.../ehal-nrf51.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15041?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2014 23:27:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71d63c1f-f551-48f9-83ce-9020170048ae</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;I noticed that your .hex file is only ~8kB, while mine is 50kB???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15043?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2014 21:12:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c8efb85-49e2-4f37-ac54-f78773db9d84</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Thanks for the reply Nguyen,  your .hex file does flash successfully.  So there is an issue with my project.  I suspect it could reside in either my gcc linker file or the nrf51 common linker file that it refers to.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15042?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2014 21:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:870825ba-46f0-4b75-bad2-6ffaa3e09b74</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Ok, I have a good hex here that was compiled with gcc.  Try to flash it see if it&amp;#39;s ok.  Your version may have a compilation issue.  &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_nrf51.hex"&gt;dfu_nrf51.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems flashing the DFU on the Eval Kit</title><link>https://devzone.nordicsemi.com/thread/15040?ContentTypeID=1</link><pubDate>Tue, 28 Oct 2014 19:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b375097-4033-4cf8-a003-d9988c86b633</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Anyone?    I&amp;#39;ve gone thru most of the DFU threads multiple times, unfortunately I haven&amp;#39;t found any mention of this issue.  Just hope someone else also went through it and found a solution. Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>