<?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>NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108461/nrf52832-ble-scan-causes-program-crash</link><description>Dear Nordic DevZone community, 
 
 I am using the NRF52832 chip to achieve broadcasting and scanning functions. 
 Will setting interval to 1010 and window to 1000 during BLE scan initialization cause the program to crash? 
 When set in this way, the program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2024 08:18:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108461/nrf52832-ble-scan-causes-program-crash" /><item><title>RE: NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/thread/470937?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 08:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2a5809-199c-43ac-8d20-b2786a66a800</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jacky,&amp;nbsp;&lt;br /&gt;Please show how you do the flash writing.&amp;nbsp;&lt;br /&gt;Have you tried to read the flash content ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/thread/470901?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 01:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076d4886-06f3-4e9f-80b2-5c3a7d4851b9</guid><dc:creator>Jacky Li</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I use fds do flash writing.Occasionally write a few bytes of data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/thread/470635?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2024 08:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd2690b8-35f3-4fe6-8053-ae21b99ce360</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jacky,&amp;nbsp;&lt;br /&gt;Do you do any flash writing in your application ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would suggest to read the flash (or use nrfjprog.exe --readcode) to read the whole flash and then try to compare it with the one that works correctly. You can use any hex compare tool to do that, I use Notepad++ Hex comparator.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/thread/470541?ContentTypeID=1</link><pubDate>Sat, 24 Feb 2024 03:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a75e5f67-5c3e-4da2-9c59-6817d3b5fd10</guid><dc:creator>Jacky Li</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply.&lt;/p&gt;
&lt;p&gt;The SDK I am using is 17.0.1&lt;/p&gt;
&lt;p&gt;This phenomenon sometimes takes a lot of time to occur, or it may not be caused by this reason.&lt;/p&gt;
&lt;p&gt;After the crash, I checked the memory allocation of the program and found that some devices had their protocol stack partially turned black, while some devices had their protocol stack partially missing. What is the situation like this?&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/black-stack.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/black-stack1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/blue-stack.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:173px;" alt=" " height="173" src="https://devzone.nordicsemi.com/resized-image/__size/662x346/__key/communityserver-discussions-components-files/4/miss-stack.png" width="330" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 BLE scan causes program crash</title><link>https://devzone.nordicsemi.com/thread/469822?ContentTypeID=1</link><pubDate>Tue, 20 Feb 2024 14:18:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32127fc6-e829-44c2-a305-bb9e4b7c3043</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jacky,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of such an issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you do anything else beside scanning ?&amp;nbsp;&lt;br /&gt;What&amp;#39;s the symptom when the device stopped working ?&amp;nbsp;&lt;/p&gt;
[quote user=""] it can be seen that when scanphys=BLE_GAP_PHY_1MBPS, the interval must be greater than twice the window, otherwise it will be prone to crashes. [/quote]
&lt;p&gt;Could you let me know where you find such information ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;As far as I know there shouldn&amp;#39;t be a problem doing scan window = scan interval.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you reproduce the issue with one of our example ?&amp;nbsp;&lt;br /&gt;Which SDK you are using ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>