<?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>ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45631/assertion-failed-at-ral_fsm-c-318---can-not-even-find-this-file</link><description>As the title descripes i get an error with a file name in it but i can not locate this file. 
 I am working with the 802.15.4 wireless uart example on a nRF52840 DK. I only get this error if i start inserting breakpoints, i can debug some lines and than</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 May 2019 10:38:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45631/assertion-failed-at-ral_fsm-c-318---can-not-even-find-this-file" /><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/185137?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 10:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38df81ec-2e02-4d4a-ae02-10193e5493fb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Glad to hear that it works now.&amp;nbsp;Just let me know if you&amp;nbsp;still want MMD and can&amp;#39;t get it to work.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/185096?ContentTypeID=1</link><pubDate>Fri, 03 May 2019 09:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a20637c-1a7e-450b-9e19-7d7d4b70dd27</guid><dc:creator>rico</dc:creator><description>&lt;p&gt;At the moment i am using the&amp;nbsp;driver&amp;nbsp;from github, which works like a charm. If i find some time i will test the SDK driver&amp;nbsp;and give you some feedback.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/182533?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 08:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44aac55c-8233-4c9b-894d-62d1283562e5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I added MMD support to wireless_uart-&amp;gt;raw-&amp;gt;first in SDK 15.3.0, see attached. However, I wasn&amp;#39;t able to replicate the assert by single stepping through the code without MMD enabled. Can you try with the same configuration on your side?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2cc98c31cbe84d9e905d2226c6c34e17/wireless_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../wireless_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/182424?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 14:16:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec16dbec-9a7b-47fe-8b83-4bd1e9dee1ec</guid><dc:creator>rico</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45631/assertion-failed-at-ral_fsm-c-318---can-not-even-find-this-file/181818"]&amp;nbsp;Do you get the assert even if you don&amp;#39;t&amp;nbsp;do single-step debugging?&amp;nbsp;[/quote]
