<?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: S32K144 flexcan init stuck when wakeup from VLPS mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804893#M2827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI，&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #646464; fill: #646464; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 11.93px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 17.92px; orphans: 2; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="326546" data-username="shuwei@hangsheng.com.cn" href="https://community.nxp.com/people/shuwei@hangsheng.com.cn" style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d9ce7; fill: #3d9ce7; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 11.93px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: center; text-decoration: underline; text-indent: 0px; text-transform: none; transition-delay: 0s; transition-duration: 0.1s; transition-property: color; transition-timing-function: cubic-bezier(0, 0, 1, 1); vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #3d9ce7;"&gt;David Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Forgive me for not being able to solve your problem, and I want to ask a question. I want to use FlexCAN interrupt to wake up LVPS mode, but fail. Can you show me your code?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="微信图片_20181025162706.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76302i2EA33BA285CF44ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20181025162706.jpg" alt="微信图片_20181025162706.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="微信图片_20181025162717.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76345iC8ADCDE0B216F82A/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20181025162717.jpg" alt="微信图片_20181025162717.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2018 08:28:25 GMT</pubDate>
    <dc:creator>137574543</dc:creator>
    <dc:date>2018-10-25T08:28:25Z</dc:date>
    <item>
      <title>S32K144 flexcan init stuck when wakeup from VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804892#M2826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I try to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;initialization flexcan1 module when S32K144 power mode switch from VLPS to RUN, but it stuck while poll the LPMACK register, see below code (from flexcan_hw_access.c'),&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void FLEXCAN_Enable(CAN_Type * base)&lt;BR /&gt;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;/* Check for low power mode */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if(((base-&amp;gt;MCR &amp;amp; CAN_MCR_LPMACK_MASK) &amp;gt;&amp;gt; CAN_MCR_LPMACK_SHIFT) == 1U)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Enable clock */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base-&amp;gt;MCR = (base-&amp;gt;MCR &amp;amp; ~CAN_MCR_MDIS_MASK) | CAN_MCR_MDIS(0U);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base-&amp;gt;MCR = (base-&amp;gt;MCR &amp;amp; ~CAN_MCR_FRZ_MASK) | CAN_MCR_FRZ(0U);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;base-&amp;gt;MCR = (base-&amp;gt;MCR &amp;amp; ~CAN_MCR_HALT_MASK) | CAN_MCR_HALT(0U);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* Wait until enabled */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;while (((base-&amp;gt;MCR &amp;amp; CAN_MCR_LPMACK_MASK) &amp;gt;&amp;gt; CAN_MCR_LPMACK_SHIFT) != 0U) {}&lt;/STRONG&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The code excute sequence is like below when quit from VLPS power mode:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Check_wakeupEvent_valid();&amp;nbsp; //check wakeup interrupt valid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PINS_DRV_Init();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// PIN initialization&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;POWER_SYS_Init();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Power manager&amp;nbsp;&lt;SPAN&gt;initialization&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;POWER_SYS_SetMode(POWER_MANAGER_RUN, ..);&amp;nbsp; // change power mode to Run mode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;CAN_Transceiver_SetMode(Normal); // set CAN transceiver to normal mode&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;CanInit(1);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//flexcan1 Init&amp;nbsp; ---&amp;gt; stuck here !!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If MCU&amp;nbsp;just switch from STOP mode or any other low power mode to run mode, the flexcan1 is OK!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;I am very puzzled, please let me know where is the problem ?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Many thanks!&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 14:04:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804892#M2826</guid>
      <dc:creator>DavidShu</dc:creator>
      <dc:date>2018-09-27T14:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flexcan init stuck when wakeup from VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804893#M2827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI，&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #646464; fill: #646464; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 11.93px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 17.92px; orphans: 2; text-align: center; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt; &lt;/SPAN&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="326546" data-username="shuwei@hangsheng.com.cn" href="https://community.nxp.com/people/shuwei@hangsheng.com.cn" style="background-color: transparent; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #3d9ce7; fill: #3d9ce7; font-family: arial,helvetica,&amp;amp;quot; helvetica neue&amp;amp;quot;,verdana,sans-serif; font-size: 11.93px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; orphans: 2; outline-color: invert; outline-style: none; outline-width: 0px; text-align: center; text-decoration: underline; text-indent: 0px; text-transform: none; transition-delay: 0s; transition-duration: 0.1s; transition-property: color; transition-timing-function: cubic-bezier(0, 0, 1, 1); vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none #3d9ce7;"&gt;David Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Forgive me for not being able to solve your problem, and I want to ask a question. I want to use FlexCAN interrupt to wake up LVPS mode, but fail. Can you show me your code?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="微信图片_20181025162706.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76302i2EA33BA285CF44ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20181025162706.jpg" alt="微信图片_20181025162706.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="微信图片_20181025162717.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76345iC8ADCDE0B216F82A/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20181025162717.jpg" alt="微信图片_20181025162717.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2018 08:28:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804893#M2827</guid>
      <dc:creator>137574543</dc:creator>
      <dc:date>2018-10-25T08:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flexcan init stuck when wakeup from VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804894#M2828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;MCU will not wakeup from VLPS by CAN wakeup ISR in my case, but wakeup by GPIO connected with CAN transceiver ERR Pin which will become logic high when CAN bus state become normal from idle.&lt;/P&gt;&lt;P&gt;Below is my example code:&lt;/P&gt;&lt;P&gt;Step 1:&amp;nbsp;enable GPIO extern interrupt before MCU go to VLPS mode&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20181026_001.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76555iC2A043EAE1E1ADFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="20181026_001.jpg" alt="20181026_001.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 2:&amp;nbsp;MCU will wakeup by GPIO external interrupt from VLPS mode when wakeup event happened&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Picpick_20181026_002.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76618i8BB4BED7EC4E88D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Picpick_20181026_002.jpg" alt="Picpick_20181026_002.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use CAN1 in my project, not have CAN wakeup IRQ. Could you explain what's the usecase for&amp;nbsp;&lt;SPAN&gt;CAN wakeup IRQ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 01:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/804894#M2828</guid>
      <dc:creator>DavidShu</dc:creator>
      <dc:date>2018-10-26T01:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flexcan init stuck when wakeup from VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/1330987#M11862</link>
      <description>&lt;P&gt;Facing same issue, but not very time.&lt;BR /&gt;I'm facing this issue on intermediate but within few try only I'm facing this issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone please help me to get out from this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:40:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/1330987#M11862</guid>
      <dc:creator>hiren_virapara</dc:creator>
      <dc:date>2021-08-27T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 flexcan init stuck when wakeup from VLPS mode</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/1331289#M11866</link>
      <description>&lt;P&gt;Sorry for not update the result at that time，here is the answer for my case, for your reference:&lt;/P&gt;&lt;P&gt;1.Normal Clock &amp;amp; System Power Init&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init -&amp;gt;CLOCK_SYS_UpdateConfiguration-&amp;gt;POWER_SYS_Init----&amp;gt;（Goto work）&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↑&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;↓&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --------------------[Re-init after wakeup]-----------（Enter VLPS）&lt;/P&gt;&lt;P&gt;If follow the above clock &amp;amp; System power init, it is OK when wakeuped from VLPS&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;2. Abnormal Init sequence&lt;/P&gt;&lt;P&gt;CLOCK_SYS_Init -&amp;gt;CLOCK_SYS_UpdateConfiguration-&amp;gt;POWER_SYS_Init----&amp;gt;（Goto work）&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ↑ |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;————————————————| |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;↑ ↓&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Re-init after wakeup]----------（Enter VLPS）&lt;/P&gt;&lt;P&gt;above init sequence when wakeup from VLPS is OK in SDK0.86, but not OK for SDK RTM 2.0.0(when enter VLPS sdk close Pll clock).&lt;BR /&gt;So take care the code from old SDK!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 02:42:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-flexcan-init-stuck-when-wakeup-from-VLPS-mode/m-p/1331289#M11866</guid>
      <dc:creator>DavidShu</dc:creator>
      <dc:date>2021-08-29T02:42:04Z</dc:date>
    </item>
  </channel>
</rss>

