<?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>Code crash when changing BLE advertise data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66832/code-crash-when-changing-ble-advertise-data</link><description>Hello, we are developing a project solution where we want to pass data between multiple sensor devices using BLE advertising data. For now, we have a test setup with two nrf52832dk boards and are using Zephyr with NCS 1.3.0. Struct for advertising data</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 11:09:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66832/code-crash-when-changing-ble-advertise-data" /><item><title>RE: Code crash when changing BLE advertise data</title><link>https://devzone.nordicsemi.com/thread/278033?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 11:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0236218-c15e-4e00-9d98-2ca137f52c75</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;br /&gt;&lt;br /&gt;Thanks for your help, I sorted out the issue. The problem was partially in the configuration you sent and some callback functions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code crash when changing BLE advertise data</title><link>https://devzone.nordicsemi.com/thread/273714?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 11:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d8ad67f-36e5-4764-b6f6-0b4bf35bc003</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It could be that the&amp;nbsp;&lt;span&gt;main stack size is not big enough.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try&amp;nbsp;&lt;span&gt;CONFIG_MAIN_STACK_SIZE&lt;/span&gt;=4096 or&amp;nbsp;8192&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_HW_STACK_PROTECTION=y&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, if you are writing to flash, try to set&amp;nbsp;&lt;span&gt;CONFIG_MPU_ALLOW_FLASH_WRITE&lt;/span&gt;=y&lt;/span&gt;&lt;/p&gt;
[quote user=""]This error happens frequently and on different locations in the code.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;Are any of these values the same for all crashes?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Current thread: 0x200016bc (unknown)

Faulting instruction address (r15/pc): 0x0000c03c

[00:00:02.176,055] &amp;lt;err&amp;gt; os: r0/a1:  0x20001810  r1/a2:  0x00000000  r2/a3:  0x00000000
[00:00:02.176,055] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x0000c1f9
[00:00:02.176,055] &amp;lt;err&amp;gt; os:  xpsr:  0x21000021&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>