<?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>DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50816/dfu-works-with-nrf52-dk-but-not-with-custom-board-using-fanstel-bc832-module</link><description>My team is in the process of developing a product that uses the Fanstel BC832 module and have been running into issues trying to implement buttlonless DFU in our application. I believe I have added the buttonless dfu service correctly by following the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Aug 2019 07:37:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50816/dfu-works-with-nrf52-dk-but-not-with-custom-board-using-fanstel-bc832-module" /><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203739?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 07:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:877d863b-b4e7-49eb-8a9c-9219d7e23aed</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Android exposes the API to re-read services as opposed to iOS. The only way to re-read the service on iOS is to clear the cache somehow.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d recommend using the Service changed characteristic (enabled in sdk_config) If the service table is dynamic, or if there is a chance that it may change in the future (through a DFU). There is a good summary of attribute caching/service changed in core spec, vol 3, part g, section 2.5.2.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203699?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 22:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bfcdfc9-f64a-44c2-9e27-325e98c08ced</guid><dc:creator>tclemcpe</dc:creator><description>&lt;p&gt;So I have both an IPhone and an Android but had mainly been using Android because that is what I normally use. The custom service doesn&amp;#39;t show up on my Android with nRF Connect but I tried it with the IPhone and it does. i then connected it with my Android phone and told it to re-read the services and then it shows up. The device is now working fine I guess thats what the problem was. But even after restarting my device, turning bluetooth off and on, unbonding and bonding the device again, it doesn&amp;#39;t show the custom service when i first connect the device, i still have to tell it to re-read the services. Either way it seems to have been just fine all along the app just didn&amp;#39;t show that it was. Thanks for the help Vidar!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203525?ContentTypeID=1</link><pubDate>Mon, 12 Aug 2019 09:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d429012-02e9-437d-839b-a42af6d7095e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Agree,&amp;nbsp;it seems like it&amp;#39;s not a bootloader problem. I read your original description&amp;nbsp;again and I must have overlooked the fact that you had already verified the return values from service initialization in your app.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you using nRF connect on iPhone by any chance? In that case, maybe this particular device has been cached by your phone (caching allows the phone to skip service discovery on following connections). Please try to&amp;nbsp;toggle flight mode enable or reboot the phone. This will clear any attribute cache on the phone so that it has to perform new service discovery on the next connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203412?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 21:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9161de26-a599-41d9-8362-d8ac1b3b218b</guid><dc:creator>tclemcpe</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;At first I thought as well that the application just wasn&amp;#39;t running and it was stuck in bootloader mode, but I am very sure it is not. My custom board still advertises with the correct name and parameters, the LED&amp;#39;s blink exactly as I have set them to and it goes to sleep/wakes up exactly how I have programmed it. I still debugged the bootloader from my custom board and the dfu_enter_check() function does not return true for any of the if statements and it successfully gets to nrf_bootloader_app_start() in the init function.&lt;/p&gt;
&lt;p&gt;For the SDK_config settings I have NRF_BL_DFU_ENTER_METHOD_BUTTON checked with the pin set to P0.16 (on my Fanstel module this pin is unconnected in my schematic), PINRESET is unchecked, GPREGRET is checked, and BUTTONLESS is unchecked. These are the default settings and I have not changed them from opening the example, do these seem correct for use with a buttonless dfu application?&lt;/p&gt;
&lt;p&gt;I am guessing this has something to do with my application code, I am just not seeing where or why as it does not show any errors through initialization and can loop through my main application loop.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203345?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 13:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:331da6a4-5832-4e57-b4e7-b4ed21ac81c7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The RAM and ROM settings should be the same as both use the xxAA variant. Also, the IC revision should not be relevant to this. Rev.2&amp;nbsp;is only including&amp;nbsp;some errata fixes related to the radio, more details in this document:&amp;nbsp;&lt;a title="IN105 Informational Notice v1.0" href="https://infocenter.nordicsemi.com/pdf/in_105_v1.0.pdf?cp=3_1_3_1"&gt;IN105 Informational Notice v1.0&lt;/a&gt;&lt;/p&gt;
[quote user=""]When I test it with my custom device, the custom service I created does not show up from the nrfConnect app and can&amp;#39;t read any of the characteristics, only the secure DFU service shows up[/quote]
&lt;p&gt;It sounds&amp;nbsp;like the device stays in bootloader DFU mode instead of booting the main application. It could be because of a different pinout. The original bootloader will for instance enter DFU mode if the &amp;quot;bootloader button&amp;quot; pin is pulled low on startup.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest opening the bootloader project in SES and try to debug it on the custom board to see if any of the checks in nrf_bootloader.c::dfu_enter_check() return true. You may also go over the&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_* configurations in sdk_config.h to make sure it correctly configured for the custom board.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203182?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 00:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19086453-3bbd-4455-9ba7-6ce2a98cc0ad</guid><dc:creator>tclemcpe</dc:creator><description>&lt;p&gt;I do have the UUID count set to 2 and the SDH debug enabled already, here is what SES outputs:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565309818076v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and the placement settings:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1565309861656v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Like I said it is working just fine on the Development kit, just not on the Fanstel chip. One thing I have noticed is that the connect app says the Dk board uses NRF52832_xxAA_REV2 while the fanstel module is&amp;nbsp;&lt;span&gt;NRF52832_xxAA_REV1.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU works with nRF52 DK but not with custom board using Fanstel BC832 module</title><link>https://devzone.nordicsemi.com/thread/203180?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 23:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:307b3f10-ab48-4d72-89fa-ce18eadb650a</guid><dc:creator>BinderT</dc:creator><description>&lt;p&gt;This is for GCC in sdk_config.h there is something similar in other environments. This Macro needs to be adjusted to use custom uuids.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs. 
#ifndef NRF_SDH_BLE_VS_UUID_COUNT
#define NRF_SDH_BLE_VS_UUID_COUNT 2
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If you compile in debug mode with SDH debug enable it will tell you the&amp;nbsp;&lt;span&gt;RAM and ROM settings.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;e&amp;gt; NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
//==========================================================
#ifndef NRF_SDH_BLE_LOG_ENABLED
#define NRF_SDH_BLE_LOG_ENABLED 1
#endif&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Compile makefile in debug mode. Add the -DDEBUG to the c compile flags.&lt;br /&gt;Do a clean build after changing the settings.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>