<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help K64FN1MDVLL12 BASEPRI Register Function does not work in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1349377#M61612</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184583"&gt;@runningostrich&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that the BASEPRI will be configured to configMAX_SYSCALL_INTERRUPT_PRIORITY only if task enter into critical section.&amp;nbsp; and BASEPRI will be reconfigured to 0 if task exit critical section.&lt;/P&gt;
&lt;P&gt;You can trace the BASEPRI register&amp;nbsp; after below line is hit.&lt;/P&gt;
&lt;P&gt;taskENTER_CRITICAL();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 01:56:59 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2021-10-01T01:56:59Z</dc:date>
    <item>
      <title>Help K64FN1MDVLL12 BASEPRI Register Function does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1338767#M61461</link>
      <description>&lt;P&gt;FreeRtos&amp;nbsp;function vPortEnterCritical&amp;nbsp;Assert&amp;nbsp;stuck，&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runningostrich_0-1631503459815.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155804i05873258C894250E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="runningostrich_0-1631503459815.png" alt="runningostrich_0-1631503459815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;FreeRTOSConfig.h&amp;nbsp;configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY Set 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runningostrich_1-1631503668497.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155805i159F087186A6187E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="runningostrich_1-1631503668497.png" alt="runningostrich_1-1631503668497.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runningostrich_2-1631503778836.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155806iFFC08DF1FF1E33BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="runningostrich_2-1631503778836.png" alt="runningostrich_2-1631503778836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BASEPRI Register VALUE&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="runningostrich_3-1631503879438.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155807iC774656D52830F18/image-size/medium?v=v2&amp;amp;px=400" role="button" title="runningostrich_3-1631503879438.png" alt="runningostrich_3-1631503879438.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this moment VECTACTIVE Register Value 3&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;freeRtos critical&amp;nbsp; Function does not work&lt;/P&gt;&lt;P&gt;Tell me what should i do？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 03:36:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1338767#M61461</guid>
      <dc:creator>runningostrich</dc:creator>
      <dc:date>2021-09-13T03:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help K64FN1MDVLL12 BASEPRI Register Function does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1349377#M61612</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184583"&gt;@runningostrich&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please note that the BASEPRI will be configured to configMAX_SYSCALL_INTERRUPT_PRIORITY only if task enter into critical section.&amp;nbsp; and BASEPRI will be reconfigured to 0 if task exit critical section.&lt;/P&gt;
&lt;P&gt;You can trace the BASEPRI register&amp;nbsp; after below line is hit.&lt;/P&gt;
&lt;P&gt;taskENTER_CRITICAL();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 01:56:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1349377#M61612</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2021-10-01T01:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help K64FN1MDVLL12 BASEPRI Register Function does not work</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1349736#M61619</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184583"&gt;@runningostrich&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I highly recommend to get familiar with the ARM Cortex interrupt system in combination with FreeRTOS, an article series I wrote a while back:&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/" target="_blank"&gt;https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/" target="_blank"&gt;https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/" target="_blank"&gt;https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The assertion you hit is because you are calling vPortEnterCritical() from an interrupt context which is not allowed, hence the assertion. You need to check the call chain in the debugger to see from where this is coming from. BASEPRI/configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY is used for something different: separating the interrupts into 'RTOS-ones' from 'non-RTOS' ones. I would question why you would set the BASEPRI to 1 as this does not leave you much moving space for interrupt prioritites, but this is yet another discussion. For the complete picture, see above articles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 07:36:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Help-K64FN1MDVLL12-BASEPRI-Register-Function-does-not-work/m-p/1349736#M61619</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2021-10-02T07:36:28Z</dc:date>
    </item>
  </channel>
</rss>

