<?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>NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92303/nfc-using-app_scheduler-h-and-freertos-not-working</link><description>Hi Friends, 
 - kit dev NF52840-DK 
 - IDE : segger studio IDE 
 - SDK nRF52 16.0.0 
 I want to port the nfc_writable_ndef_msg NFC example to freeRTOS. 
 I use the NFC Tools app to write on the tag. 
 the concern I have a problem every time it updates</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 05:27:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92303/nfc-using-app_scheduler-h-and-freertos-not-working" /><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388660?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 05:27:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbb9bc0a-f1f2-4cd3-81d6-c2c98aaf8bde</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;If it is a hardfault, you need to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12291/what-can-cause-a-hardfault-and-how-to-catch-it"&gt;debug them&lt;/a&gt;&amp;nbsp;as guided in the links. It is hard to guess what the hardfault source is without gettting the hardfaulting instruction. Try to find the exact instruction that is causing the hardfault and you will have better context and understanding on the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388525?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 10:33:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f08f830-617a-4d0a-9e85-31ed1fc3eed2</guid><dc:creator>Lora</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt;No Unfortunately. but it works with this modification, I increased the number of FDS_VIRTUAL_PAGES to 6&amp;nbsp; pages and for information it works in normal mode but not in debug mode , when I start to write data in NFC tools it generates a hardfault&amp;nbsp; after updating data in flash file (I don&amp;#39;t know if it&amp;#39;s related to the timing).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388523?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 10:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe455aa-ee21-4251-a695-946ac54cdba2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for link Loura, does the solution in the other thread help you in this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388398?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 14:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3b8d649-e58b-4115-9704-3d8f62172627</guid><dc:creator>Lora</dc:creator><description>&lt;p&gt;By information, i have the same problem defined here :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38648/freertos-fds"&gt;devzone.nordicsemi.com/.../freertos-fds&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388391?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 14:05:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37dad383-a413-403f-9e61-9e7d94efd26e</guid><dc:creator>Lora</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;Thank you for your feedback .&lt;/p&gt;
&lt;p&gt;&lt;span class="Y2IQFc" lang="en"&gt; in fact when I debugged the software, it was this ndef_file_update API that gave me a writing problem, it was not even the app_scheduler. once it updates the NDEF message, the software crashes in the SELECT_HIGHEST_PRIORITY_TASK task. Thanks .&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you ... again&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Lora&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC using app_scheduler.h and freeRTOS not working</title><link>https://devzone.nordicsemi.com/thread/388109?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 11:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a144273-1255-4bf2-99da-e4e2ba8e8966</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately we do not have any example to show app_scheduler and freertos combined together. The whole point of using an RTOS is to phase out the app_scheduler. I would first strongly recommend you to put some efforts to move app_scheduler logic into a new task in the freertos.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are really in a situation where you unnecessarily have to use them together (app_scheduler and freertos) then please give us more information about the hardfault (log) and more context on the fault causing instruction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>