<?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>Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21867/secure-dfu-bootloader-example-not-advertising</link><description>I have followed all steps in the recent blog , but the device doesn&amp;#39;t advertise.
I am using: 
 
 BMD-300-EVAL devkit (nrf52832) 
 SDK 12.1.0 
 S132 3.0.0 
 Eclipse with
gcc-arm-none-eabi-4_9-2015q3 
 Example folder is located in:
nRF5_SDK_12</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 May 2017 17:21:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21867/secure-dfu-bootloader-example-not-advertising" /><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85869?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 17:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe97d89a-6b7f-406a-9ff3-1e1c66442736</guid><dc:creator>HeyHowdy</dc:creator><description>&lt;p&gt;I&amp;#39;ve never had a problem with Eclipse and wondered why people on this forum are always trashing it. Now I understand. Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85868?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 15:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b91bf6e-6e25-4d84-b0b8-e8288c4d5a5f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I would suggest just skip Eclipse, and simply compile using gcc and Make . It should work out of the box (of course with the dfu_public_key.c updated).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85867?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 15:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4efc92d-3d78-4762-9a6f-36c0ee06747e</guid><dc:creator>HeyHowdy</dc:creator><description>&lt;p&gt;Hey. I tried a fresh 12.2.0 and 12.1.0. I got 12.2.0 to work after doing all of the normal steps in addition to un-checking &amp;quot;Exported Entries from Referenced Projects&amp;quot; and &amp;quot;CDT Managed Build Settings Entries&amp;quot; from Project Properties-&amp;gt;C/C++ General-&amp;gt;Preprocessor Includes-&amp;gt;Providers. (I fixed some problems I was having with another project by doing that, so I decided to give it a shot.) I Also did a fresh try of 12.1.0, but if I don&amp;#39;t change anything (except for the dfu_public.key line), it won&amp;#39;t compile. I get the following errors:
Cannot find include folder: ../../../../../components/libraries/bootloader/ble_dfu/includes
Cannot find include folder: ../../config
Cannot find include folder: ../../config/secure_dfu_secure_dfu_ble_s132_pca10040&lt;/p&gt;
&lt;p&gt;If I delete those lines, it compiles.&lt;/p&gt;
&lt;p&gt;At this point, I am probably just gonna bite the bullet and port to SDK 13. Unless you have some great wisom.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85866?ContentTypeID=1</link><pubDate>Tue, 09 May 2017 09:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84415fe7-569a-4e2b-bb43-8433969ad88d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;SDKv12 should work as well. Could you just try again with the unmodified example ? Maybe a fresh copy ?&lt;/p&gt;
&lt;p&gt;The issue you have with pca10040_debug is that the memory configuration is not big enough when you remove optimization. You need to change the start address of the bootloader to make more room for the bootloader firmware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85865?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 15:30:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff6a7f4-a755-4c04-a7c5-7159e62419a4</guid><dc:creator>HeyHowdy</dc:creator><description>&lt;p&gt;Thanks for the super quick response.&lt;/p&gt;
&lt;p&gt;Ok so I started with a completely fresh SDK-13.0.0. I make micro-ecc and copy over public_key.c and adjust the Makefile to point to it.&lt;/p&gt;
&lt;p&gt;Build completes successfully. I flash softdevice v4 and then the bootloader. LED1 and LED3 on BMD-300-EVAL illuminates. NRF Connect shows it&amp;#39;s advertising. Yippee!&lt;/p&gt;
&lt;p&gt;I tried building the pca10040_debug. Without changing any optimization levels, it compiles. When I remove optimization (-O0) it gives me this error:
../../../../../components/libraries/bootloader/nrf_bootloader_app_start_asm.c:129:1: error: r7 cannot be used in asm here&lt;/p&gt;
&lt;p&gt;Debugging is useless with optimization as all I can see is disassembly.&lt;/p&gt;
&lt;p&gt;Results for SDK 12.2.0 example are that LED1 and LED3 illuminate. With 12.1.0 there is no illumination. Neither advertise.&lt;/p&gt;
&lt;p&gt;I still want to figure out what&amp;#39;s going wrong with SDK 12 as I don&amp;#39;t want to have to port over to SDK 13 and S132 v4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU Bootloader Example not Advertising</title><link>https://devzone.nordicsemi.com/thread/85864?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 11:33:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36e62889-9324-4e60-932e-8c3c9a008d30</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;Could you try to test with SDK v13 ?
I haven&amp;#39;t heard of issue with the Secure bootloader and gcc except for the buttonless example as summarized &lt;a href="https://devzone.nordicsemi.com/question/93241/what-are-sdk-12x0-known-issues/"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;How did you test ? Did you modify anything in the dfu bootloader ? If you simply compile (without modifying anything) and flash the bootloader and the softdevice, would it advertise ?&lt;/p&gt;
&lt;p&gt;You can remove optimization and run the bootloader in debug mode and see where it crashes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>