<?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>Using NRF52832 chip + freeRTOS development encounters the problem of getting stuck in idle tasks</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118357/using-nrf52832-chip-freertos-development-encounters-the-problem-of-getting-stuck-in-idle-tasks</link><description>I am developing a product that uses the chip of NRF52832 and runs FreeRTOS on the chip to manage my task list. However, I found that the program would be stuck in the idle task, and it may be that the system had just started to run shortly or after ten</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 25 Jan 2025 17:56:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118357/using-nrf52832-chip-freertos-development-encounters-the-problem-of-getting-stuck-in-idle-tasks" /><item><title>RE: Using NRF52832 chip + freeRTOS development encounters the problem of getting stuck in idle tasks</title><link>https://devzone.nordicsemi.com/thread/520081?ContentTypeID=1</link><pubDate>Sat, 25 Jan 2025 17:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc7af710-77c7-42d4-ac1b-06ff4aab18d1</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Might not help, but maybe try changing the FPU event clear to this (in case optimisation issue):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        volatile uint32_t fpscr;
        fpscr = __get_FPSCR();
        /*
         * Clear FPU exceptions.
         * Without this step, the FPU interrupt is marked as pending,
         * preventing system from sleeping. Exceptions cleared:
         * - IOC - Invalid Operation cumulative exception bit.
         * - DZC - Division by Zero cumulative exception bit.
         * - OFC - Overflow cumulative exception bit.
         * - UFC - Underflow cumulative exception bit.
         * - IXC - Inexact cumulative exception bit.
         * - IDC - Input Denormal cumulative exception bit.
         */
        __set_FPSCR(fpscr &amp;amp; ~0x9Fu);
        __DSB();  // or just __DMB();&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>