<?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 Crashing after sending Notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61459/nrf52832-crashing-after-sending-notification</link><description>Hi All, 
 I am developing an application with a custom BLE profile, one in which i would like to notify the central of certain values as soon as they connect. I have built the app such that once the user subscribes to the notifications, they are immediately</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 May 2020 16:54:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61459/nrf52832-crashing-after-sending-notification" /><item><title>RE: NRF52832 Crashing after sending Notification</title><link>https://devzone.nordicsemi.com/thread/250525?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 16:54:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f1aeef9-a4b2-4e2e-a486-24c8b1f198c0</guid><dc:creator>patjshan</dc:creator><description>&lt;p&gt;I Have found the issue, I simply set up the attribute incorrectly in the characteristic add function and pu t the wrong value in the macro&amp;nbsp; was using to set max_len.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will close this ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Crashing after sending Notification</title><link>https://devzone.nordicsemi.com/thread/250507?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 15:37:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d81498a5-19a7-43f4-b2d9-6459f8423e40</guid><dc:creator>patjshan</dc:creator><description>&lt;p&gt;I have made some more headway on the possible problem. After setting some breakpoints I can see that the sd_ble_gatts_hx() function is returning err_code 0x0C indicating that my data size transmission however I am only transmitting 16 bytes, well within the 20 byte MTU size when accounting for the opcode and handle length. Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Crashing after sending Notification</title><link>https://devzone.nordicsemi.com/thread/250497?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 15:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f551a907-c605-4833-a019-d77ac0f4a566</guid><dc:creator>patjshan</dc:creator><description>&lt;p&gt;I tried to generate a 16 byte random vector, and used a function that contained the sd_rand functions that would check the number of available bytes and write them to the buffer as they came in in a do, while loop. but the number of available bytes was always zero.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I put in a separate devzone ticket for that problem, and made this one after i switched to using the nrf_drv_rng functions directly (link to rng ticket&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/61445/softdevice-rng-functions-not-working"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/61445/softdevice-rng-functions-not-working&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;I have been doing some experimenting with this problem more (crashing after notify) and it seems that if i use an indication the program will not crash however i have two indications that i am trying to send one after the other and only one of them gets sent (I assume because the sd is waiting for the response from the central)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 Crashing after sending Notification</title><link>https://devzone.nordicsemi.com/thread/250451?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 13:03:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bda0b619-bc66-4a60-b7ab-ade7984cd8f3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Patrick,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]It might also be worth mentioning that I am using the RNG peripheral on the chip and I&amp;#39; not using the recommended sd_rand functions to access the values because they were not generating any values for me. I&amp;#39;m not sure if this would affect the softdevice in the aforementioned way.[/quote]
&lt;p&gt;&amp;nbsp;It is not unlikely that this is what&amp;#39;s causing the problems. How did you try to use the softdevice implementation for the random number generations, and what was it that didn&amp;#39;t work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>