<?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>SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53848/softdevice-assertion-failed</link><description>Hello, 
 I am working to implement the BLE stack for a HID keyboard, borrowing/based off the supplied example &amp;quot;ble_peripheral/ble_app_hids_keyboard&amp;quot;. 
 Stack initialization and other variable initialization appear to complete successfully, however shortly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 22:28:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53848/softdevice-assertion-failed" /><item><title>RE: SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/thread/217633?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 22:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04698e25-9032-4c94-843f-5e3359d9ca99</guid><dc:creator>jimihuard</dc:creator><description>&lt;p&gt;I can see the bluetooth device now, after some debugging. It looks like this was indeed the issue.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/thread/217631?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 22:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e68a6343-31b1-447b-9179-c8a8695f83bf</guid><dc:creator>jimihuard</dc:creator><description>&lt;p&gt;The device does a lot more than act as a keyboard. This is only one piece of it&amp;#39;s functionality-- removing the RTOS is not an option unfortunately. I also cannot replace the RTOS with the features provided via softdevice. In short, I have a large back end that is heavily integrated with this RTOS that I am trying to port to the nordic chip, while leveraging softdevice&amp;#39;s BLE support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think I may have a root cause though-- I only see the assert if I have a breakpoint. I wasn&amp;#39;t aware of the major limitation softdevice has, namely that it doesn&amp;#39;t play nicely with an attached debugger (problem discussed here&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30981/softdevice/122445#122445"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/30981/softdevice/122445#122445&lt;/a&gt;)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t hit any more asserts after removing breakpoints/other debug hooks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SOFTDEVICE: ASSERTION FAILED</title><link>https://devzone.nordicsemi.com/thread/217628?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 21:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:461e9d3c-a868-4292-9ef7-b2a456f41887</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="84624" url="~/f/nordic-q-a/53848/softdevice-assertion-failed"] I am using a proprietary RTOS[/quote]
&lt;p&gt;RTOSes like to run internal housekeeping with interrupts turned off - which is not allowed when using softdevice.&lt;/p&gt;
&lt;p&gt;Some interrupt prioroties - especially the default zero one - are only allowed for the softdevice itself.&lt;/p&gt;
&lt;p&gt;Why do you &lt;em&gt;need&lt;/em&gt; an RTOS for a keyboard anyway? Seems very much overkill here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>