<?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>S32KのトピックRe: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
    <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1778235#M29838</link>
    <description>&lt;P&gt;Making this change (and only this change) avoids the configASSERT and allows the application (a port of the &lt;A href="https://www.nxp.com/document/guide/getting-started-with-mr-canhubk344-evaluation-board" target="_blank" rel="noopener"&gt;MR-CANHUBK344 demo app&lt;/A&gt;&amp;nbsp;to RTD4.0.0) to create and send and receive CAN and Ethernet messages.&lt;/P&gt;&lt;P&gt;In OsIf_Internal.h at line 245:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehalp_0-1703118254090.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255375iE3C333C12D441451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehalp_0-1703118254090.png" alt="nehalp_0-1703118254090.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nehalp_0-1703118254090.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2023 00:27:40 GMT</pubDate>
    <dc:creator>nehalp</dc:creator>
    <dc:date>2023-12-21T00:27:40Z</dc:date>
    <item>
      <title>RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1778228#M29836</link>
      <description>&lt;P&gt;The FlexCAN driver in RTD4.0.0p01 hits an assert in FreeRTOS vPortEnterCritical().&lt;/P&gt;&lt;P&gt;When processing a CAN Tx complete interrupt, the device hangs. After halting, this is the observed call stack:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehalp_0-1703116897753.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255372i91AFA33371776872/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehalp_0-1703116897753.png" alt="nehalp_0-1703116897753.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nehalp_0-1703116897753.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;SchM_Enter_Can_43_FLEXCAN_CAN_EXCLUSIVE_AREA_18() is invoking&amp;nbsp;OsIf_SuspendAllInterrupts(), which in previous versions of RTD was ultimately an asm "cspid i" instruction.&lt;/P&gt;&lt;P&gt;In RTD4.0.0, this is now as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehalp_1-1703117036982.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255373iF0D5A8E9BD847E7B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehalp_1-1703117036982.png" alt="nehalp_1-1703117036982.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nehalp_1-1703117036982.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which hits this configASSERT() because it has been invoked in an interrupt context:&lt;BR /&gt;configASSERT( ( portNVIC_INT_CTRL_REG &amp;amp; portVECTACTIVE_MASK ) == 0 );&lt;BR /&gt;&lt;BR /&gt;portNVIC_INT_CTRL_REG is&amp;nbsp;0x447b87e&amp;nbsp; (in the middle of handling interrupt 0x7E).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 00:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1778228#M29836</guid>
      <dc:creator>nehalp</dc:creator>
      <dc:date>2023-12-21T00:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1778235#M29838</link>
      <description>&lt;P&gt;Making this change (and only this change) avoids the configASSERT and allows the application (a port of the &lt;A href="https://www.nxp.com/document/guide/getting-started-with-mr-canhubk344-evaluation-board" target="_blank" rel="noopener"&gt;MR-CANHUBK344 demo app&lt;/A&gt;&amp;nbsp;to RTD4.0.0) to create and send and receive CAN and Ethernet messages.&lt;/P&gt;&lt;P&gt;In OsIf_Internal.h at line 245:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nehalp_0-1703118254090.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/255375iE3C333C12D441451/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nehalp_0-1703118254090.png" alt="nehalp_0-1703118254090.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;nehalp_0-1703118254090.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2023 00:27:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1778235#M29838</guid>
      <dc:creator>nehalp</dc:creator>
      <dc:date>2023-12-21T00:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1781473#M30093</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225278"&gt;@nehalp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you send me your project?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 06:39:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1781473#M30093</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-01-02T06:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1781780#M30124</link>
      <description>&lt;P&gt;Attached here, minus the RTD folder, so you'll have to include your own.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 17:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1781780#M30124</guid>
      <dc:creator>nehalp</dc:creator>
      <dc:date>2024-01-02T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1782631#M30186</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225278"&gt;@nehalp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you try to configure&amp;nbsp;&lt;SPAN class="markh9kl2vjym" data-markjs="true" data-ogac="" data-ogab="" data-ogsc="" data-ogsb=""&gt;Minimal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Stack Size equal to 512 and re-test?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 03:29:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1782631#M30186</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-01-04T03:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1783136#M30238</link>
      <description>Yes, that works! Does RTD4 require larger stacks?</description>
      <pubDate>Thu, 04 Jan 2024 16:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1783136#M30238</guid>
      <dc:creator>nehalp</dc:creator>
      <dc:date>2024-01-04T16:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: RTD 4.0.0p01 FlexCAN with FreeRTOS asserts in OsIfSuspendAllInterrupts()</title>
      <link>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1783942#M30303</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/225278"&gt;@nehalp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Yes, interrupt handler function of RTD request stack size larger than default configuration of FreeRTOS.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jan 2024 09:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/RTD-4-0-0p01-FlexCAN-with-FreeRTOS-asserts-in/m-p/1783942#M30303</guid>
      <dc:creator>DanNguyenDuy</dc:creator>
      <dc:date>2024-01-07T09:45:00Z</dc:date>
    </item>
  </channel>
</rss>

