<?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>Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67351/are-there-any-differences-between-sdk15-and-sdk17-in-configuring-custom-services</link><description>Hi, 
 I&amp;#39;m trying to add a custom service to a working application that has a working battery service. 
 I have followed https://github.com/NordicPlayground/nRF52-Bluetooth-Course 
 I&amp;#39;m using SDK17.0.2 but does that make any difference in the way you should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2020 11:07:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67351/are-there-any-differences-between-sdk15-and-sdk17-in-configuring-custom-services" /><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/276155?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 11:07:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44a499c0-62f6-4046-afb0-fbfefe7691e7</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;Thanks for the FLASH and RAM configuration.&lt;/p&gt;
&lt;p&gt;Please see my previous answer this morning, I got it to work on&amp;nbsp;&lt;span&gt;RF5_SDK_15.0.0_a53641a.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What remains now is to convert the solution to SDK17.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/276134?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 09:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a82402fb-220e-4c15-849a-8af8f68b577f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you use ble_app_template for nRF52840 (PCA10056) you can find that the linker configuration as follows:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x100000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x40000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x26000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0xda000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20002210&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0x3ddf0&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The RAM_START and RAM_SIZE may differ depends on your application configuration (number of custom services).&lt;/p&gt;
&lt;p&gt;Please follow the debug log when you get an issue. Please check what you have at main.c line 474.&lt;/p&gt;
&lt;p&gt;Most likely it&amp;#39;s trying to enter deep sleep mode after advertising timeout but since you were running in debug mode (probably) it didn&amp;#39;t sleep and enter the error&amp;nbsp;NRF_ERROR_SOC_POWER_OFF_SHOULD_NOT_RETURN. This is normal.&lt;/p&gt;
&lt;p&gt;Please try to connect and check which error you have.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/276131?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 09:36:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13593fc1-d5ac-44b7-99ee-f5b4b0f14f45</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;I got it to work o&lt;span&gt;n RF5_SDK_15.0.0_a53641a&lt;/span&gt;. A collegue gave me a tip to use this tutorial:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf5-ble-tutorial-characteristic/tree/master"&gt;https://github.com/NordicPlayground/nrf5-ble-tutorial-characteristic/tree/master&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-characteristics-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And now I have OURCHARACTERISTIC running on the nRF52840-DK and connected to the mobile continously updating Value.&lt;/p&gt;
&lt;p&gt;The softdevice must be changed from pca10040/s132 to pca10056/s140.&lt;/p&gt;
&lt;p&gt;What remains now is to convert to SDK17. But that will be in another ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275993?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 15:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1205b8a5-0238-40ec-8c46-bdee88735322</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;What are the correct memory setup for the nRF52840?&lt;/p&gt;
&lt;p&gt;The settings from the .emProject file are for nRF52832 as specified by the BT course:&lt;/p&gt;
&lt;p&gt;linker_section_placement_macros=&amp;quot;FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x26000;FLASH_SIZE=0xda000;RAM_START=&lt;strong&gt;0x20002220&lt;/strong&gt;;RAM_SIZE=&lt;strong&gt;0x0000dde0&lt;/strong&gt;&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275980?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 14:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38048ce9-75c4-407c-aecd-d9d712e1a958</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;The only difference I can think of between&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nRF52-Bluetooth-Course"&gt;https://github.com/NordicPlayground/nRF52-Bluetooth-Course&lt;/a&gt;&amp;nbsp;and my own efforts is that I&amp;#39;m trying to do it on a nRF52840 SoC not a nRF52832. That leads me to use another softdevice:&lt;/p&gt;
&lt;p&gt;components/softdevice/s140/hex/s140_nrf52_6.0.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;When I load and start my version of the&amp;nbsp;custom_ble_service_example i get the following printouts in the Debug Terminal:&lt;/p&gt;
&lt;p&gt;err_code=0x0&amp;nbsp; &lt;strong&gt;// err_code printouts are RTT logs I added in the code I&amp;#39;ve written.&lt;/strong&gt;&lt;br /&gt;err_code=0x0&lt;br /&gt;err_code=0x0&lt;br /&gt;err_code=0x0&lt;br /&gt;&amp;lt;info&amp;gt; app: Template example started.&lt;br /&gt;&amp;lt;info&amp;gt; app: Fast advertising.&lt;br /&gt;err_code=0x2006&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;strong&gt;// If I wait long enough I get this printout:&lt;/strong&gt;&lt;br /&gt;&amp;lt;error&amp;gt; app: ERROR 8198 [Unknown error code] at /home/jerrymek/src/avalon/precure/nRF5_SDK_15.0.0_a53641a/examples/ble_peripheral/custom_ble_service_example/main.c:474&lt;br /&gt;PC at: 0x00030D1D&lt;/p&gt;
&lt;p&gt;And the LED&amp;#39;s stop blinking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275953?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 13:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e5cba9d-e083-48bf-a4f9-8826a50f4a03</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;No worries.&lt;/p&gt;
&lt;p&gt;ble_app_template works. I can connect to it from my mobile.&lt;/p&gt;
&lt;p&gt;I did not bond the device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275915?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 12:32:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22bd2a04-93e7-4cf4-8d83-dd4ded19a01a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The course was a bit old and the person who created the course has left us so I don&amp;#39;t have much experience with the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check and make sure the ble_app_template works for you. You may want to test by disable the calls that initialize the service/characteristic that you added. Adding a service/characteristic shouldn&amp;#39;t really affect how the device react when get connected.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Be careful when you do bonding, try to test without any bonding and try to erase the chip before testing, just in case there&amp;#39;s some previous bonding information left.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275824?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 09:44:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dbc28ce-bbe3-411b-aad7-d7345b3be08b</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;Hi Bui,&lt;/p&gt;
&lt;p&gt;Yes, I&amp;#39;m following the debugging guide and I have tested a number of the examples in particular the ones concerning ble and yes, I understand that when debugging the code might crash if you continue to single step after a break point. You run the code from a restart to the break point where you can check your registers and variables etc with minimum impact to the integrety of the data you want to look at.&lt;/p&gt;
&lt;p&gt;But what was happening was not that I had any break point set, but rather that the the code frooze in the middle of some binary code when I tried to bond or connect, and that is a bit puzzeling.&lt;/p&gt;
&lt;p&gt;How ever, I have already tried with&amp;nbsp;nRF5_SDK_15.0.0_a53641a but still not successful.&lt;/p&gt;
&lt;p&gt;I follow your suggestion and set a break point at&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_CONNECTED and see if I can understand what goes wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thx&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;J&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275796?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2020 08:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d571fe1-6009-4694-9680-d008fc12aeaa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jerker,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please follow the debugging guide &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;When you step inside the code that uses the softdevice, it will crash if the softdevice is active. The reason is that when we stop at a breakpoint the RTC timing is still running and if we continue to step in the code it will crash.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I would suggest to get familiar with other ble example in the SDK and you can try to debug and catch different events, for example&amp;nbsp;BLE_GAP_EVT_CONNECTED. It&amp;#39;s when the device get connected.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please try to test with SDK v15.0.0 instead of SDK v15.3 as it&amp;#39;s the exact version used in the course.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275720?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 20:40:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79789f50-8fe3-4753-a103-6c549e557501</guid><dc:creator>Eiriker</dc:creator><description>&lt;p&gt;Hi Bui,&lt;/p&gt;
&lt;p&gt;I installed&amp;nbsp;nRF5_SDK_15.3.0_59ac345 and after going over the steps in the course I got the FW running on my nRF52840-DK. (And I&amp;#39;m using s140).&lt;/p&gt;
&lt;p&gt;The device is visible if I look at my phone but I cannot connect to it, and nor can I bond to it, The first time I try to bond with it the debugger stops like in the attached snapshot:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1603139889147v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;No error codes are printed what I can see.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Are there any differences between SDK15 and SDK17 in configuring Custom Services?</title><link>https://devzone.nordicsemi.com/thread/275637?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 12:56:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d0ecc6-cffb-4ad4-9599-073308560f1f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jerker,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think there is a big difference between SDK v15 and SDK v17 with regard to the customer service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My suggestion is that you can go through the Course with SDK v15. Just to make sure all the steps work as they should.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After that you can start your development on SDK v17. It should be very very similar if not identical.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;One good source of reference when you work on SDK v17 is to have a look at the ble_app_uart where we define and use a custom service called NUS. You can use that as an example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>