<?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: Initially my code stuck at that point configASSERT( ucCurrentPriority &amp;gt;= ucMaxSysCallPriority );? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Initially-my-code-stuck-at-that-point-configASSERT/m-p/1089132#M57665</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend you have a read at the following article series which &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/" title="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/"&gt;ARM Cortex-M, Interrupts and FreeRTOS: Part 1 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/" title="https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/"&gt;ARM Cortex-M, Interrupts and FreeRTOS: Part 2 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/" title="https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/"&gt;ARM Cortex-M Interrupts and FreeRTOS: Part 3 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Especially Part 3 explains how the RTOS creates critcal sections and the separation of interrupts and RTOS API calls:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312" title="https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312"&gt;https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 09:26:45 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2020-05-14T09:26:45Z</dc:date>
    <item>
      <title>Initially my code stuck at that point configASSERT( ucCurrentPriority &gt;= ucMaxSysCallPriority );?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Initially-my-code-stuck-at-that-point-configASSERT/m-p/1089131#M57664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was just using an ISR for a FreeRTOS task, initially it was not working fine because I have not set the priority for the ISR, it was my be in default priority, so while debugging what i found it is always stuck at this line&lt;BR /&gt;configASSERT( ucCurrentPriority &amp;gt;= ucMaxSysCallPriority );&lt;/P&gt;&lt;P&gt;so I just saw in my RTOS, my MaxSysCallPriority is already set to 1, which can be (1 to 15).&lt;/P&gt;&lt;P&gt;so I manually set the ISR priority to 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;INT_SYS_SetPriority(BTN_PORT_IRQn, 3);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;then it was working fine but I am very confused about this as S32 Design studio It shows&amp;nbsp;&lt;SPAN&gt;MaxSysCallPriority&amp;nbsp;is a maximum priority which can provide to our ISR.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;QUES1. so why we need to put grater than&amp;nbsp;&lt;SPAN&gt;MaxSysCallPriority&amp;nbsp;to work it&amp;nbsp;&lt;/SPAN&gt;perfectly.&lt;BR /&gt;&lt;SPAN&gt;QUES2. And what is the by default priority of an ISR lets say I am using S32K144 EVB and taking interrupt from button which is connected in port c.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 09:08:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Initially-my-code-stuck-at-that-point-configASSERT/m-p/1089131#M57664</guid>
      <dc:creator>shivamshankarg</dc:creator>
      <dc:date>2020-05-14T09:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Initially my code stuck at that point configASSERT( ucCurrentPriority &gt;= ucMaxSysCallPriority );?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Initially-my-code-stuck-at-that-point-configASSERT/m-p/1089132#M57665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recommend you have a read at the following article series which &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/" title="https://mcuoneclipse.com/2016/08/14/arm-cortex-m-interrupts-and-freertos-part-1/"&gt;ARM Cortex-M, Interrupts and FreeRTOS: Part 1 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/" title="https://mcuoneclipse.com/2016/08/20/arm-cortex-m-interrupts-and-freertos-part-2/"&gt;ARM Cortex-M, Interrupts and FreeRTOS: Part 2 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/" title="https://mcuoneclipse.com/2016/08/28/arm-cortex-m-interrupts-and-freertos-part-3/"&gt;ARM Cortex-M Interrupts and FreeRTOS: Part 3 | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Especially Part 3 explains how the RTOS creates critcal sections and the separation of interrupts and RTOS API calls:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312" title="https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312"&gt;https://mcuoneclipse.files.wordpress.com/2016/08/freertos-and-interrupts.png?w=584&amp;amp;h=312&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 09:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Initially-my-code-stuck-at-that-point-configASSERT/m-p/1089132#M57665</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2020-05-14T09:26:45Z</dc:date>
    </item>
  </channel>
</rss>

