<?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: Changing interrupt priorities for CAN on LPCXpresso54S018 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1517714#M50075</link>
    <description>Thank you.</description>
    <pubDate>Tue, 06 Sep 2022 11:55:13 GMT</pubDate>
    <dc:creator>brian_ungar</dc:creator>
    <dc:date>2022-09-06T11:55:13Z</dc:date>
    <item>
      <title>Changing interrupt priorities for CAN on LPCXpresso54S018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514134#M49997</link>
      <description>&lt;P&gt;I have a LPCXpresso54S018 card. I have code that use the MCAN driver that comes with the SDK. I am also using FreeRTOS.&lt;/P&gt;&lt;P&gt;When the driver gets an interrupt, it invokes a callback function that calls xSemaphoreGiveFromISR. Within this function there is a check that ensures that the priority of the interrupt is greater than or equal to configMAX_SYSCALL_INTERRUPT_PRIORITY. I am failing this check and crashing the program.&lt;/P&gt;&lt;P&gt;I see documentation in various locations that indicate that the priority of an interrupt has to be changed when using FreeRTOS on the LPCXpresso54S018 card. However, I see no documentation telling you how. In particular, how can I change the priority of the CAN0 and CAN1 interrupts on my board? Is there an SDK function call or something in the MCAN driver?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 20:13:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514134#M49997</guid>
      <dc:creator>brian_ungar</dc:creator>
      <dc:date>2022-08-30T20:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing interrupt priorities for CAN on LPCXpresso54S018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514297#M50000</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You can config CAN0 and CAN priority through Interrupt priority register 10 and 11:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1661916530108.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/191915i1C46D4ACBAF1EF97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1661916530108.png" alt="Alice_Yang_0-1661916530108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 03:29:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514297#M50000</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-08-31T03:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing interrupt priorities for CAN on LPCXpresso54S018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514621#M50004</link>
      <description>&lt;P&gt;Is there a function somewhere that provides the capability to change these registers?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 12:05:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1514621#M50004</guid>
      <dc:creator>brian_ungar</dc:creator>
      <dc:date>2022-08-31T12:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Changing interrupt priorities for CAN on LPCXpresso54S018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1516960#M50064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/**&lt;BR /&gt;\brief Set Interrupt Priority&lt;BR /&gt;\details Sets the priority of a device specific interrupt or a processor exception.&lt;BR /&gt;The interrupt number can be positive to specify a device specific interrupt,&lt;BR /&gt;or negative to specify a processor exception.&lt;BR /&gt;\param [in] IRQn Interrupt number.&lt;BR /&gt;\param [in] priority Priority to set.&lt;BR /&gt;\note The priority cannot be set for every processor exception.&lt;BR /&gt;*/&lt;BR /&gt;__STATIC_INLINE void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)&lt;BR /&gt;{&lt;BR /&gt;if ((int32_t)(IRQn) &amp;gt;= 0)&lt;BR /&gt;{&lt;BR /&gt;NVIC-&amp;gt;IP[((uint32_t)IRQn)] = (uint8_t)((priority &amp;lt;&amp;lt; (8U - __NVIC_PRIO_BITS)) &amp;amp; (uint32_t)0xFFUL);&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;SCB-&amp;gt;SHP[(((uint32_t)IRQn) &amp;amp; 0xFUL)-4UL] = (uint8_t)((priority &amp;lt;&amp;lt; (8U - __NVIC_PRIO_BITS)) &amp;amp; (uint32_t)0xFFUL);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 09:59:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1516960#M50064</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-09-05T09:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing interrupt priorities for CAN on LPCXpresso54S018</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1517714#M50075</link>
      <description>Thank you.</description>
      <pubDate>Tue, 06 Sep 2022 11:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Changing-interrupt-priorities-for-CAN-on-LPCXpresso54S018/m-p/1517714#M50075</guid>
      <dc:creator>brian_ungar</dc:creator>
      <dc:date>2022-09-06T11:55:13Z</dc:date>
    </item>
  </channel>
</rss>

