<?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>Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43660/strange-behaviour-migrating-from-sdk-15-0-0-to-sdk-15-2-0</link><description>Hi, 
 we&amp;#39;ve developed and produced a nRF52832-based custom PCB with custom firmware that is using advertising, scan, connection, custom Bluetooth service and characteristics, TWI, UART, PWM and more (SDK 15.0.0 and S132 v6.0.0). 
 I&amp;#39;m now trying to migrate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Feb 2019 23:40:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43660/strange-behaviour-migrating-from-sdk-15-0-0-to-sdk-15-2-0" /><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171757?ContentTypeID=1</link><pubDate>Mon, 18 Feb 2019 23:40:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bbb99a7-d101-4675-b4e2-7e8befdaf42e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Is it connectable ? &amp;nbsp;When you scan it with nRFConnect, does it shows as connectable ? &amp;nbsp;May be something you missed in the config.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171219?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 17:01:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ed3e8ae-4573-40e0-ab3c-8a63d4d48ddb</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Hi Nguyen,&lt;/p&gt;
&lt;p&gt;thanks for your help! Do you mean&amp;nbsp;APP_ADV_DURATION? Cause I already had it in 10 ms. However, apart from strange behaviour, the main problem is that I cannot connect, while I always see correct advertising packets. I will continue debug asap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171198?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 15:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ebb4f5d-8241-4ff0-8587-a9b286edc36b</guid><dc:creator>awneil</dc:creator><description>[quote userid="2121" url="~/f/nordic-q-a/43660/strange-behaviour-migrating-from-sdk-15-0-0-to-sdk-15-2-0/170865"]I had a look at SDK v15.0 and SDK v15.2 and saw no difference regarding the advertising module.[/quote][quote userid="3482" url="~/f/nordic-q-a/43660/strange-behaviour-migrating-from-sdk-15-0-0-to-sdk-15-2-0/171190"]in 15.2, ADV timeout value was changed to 10ms instead of sec[/quote]
&lt;p&gt;That seems a pretty significant difference to me!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f62e.svg" title="Open mouth"&gt;&amp;#x1f62e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171190?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 15:07:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a312a075-d628-42c7-8f4f-cb7d364a0792</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Is there a advertisement timeout value in your code ? &amp;nbsp;in 15.2, ADV timeout value was changed to 10ms instead of sec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171178?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 14:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3d114a-9497-464b-9e6c-828736179139</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, but you need to explore the &amp;quot;info&amp;quot; memory and then find the file name and line number of the code that asserted.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171094?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 11:19:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19eeb72a-991b-4949-82e4-c467ccdb2159</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;have you seen my reply above with the attached screenshot of error codes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/171062?ContentTypeID=1</link><pubDate>Thu, 14 Feb 2019 09:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcce77f1-d5a3-40b2-9d77-fad1a30c994c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it&amp;#39;s the issue with Flash and RAM configuration (since you are not updating with major softdevice change). Please try to debug. You can follow this &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;guide&lt;/a&gt;. We need to know what exactly which line of code at which file threw the assertion.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/170941?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 15:09:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b173239e-c713-4502-bc0e-2cbc7b99f683</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Checked the headers location and they&amp;#39;re fine.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;ve only advertising and LED blinking to show that the board is alive.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to connect and the first attempt have been positive (but just for a couple of seconds).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Second attempt suddenly gave this error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1550070512541v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;What could it be?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/170910?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 13:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:526418f0-a00f-4fbb-aaa8-bdfe38b72d2b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Correct, you just need to match that the header files you included in your project is from&amp;nbsp;\components\softdevice\s132\headers of the SDK V15.2 and the softdevice you flash is v6.1&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check why it&amp;#39;s disconnected and which assert you have from the softdevice. Reducing your application functionality to the point that it only advertise and wait for a connection can help pinpoint the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/170904?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 13:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e1ab91d-c994-4d18-84bb-74d4e5a701ba</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Could it be that I&amp;#39;ve simply copy-pasted the RAM start address and size from previous project which used S132 v6.0?&lt;/p&gt;
&lt;p&gt;Or is it that if those values were wrong nothing could work?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I had these values:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;FLASH_PH_START=0x0&lt;/p&gt;
&lt;p&gt;FLASH_PH_SIZE=0x80000&lt;/p&gt;
&lt;p&gt;RAM_PH_START=0x20000000&lt;/p&gt;
&lt;p&gt;RAM_PH_SIZE=0x10000&lt;/p&gt;
&lt;p&gt;FLASH_START=0x26000&lt;/p&gt;
&lt;p&gt;FLASH_SIZE=0x5a000&lt;/p&gt;
&lt;p&gt;RAM_START=0x20004368&lt;/p&gt;
&lt;p&gt;RAM_SIZE=0xbc98&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But if I had to change them, I&amp;#39;d not know which values to put.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/170871?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 12:39:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:899e3b5b-8178-4e78-bbc5-981f6e0c9168</guid><dc:creator>Lorenzo</dc:creator><description>&lt;p&gt;Hi Hung,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thanks for you answer. However, advertising_start() is not called before advertising_init(). I&amp;#39;ve tried to trick the issue by starting the timer before the call to advertising_init() (with advertising_start() being called after advertising_init() since the timer takes a while to expire) and it worked fine, but then the other connection problem remains, so there must be something more.&lt;/p&gt;
&lt;p&gt;Your suggestion could be the solution, but I don&amp;#39;t understand how should I &amp;quot;match the api header files&amp;quot;, could you give just one example please? I thought developing with SDK 15.2 and flashing the S132 v6.1 to the board before flashing the firmware was sufficient, isn&amp;#39;t it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Strange behaviour migrating from SDK 15.0.0 to SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/170865?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 12:31:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40ce078d-fee6-4ea1-8db6-7b8fc80947dc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Gino,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I had a look at SDK v15.0 and SDK v15.2 and saw no difference regarding the advertising module. It must be something else inside your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you would need to look for the use of&amp;nbsp;&lt;span&gt;m_adv_start_timer_id() in your code if it&amp;#39;s started before the advertising module initialized or not.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Please note that SDK v15 use softdevice version 6.0 when the SDK v15.2 uses softdevice v6.1. You need to match the api header files to the softdevice you actually use on the board.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>