<?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>BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32793/ble-bootloader-example-not-advertising-on-ble-nano</link><description>Hello, 
 i&amp;#39;m using the BLE Nano v2 with the nrf52832 on it and a DAPLink USB-Dongle. IDE is Eclipse with gcc and SDK v14.2. My current aim is to do an OTA DFU so I tried the bootloader_secure_ble example following these steps: devzone.nordicsemi.com/</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Apr 2018 09:26:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32793/ble-bootloader-example-not-advertising-on-ble-nano" /><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/128759?ContentTypeID=1</link><pubDate>Wed, 18 Apr 2018 09:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69bae41a-2904-4c45-a6d3-ef50cb06f6f1</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;Yes, it really seems to be a little bit curious. I checked other android devices before, but the same problem also occured there. I also retried the pixel tablet after checking the iPad. The iPad detected the board in bootloader mode, the pixel doesn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;However, nrfConnect received an update on android in the last few days, now it also works fine on the pixel c.&lt;/p&gt;
&lt;p&gt;Thanks for your help, though.&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/127721?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 06:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63aeee36-8a93-464e-930e-daed28a92a1e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It sounds very strange that the ipad can scan for the device&amp;#39;s advertising but the the Android phone couldn&amp;#39;t. I would suggest to try&amp;nbsp;with another Android phone, and use nRFConnect app to test.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/127467?ContentTypeID=1</link><pubDate>Mon, 09 Apr 2018 14:17:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69aefb22-e585-4531-9b7e-9b3cb6dd2f6a</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;I solved the issue: I used the nrf connect app on a pixel c tablet with the current version of android. Now I tried an ipad mini with iOS 11.3 and it worked. I saw the davice advertising in bootloader mode and could update the application. I still don&amp;#39;t know why the app on android doesn&amp;#39;t detect the device in bootloader mode but while running an application...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/127130?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 20:06:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c21b7684-26f0-4a88-9419-e30649e982ff</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;I ran the bootloader with softdevice in debug mode and paused the debugger when in dfu mode. Here&amp;#39;s the call stack at this time, maybe this information is useful:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="203" src="https://devzone.nordicsemi.com/resized-image/__size/504x240/__key/communityserver-discussions-components-files/4/1263.callstack.PNG" width="445" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126837?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 12:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3002254d-7003-4e21-a624-dda2099c1065</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;I tested the ble_app_blinky example and it seems to work fine. It advertises, I can connect to it, read, write, .. no problem. But does it use the 32 kHz crystal?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="346" src="https://cdn.sparkfun.com/assets/parts/1/1/9/2/3/14070-03.jpg" width="346" /&gt;&lt;/p&gt;
&lt;p&gt;Here you can see the bottom side of the ble nano v2. These are all the parts mounted on it. On the top side is only a yellow LED and a resistor connected to P0_11 and of course the nrf52832. But I think the part in the lower right corner is the crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126804?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 10:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4b7710-0eda-4bf1-8ca6-9d140b56c799</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please double check if you have the 32kHz crystal or not. I worries the schematics you sent is just a reference schematic of what you should have to use the module (for example the 16MHz crystal is not in the schematic).&lt;/p&gt;
&lt;p&gt;It could be very easy to test by just testing with a normal BLE example that use 32kHz crystal in our SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;Invalid bank&amp;quot; is normal as you don&amp;#39;t have valid application before a successful DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126689?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 16:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67e6ef5f-b6e6-4bfe-8e8d-ea65b9d3dcbe</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;no i haven&amp;#39;t a crystal externally, but it is mounted on the ble nano v2. Have a look at the schematic: &lt;a href="https://github.com/redbear/nRF5x/blob/master/nRF52832/pcb/schematic/Nano%20V2.0%20SCH%2020161102.pdf"&gt;https://github.com/redbear/nRF5x/blob/master/nRF52832/pcb/schematic/Nano%20V2.0%20SCH%2020161102.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;component Y1&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t change the settings of the clock in the sdk_config file. Here are my settings, they should have all the default value:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;//==========================================================

// &amp;lt;h&amp;gt; nRF_Drivers 

//==========================================================
// &amp;lt;e&amp;gt; CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver
//==========================================================
#ifndef CLOCK_ENABLED
#define CLOCK_ENABLED 1
#endif
// &amp;lt;o&amp;gt; CLOCK_CONFIG_XTAL_FREQ  - HF XTAL Frequency
 
// &amp;lt;0=&amp;gt; Default (64 MHz) 

#ifndef CLOCK_CONFIG_XTAL_FREQ
#define CLOCK_CONFIG_XTAL_FREQ 0
#endif

// &amp;lt;o&amp;gt; CLOCK_CONFIG_LF_SRC  - LF Clock Source
 
// &amp;lt;0=&amp;gt; RC 
// &amp;lt;1=&amp;gt; XTAL 
// &amp;lt;2=&amp;gt; Synth 

#ifndef CLOCK_CONFIG_LF_SRC
#define CLOCK_CONFIG_LF_SRC 1
#endif

// &amp;lt;o&amp;gt; CLOCK_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// &amp;lt;i&amp;gt; Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// &amp;lt;0=&amp;gt; 0 (highest) 
// &amp;lt;1=&amp;gt; 1 
// &amp;lt;2=&amp;gt; 2 
// &amp;lt;3=&amp;gt; 3 
// &amp;lt;4=&amp;gt; 4 
// &amp;lt;5=&amp;gt; 5 
// &amp;lt;6=&amp;gt; 6 
// &amp;lt;7=&amp;gt; 7 

