<?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: Initialize FLEX CAN mailbox</title>
    <link>https://community.nxp.com/t5/S32K/Initialize-FLEX-CAN-mailbox/m-p/1637261#M22273</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;MAXMB can be changed in Freeze mode only, so rather put module into Freeze mode, i.e. check if module is active (MDIS=0) and FRZ and HALT bits set, then check for&amp;nbsp;FRZACK to be set.&lt;BR /&gt;Not sure of the device you have but for example S32K1xx's&amp;nbsp;procedure to enter Freeze mode is given in chapter&amp;nbsp;55.1.9.1 Freeze mode entry of the device RM.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2023 11:46:48 GMT</pubDate>
    <dc:creator>PetrS</dc:creator>
    <dc:date>2023-04-20T11:46:48Z</dc:date>
    <item>
      <title>Initialize FLEX CAN mailbox</title>
      <link>https://community.nxp.com/t5/S32K/Initialize-FLEX-CAN-mailbox/m-p/1636927#M22263</link>
      <description>&lt;P&gt;When I initialize flexcan, the set of maximum number of mailboxes invaild sometimes.Before set the maximum number of mailboxes, I did soft reset can and then,w&lt;SPAN&gt;ait for reset cycle to complete.After this configuration, I find that&amp;nbsp; the value of MAXMB in resgister&amp;nbsp; MCR will&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;goes back to the default value:0x0f sometimes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But,if I delay 1ms after soft reset ,the invaild of MAXMB never happens.Did&lt;/SPAN&gt;&amp;nbsp;I missing some steps?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    /* Reset the FLEXCAN */
    base-&amp;gt;MCR = (base-&amp;gt;MCR &amp;amp; ~CAN_MCR_SOFTRST_MASK) | CAN_MCR_SOFTRST(1U);
    /* Wait for reset cycle to complete */
    while (((base-&amp;gt;MCR &amp;amp; CAN_MCR_SOFTRST_MASK) &amp;gt;&amp;gt; CAN_MCR_SOFTRST_SHIFT) != 0U){}
	// hwDelay(1000);
    base-&amp;gt;MCR = (base-&amp;gt;MCR &amp;amp; ~CAN_MCR_MAXMB_MASK) | CAN_MCR_MAXMB(31);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Apr 2023 06:22:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Initialize-FLEX-CAN-mailbox/m-p/1636927#M22263</guid>
      <dc:creator>yhgu</dc:creator>
      <dc:date>2023-04-20T06:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize FLEX CAN mailbox</title>
      <link>https://community.nxp.com/t5/S32K/Initialize-FLEX-CAN-mailbox/m-p/1637261#M22273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;MAXMB can be changed in Freeze mode only, so rather put module into Freeze mode, i.e. check if module is active (MDIS=0) and FRZ and HALT bits set, then check for&amp;nbsp;FRZACK to be set.&lt;BR /&gt;Not sure of the device you have but for example S32K1xx's&amp;nbsp;procedure to enter Freeze mode is given in chapter&amp;nbsp;55.1.9.1 Freeze mode entry of the device RM.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 11:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Initialize-FLEX-CAN-mailbox/m-p/1637261#M22273</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2023-04-20T11:46:48Z</dc:date>
    </item>
  </channel>
</rss>

