<?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>RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83497/reset-on-advertise-start</link><description>Hi, 
 i am working on nRF52832. i am facing a issue of RESET when i call advertise_start() again after advertise duration. in debug it shows fatal error.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jan 2022 13:11:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83497/reset-on-advertise-start" /><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346952?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 13:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91f20993-ac7b-442e-beb0-3dd2e1ccf103</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="harrys"]uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);[/quote]
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__ble__advertising.html#gae2beedbcde9e995276a685a329e5b46b"&gt;ble_advertising_start&lt;/a&gt;&amp;nbsp;could return NRF_ERROR_INVALID_STATE when it has not been initialized prior to the call to start advertising, or the error code could be propagated from a lower function call.&lt;br /&gt;What do you do in-between the advertising timeout and the call to restart advertising?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346938?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 12:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd6caf7-3a49-49ba-ac35-8e21c359f641</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;that function is&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff00;"&gt;uint32_t err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff00;"&gt;&lt;span style="background-color:#ffffff;"&gt;but this function works first time properly.when i call this again after advertising duration.then it RESET.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346922?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 12:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0836a7f1-20f0-4bea-a73e-941dc94eb148</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;&lt;span&gt;Which function call returned the error code passed to the APP_ERROR_CHECK on line 838 of main.c?&lt;/span&gt;&lt;br /&gt;&lt;span&gt;This is the function you will need to check the API Reference of.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346920?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 11:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7467fca-e2c2-4139-a763-e0dac434a32e</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;now this error i got in debug mode.&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;error&amp;gt; app: ERROR 8 [NRF_ERROR_INVALID_STATE] at D:\DeviceDownload (2)\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\APP_UART\main.c:838&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;PC at: 0x0002BEB7&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346893?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 10:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5b1f128-6f3e-45be-820d-49c95db9997e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;It seems that you have attempted to call a function with an invalid parameter.&lt;br /&gt;Which function call returned the error code passed to the APP_ERROR_CHECK on line 838 of main.c?&lt;br /&gt;This is the function you will need to check the API Reference of.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346878?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 10:10:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a06f160-9db2-48a6-b9c4-281f3dd8e47e</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;by doing this i got this error in debug mode&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;error&amp;gt; app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at D:\DeviceDownload (2)\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\APP_UART\main.c:838&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;PC at: 0x0002BECF&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff00;"&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RESET ON ADVERTISE START</title><link>https://devzone.nordicsemi.com/thread/346855?ContentTypeID=1</link><pubDate>Mon, 10 Jan 2022 09:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55c3c512-21b8-4937-927d-d7fba69211e5</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;This sounds like a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK, which resets the device, which in turns means that the function call failed for some reason.&lt;br /&gt;&lt;br /&gt;Please make sure to have DEBUG defined in your preprocessor defines, like shown in the included image:&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2046.enabling_5F00_debug_5F00_SES.PNG" /&gt;&lt;br /&gt;This will make your logger output a detailed error message whenever a non-NRF_SUCCESS error code is passed to an APP_ERROR_CHECK.&lt;br /&gt;&lt;br /&gt;Please do this, and check the returned error code against the returning function&amp;#39;s API reference, to see why it was returned and what you could do to resolve it.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>