<?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>Model-Based Design Toolbox (MBDT)のトピックMPC5744 FCAN Receive ISR Interrupt Priority</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1183200#M5341</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Can anyone tell me what interrupt priority level is assigned to the FCAN receive interrupt? There seems to be no way to view or set it in, either the FCAN configuration or FCAN ISR (Rx Complete) function blocks.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 15:09:45 GMT</pubDate>
    <dc:creator>j_wale_3</dc:creator>
    <dc:date>2020-11-13T15:09:45Z</dc:date>
    <item>
      <title>MPC5744 FCAN Receive ISR Interrupt Priority</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1183200#M5341</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;Can anyone tell me what interrupt priority level is assigned to the FCAN receive interrupt? There seems to be no way to view or set it in, either the FCAN configuration or FCAN ISR (Rx Complete) function blocks.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 15:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1183200#M5341</guid>
      <dc:creator>j_wale_3</dc:creator>
      <dc:date>2020-11-13T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744 FCAN Receive ISR Interrupt Priority</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1187707#M5391</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/98490"&gt;@j_wale_3&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;MBDT Toolbox generates code on top of the S32 SDK for ARM. The FCAN interrupt block from MBDT only installs a callback function in the S32 Driver. This driver is responsible for enabling and implementing the interrupt vector function triggered when an event happened.&lt;/P&gt;
&lt;P&gt;You are right: There is no option for setting such interrupt priority. But the Driver does not specify the interrupt priority also.&lt;/P&gt;
&lt;P&gt;However, you can set the interrupt priority that you need, by identifying the interrupt vector related to your Message Buffer and you can install some custom code that will set that priority.&lt;/P&gt;
&lt;P&gt;Let me give you an example.&lt;/P&gt;
&lt;P&gt;Let's assume that you need the&amp;nbsp;&lt;SPAN&gt;CAN0_ORed_12_15_MB_IRQHandler to have priority 10. This interrupt is triggered when&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;a&amp;nbsp;successful&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;transmission&amp;nbsp;or&amp;nbsp;reception occurs on Message&amp;nbsp;Buffers&amp;nbsp;12-15 dor CAN0. We need to get the interrupt number for this handler the SDK defines if like&amp;nbsp;CAN0_ORed_12_15_MB_IRQn. (In the generated code folder you can find a header file called MPC5744P.h).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SO the line of code you need is the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INT_SYS_SetPriority(CAN0_ORed_12_15_MB_IRQn, 10);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To insert it as a custom code You can use the System initialize block from the Simulink Coder library.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditormariuslucianand_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 21:23:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1187707#M5391</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-11-23T21:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744 FCAN Receive ISR Interrupt Priority</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1194796#M5464</link>
      <description>&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, which I confirm has been shown to work. This is a useful piece of knowledge.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 15:39:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1194796#M5464</guid>
      <dc:creator>j_wale_3</dc:creator>
      <dc:date>2020-12-07T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744 FCAN Receive ISR Interrupt Priority</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1194925#M5465</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/98490"&gt;@j_wale_3&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am glad it worked!&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2020 18:41:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1194925#M5465</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-12-07T18:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744 FCAN Receive ISR Interrupt Priority</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1337406#M6485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I currently use S32K146 EVB, and I want to use both LIN and CAN in our project.&lt;/P&gt;&lt;P&gt;I know that ADC blocks have the priority select option with them. But I can not find the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;interrupt&amp;nbsp;&lt;/SPAN&gt;priority&amp;nbsp; setting option in other blocks(CAN, LIN, Timer)&lt;/P&gt;&lt;P&gt;Does NXP have a plan to add them to future updates of the S32KMBD toolbox?&lt;/P&gt;&lt;P&gt;Do we have any other option to solve this? If yes, then I would like to know it steps by step.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 05:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5744-FCAN-Receive-ISR-Interrupt-Priority/m-p/1337406#M6485</guid>
      <dc:creator>p_a_u_darshana</dc:creator>
      <dc:date>2021-09-09T05:37:58Z</dc:date>
    </item>
  </channel>
</rss>

