<?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>Starting idle task using Task Manager library frequently throws error &amp;quot;Unknown function at 0x000008C8&amp;quot; when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33286/starting-idle-task-using-task-manager-library-frequently-throws-error-unknown-function-at-0x000008c8-when-running-with-the-debugger-often-takes-several-restarts-until-it-runs</link><description>Starting idle task using Task Manager library frequently throws error &amp;quot;Unknown function at 0x000008C8&amp;quot; when running with the debugger (often takes several restarts until it runs). I am using SDK14.2.0 and SES 3.34. The failure occurs at line 263 in task_manager</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Aug 2018 18:47:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33286/starting-idle-task-using-task-manager-library-frequently-throws-error-unknown-function-at-0x000008c8-when-running-with-the-debugger-often-takes-several-restarts-until-it-runs" /><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/146829?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 18:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd313ef7-8a14-4582-a76e-5e149cee16c6</guid><dc:creator>rwl</dc:creator><description>&lt;p&gt;I was not able to fix the issue but in my case it is only debugger related.&amp;nbsp; Since it happens only occasionally I learned to just live with it and restart the debugger when it occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/146813?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 14:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b683ca3b-6561-4770-95d9-b054474bbfc7</guid><dc:creator>bale11</dc:creator><description>&lt;p&gt;I&amp;#39;m facing the same issue. Just a little different in my case. I&amp;#39;m using freertos so first it gets stuck at &amp;quot;0x000008C8&amp;quot; and when I resume it again , it points to &amp;quot;prvIdleTask();&amp;quot; which is an idle hook task in freertos.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to fix this problem ? I tried using the serial monitor for debugging but the nrf52832 stops responding after an hour.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using sdk 15&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/128988?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 13:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95a71ca-1dcf-4907-8f97-e360bea8a35d</guid><dc:creator>rwl</dc:creator><description>&lt;p&gt;Thank you Jakub, I suspected that.&amp;nbsp; I will try what you suggested.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/128984?ContentTypeID=1</link><pubDate>Thu, 19 Apr 2018 13:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a042b1a8-40c4-4bd2-8be0-4b046bcc8e32</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi rluc,&lt;/p&gt;
&lt;p&gt;I think that problem you are facing with is related to your debugger. Please take a closer look to function:&amp;nbsp;task_manager_start in the task_manager.c file. It is significantly messing up stack and I guess it confuses your debugger.&lt;/p&gt;
&lt;p&gt;Please start debugging after calling the function task_manager_start to see if you are still observing the isse.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/128480?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 12:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3702ce0-ae07-4819-8686-8df1a4b11064</guid><dc:creator>rwl</dc:creator><description>&lt;p&gt;Yes I understand about debugging while the soft device is enabled.&amp;nbsp; Do you see any issue with using both the Task Manager with the app_scheduler?&amp;nbsp; I&amp;#39;m using the app_scheduler&amp;nbsp;to handle my timer events asynchronously. I found that I had to use the Task Manager to make the CLI work in conjunction with my app.&amp;nbsp; Without the Task Manager, things would fail miserably if I simply called nrf_cli_process() in my idle loops ( I also have a lot of log messages going out the UART).&lt;/p&gt;
&lt;p&gt;As a side note, I am not calling sd_app_evt_wait() in my app, it is always fully running. I do recognize that systick clock stops when the processor sleeps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Starting idle task using Task Manager library frequently throws error "Unknown function at 0x000008C8" when running with the debugger (often takes several restarts until it runs).</title><link>https://devzone.nordicsemi.com/thread/128405?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 08:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09350d1a-c0ab-4a95-8516-d142a12d44a9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could get the &amp;laquo;Unknown function at 0x000008C8&amp;rdquo; when you try to step through the code after the SoftDevice have been enabled. When stepping through the code, or when setting breakpoints, the CPU will be halted. This will cause a hard-fault due to BLE timing being violated. This will result in a disconnected BLE link and the code will end up in the error-handler.&amp;nbsp; Alternative debugging approaches with the SoftDevice enabled includes using RTT or UART for debug messages and/or toggling GPIOs to indicate software states.&lt;/p&gt;
&lt;p&gt;Also note that the systick is sourced by the same clock as the CPU, which is turned off when going to WFE/WFI (sd_app_evt_wait()). It is therefore not recommended to use systick. I would recommend using the RTCx peripheral (via app_timer for instance), or the TIMER peripheral instead.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>