&lt;p&gt;I have tried debugging the wireless_uart example. It is running fine without single stepping.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/45631/assertion-failed-at-ral_fsm-c-318---can-not-even-find-this-file/181818"]Sorry, I should have been more clear. you&amp;nbsp;should ignore the Eclipse/GDB specific info at the beginning of the tutorial. So what I&amp;#39;m suggesting is that you read the blog post I linked to initially plus the last 3 paragraphs&amp;nbsp;in the Eclipse/GDB tutorial because it gives some tips on how to select the interrupt priority. There&amp;#39;s also the official documentation from Segger (&lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/monitor-mode-debugging/"&gt;link&lt;/a&gt;).[/quote]
&lt;p&gt;As simple as it sounds, it is not working. Maybe you can try yourself with the example provided in the SDK. I am trying to debug the beginning of the &amp;quot;a_radio_tx_start&amp;quot; function in the fsm. This is called from the user task and should be as far as i understand debuggable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/181818?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 10:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73b68df4-462d-40ac-a584-70fa542bb31a</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="rico"]Thanks for the link, it llok really helpful if someone is using Eclipse and GDB, but i can not transfer all off the given information to the SES which i am using. All examples are provided with a working project for SES and your engineers recommended using the SES. Is the a similar guide for the SES?[/quote]
&lt;p&gt;Sorry, I should have been more clear. you&amp;nbsp;should ignore the Eclipse/GDB specific info at the beginning of the tutorial. So what I&amp;#39;m suggesting is that you read the blog post I linked to initially plus the last 3 paragraphs&amp;nbsp;in the Eclipse/GDB tutorial because it gives some tips on how to select the interrupt priority. There&amp;#39;s also the official documentation from Segger (&lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/monitor-mode-debugging/"&gt;link&lt;/a&gt;).&lt;/p&gt;
[quote user="rico"]My intention is not to debug the radio driver. But something is causing assertation faults and i need to get rid of those(weather i am causing those are something else).[/quote]
&lt;p&gt;&amp;nbsp;Do you get the assert even if you don&amp;#39;t&amp;nbsp;do single-step debugging?&amp;nbsp;&lt;/p&gt;
[quote user="rico"]I am running some non hardware related code on the APPLICATION TASK and i am getting assertations in sys_queue.c:152 and ral_fsm.c:318. I can not find those on the github repository you linked in the first&amp;nbsp; replay.[/quote]
&lt;p&gt;&amp;nbsp;And sorry about this. I was under the impression that we had the complete stack in the openthread repo, but it&amp;#39;s just the driver (also hosted &lt;a href="https://github.com/NordicSemiconductor/nRF-IEEE-802.15.4-radio-driver"&gt;here&lt;/a&gt;). We do not provide source code for ral_fsm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/181335?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 13:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e7b4f3d-02b9-43ff-ac22-2e8273f5165d</guid><dc:creator>rico</dc:creator><description>&lt;p&gt;Thanks for the link, it llok really helpful if someone is using Eclipse and GDB, but i can not transfer all off the given information to the SES which i am using. All examples are provided with a working project for SES and your engineers recommended using the SES. Is the a similar guide for the SES?&lt;/p&gt;
&lt;p&gt;My intention is not to debug the radio driver. But something is causing assertation faults and i need to get rid of those(weather i am causing those are something else).&lt;/p&gt;
&lt;p&gt;I am running some non hardware related code on the APPLICATION TASK and i am getting assertations in sys_queue.c:152 and ral_fsm.c:318. I can not find those on the github repository you linked in the first&amp;nbsp; replay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/180714?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2019 11:11:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01dc8b73-b65f-4435-9484-153cf88eb3f8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Normally you will not have to debug the radio drivers. It may be best to use the pre-compiled libraries which are tested for the particular SDK release they have been distributed with.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not required to include _pause/_start even if you use the app_timer. We have another blog post on monitor mode debugging that you may find helpful as well (think the last 3 paragraphs are most relevant):&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse"&gt;https://devzone.nordicsemi.com/b/blog/posts/monitor-mode-debugging-with-j-link-and-gdbeclipse&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/180344?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 14:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f084a2d3-49bf-415c-b521-4ce3d6d15238</guid><dc:creator>rico</dc:creator><description>&lt;p&gt;The example i am using is not including the app config and so the app_timer_pause(); is not defined.&lt;/p&gt;
&lt;p&gt;Do i need to include the app timer? Do i need to stop and start another timer on entree/exit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/180272?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 10:41:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a55a6e98-4dd5-4cd5-941d-256c91f0286b</guid><dc:creator>rico</dc:creator><description>&lt;p&gt;I will try the Monitor Mode while debugging and give some feedback if it solved the problem.&lt;/p&gt;
&lt;p&gt;I could not locate the source code for the libary in the given repository. Is there to option to build the libary ourself?&lt;/p&gt;
&lt;p&gt;For example i tried locating the source for the&amp;nbsp;mlme_start_req() function from mac_mlme_start.h, but i could not find it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAILED at ral_fsm.c:318 - Can not even find this file</title><link>https://devzone.nordicsemi.com/thread/179885?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 07:06:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff1705a-ebc6-462c-aa1a-090e75386247</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK provides the 802.15.4 driver as a pre-compiled library which is why you can&amp;#39;t see the source code when debugging.&amp;nbsp;The source code is however available on GitHub&amp;nbsp;if you are interested (&lt;a href="https://github.com/openthread/openthread/tree/master/third_party/NordicSemiconductor/drivers/radio"&gt;link&lt;/a&gt;).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume the problem is that you get an assert in the driver because you are single stepping through the code. Only the CPU becomes halted when you hit a breakpoint; timers will keep running so the driver may&amp;nbsp;detect that radio protocol timing requirements were not met as soon as you&amp;nbsp;resume execution.&amp;nbsp; A workaround for this limitation is to use Monitor mode debugging (&lt;a href="https://github.com/NordicPlayground/j-link-monitoring-mode-debugging"&gt;link&lt;/a&gt;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>