#ifndef CLOCK_CONFIG_IRQ_PRIORITY
#define CLOCK_CONFIG_IRQ_PRIORITY 7
#endif

// &amp;lt;/e&amp;gt;


...


//==========================================================

// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 1
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_XTAL_ACCURACY  - External crystal clock accuracy used in the LL to compute timing windows.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM 

#ifndef NRF_SDH_CLOCK_LF_XTAL_ACCURACY
#define NRF_SDH_CLOCK_LF_XTAL_ACCURACY 7
#endif

// &amp;lt;/h&amp;gt; &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve anbled logging functionality on the clock module in the sdk_config, here is the new log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Inside main
&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;debug&amp;gt; app: In real nrf_dfu_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Running nrf_dfu_settings_init(sd_irq_initialized=false).
&amp;lt;debug&amp;gt; nrf_dfu_flash: Calling nrf_dfu_flash_init(sd_irq_initialized=false)...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;debug&amp;gt; app: Initializing the clock.
&amp;lt;info&amp;gt; clock: Function: nrf_drv_clock_init, error code: NRF_SUCCESS.
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_continue
&amp;lt;error&amp;gt; app: Single: Invalid bank
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_app_is_valid
&amp;lt;debug&amp;gt; app: Return false in valid app check&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s one more entry now, which says: drv_clock_init -&amp;gt; success.&lt;/p&gt;
&lt;p&gt;Because of the debugging, I don&amp;#39;t know exactly where and when an error happens because no real error messages occur except of the &amp;quot;Single: Invalid bank&amp;quot; log message. Is that message normal, because there was no valid application found?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126558?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 02:36:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7214565c-fa05-46ea-87a1-f8a7d1c12cab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The 32kHz crystal is not included inside the BLE Nano 2, do you have the crystal externally on your PCB ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t you need to change the configuration in sdk_config in the CLOCK setting (CLOCK_CONFIG_LF_SRC) to use RC, also change the softdevice SDH clock setting (NRF_SDH_CLOCK_LF_SRC) to use RC as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you already have the crystal or if you changed to RC and you still have the issue, you would need to debug the bootloader and see where it throws an error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126344?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 15:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9465b31a-3252-43ae-a8a1-7db0be0805fb</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;I followed the guide step by step once again from zero with a fresh sdk. The problem is, that the device doesn&amp;#39;t advertise when in dfu mode, so &amp;quot;Step D. Test DFU&amp;quot; after flashing softdevice and bootloader. There were no errors occuring while building the bootloader.&lt;/p&gt;
&lt;p&gt;I know, the example should work out of the box, anyway i decided to enable the logging functionality, here&amp;#39;s the result:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Inside main
&amp;lt;debug&amp;gt; app: In nrf_bootloader_init
&amp;lt;debug&amp;gt; app: in weak nrf_dfu_init_user
&amp;lt;debug&amp;gt; app: In real nrf_dfu_init
&amp;lt;debug&amp;gt; nrf_dfu_settings: Running nrf_dfu_settings_init(sd_irq_initialized=false).
&amp;lt;debug&amp;gt; nrf_dfu_flash: Calling nrf_dfu_flash_init(sd_irq_initialized=false)...
&amp;lt;debug&amp;gt; nrf_dfu_flash: Initializing nrf_fstorage_nvmc backend.
&amp;lt;debug&amp;gt; app: Initializing the clock.
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_continue
&amp;lt;error&amp;gt; app: Single: Invalid bank
&amp;lt;debug&amp;gt; app: Enter nrf_dfu_app_is_valid
&amp;lt;debug&amp;gt; app: Return false in valid app check&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126200?ContentTypeID=1</link><pubDate>Wed, 28 Mar 2018 07:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b54874-08df-4489-bea3-b8aa57a2d0b5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Please follow the guide and let us know at which step you&amp;nbsp;hit the error.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126174?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 20:36:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9efba54-4d7f-46ed-9fe8-0503ca4976c3</guid><dc:creator>MS_Ich</dc:creator><description>&lt;p&gt;Yes i tested Softdevice + Bootloader already before expanding to softdevice + bootloader + application + settings, even without success.&lt;/p&gt;
&lt;p&gt;Oh yes you&amp;#39;re right, that was not intentional to use s132 v4. I&amp;#39;ve tested v5 in the meantime and it also doesn&amp;#39;t work :(&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll enable the logging function, do more intensive debugging on the softdevice+bootloader version and then report.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Bootloader Example not Advertising on BLE Nano</title><link>https://devzone.nordicsemi.com/thread/126103?ContentTypeID=1</link><pubDate>Tue, 27 Mar 2018 11:57:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cb900f3-4307-46dd-bb90-41d362899fdd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Markus,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try with the bootloader only first (softdevice + bootloader ) as instructed in the guide.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Why are you testing with S132v4.0 ? Note that SDK v14.2 is made for S132v5.0&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to test with the debug variant of the bootloader and step into the code (and check the log) and check why it doesn&amp;#39;t advertise. Again, test with bootloader + softdevice first.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>