<?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 When enter VLPS, system reset in S32K</title>
    <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176208#M8634</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing a tough issue, and have been working on it for a week. But issue not solved yet. so come here for some help.&lt;/P&gt;&lt;P&gt;I am using s32k148, and MCAL (S32K14X_MCAL4_3_RTM_HF2_1_0_1). The issue is when i call function Mcu_SetMode() to enter VLPS, system will reset, with the reset reason SACKERR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have call Os_DisableInterruptSource()(Autosar interface) to disable all the interrupt source but except the PTE5 interrupt which is connected to Rx pin of CAN0.&lt;/P&gt;&lt;P&gt;Reset is occured after execute EXCUTE_WAIT.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asdf.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128756i9D22A19AEB87A7DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="asdf.png" alt="asdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 01 Nov 2020 04:01:36 GMT</pubDate>
    <dc:creator>huisheng_huang</dc:creator>
    <dc:date>2020-11-01T04:01:36Z</dc:date>
    <item>
      <title>When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176208#M8634</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing a tough issue, and have been working on it for a week. But issue not solved yet. so come here for some help.&lt;/P&gt;&lt;P&gt;I am using s32k148, and MCAL (S32K14X_MCAL4_3_RTM_HF2_1_0_1). The issue is when i call function Mcu_SetMode() to enter VLPS, system will reset, with the reset reason SACKERR.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have call Os_DisableInterruptSource()(Autosar interface) to disable all the interrupt source but except the PTE5 interrupt which is connected to Rx pin of CAN0.&lt;/P&gt;&lt;P&gt;Reset is occured after execute EXCUTE_WAIT.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asdf.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128756i9D22A19AEB87A7DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="asdf.png" alt="asdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Nov 2020 04:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176208#M8634</guid>
      <dc:creator>huisheng_huang</dc:creator>
      <dc:date>2020-11-01T04:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176474#M8646</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you please disable the FlexCAN module before the transition to VLPS?&lt;/P&gt;
&lt;P&gt;FlexCAN is not supported in VLPS and should be disabled.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 07:41:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176474#M8646</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-02T07:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176538#M8648</link>
      <description>&lt;P&gt;Thank you, Daniel.&lt;/P&gt;&lt;P&gt;Yes, you are great. When I disable the CAN module, no reset&amp;nbsp; happens.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after that, I have another problem.&lt;/P&gt;&lt;P&gt;MCU can't be waked up by a external interrupt, which is PORTE, pin 5.&lt;/P&gt;&lt;P&gt;Before enter VLPS, I enable the interrupt.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asdf.png" style="width: 816px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128819iBE750C40967F0C3A/image-size/large?v=v2&amp;amp;px=999" role="button" title="asdf.png" alt="asdf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When in debugger mode, I checked the PCR register, as below, the ISF is set.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asdfdsf6-11.png" style="width: 536px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128820iCB92BD0E02BCCC22/image-size/large?v=v2&amp;amp;px=999" role="button" title="asdfdsf6-11.png" alt="asdfdsf6-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is, why didn't enter the ISR and wake up the MCU?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 09:18:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176538#M8648</guid>
      <dc:creator>huisheng_huang</dc:creator>
      <dc:date>2020-11-02T09:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176557#M8649</link>
      <description>&lt;P&gt;Have you tested the interrupt in the RUN mode?&lt;/P&gt;
&lt;P&gt;Does it work?&lt;/P&gt;
&lt;P&gt;Do you use&amp;nbsp;Sleep-Now or Sleep-On-Exit mode?&lt;/P&gt;
&lt;P&gt;Because in the Sleep-on-exit mode, the MCU goes back to VLPS immediately once the ISR is complete.&lt;/P&gt;
&lt;P&gt;So you might not notice the ISR was executed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 09:48:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176557#M8649</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-02T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176605#M8650</link>
      <description>&lt;P&gt;Yes, it works in RUN mode.&lt;/P&gt;&lt;P&gt;We don't use the sleep on exit mode. as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snipsdafsdf38.png" style="width: 504px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128837i641FA08CFDABF8BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Snipsdafsdf38.png" alt="Snipsdafsdf38.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A strange phenomenon is when in debugger mode, after the external interrupt occurs, MCU didn't enter ISR. But if i pause the debug session , MCU enters the ISR.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sdfasdfte_2020-11-02_18-32-27.png" style="width: 762px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128838i102E096D5507E647/image-size/large?v=v2&amp;amp;px=999" role="button" title="sdfasdfte_2020-11-02_18-32-27.png" alt="sdfasdfte_2020-11-02_18-32-27.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 10:35:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176605#M8650</guid>
      <dc:creator>huisheng_huang</dc:creator>
      <dc:date>2020-11-02T10:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176664#M8653</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It looks like an issue of the tool not the MCU.&lt;/P&gt;
&lt;P&gt;Please try running the MCU stand-alone without the debugger.&lt;/P&gt;
&lt;P&gt;I mean, disconnect the debugger, power cycle the MCU and toggle a GPIO (for example) from the ISR.&lt;/P&gt;
&lt;P&gt;Also, you can output BUS_CLK on a CLKOUT pin so that you can see when the MCU is VLPS and when it is running.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:20:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176664#M8653</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-02T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176868#M8658</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I have tried your suggestion.&lt;/P&gt;&lt;P&gt;I disconnect the debugger, power off the board and power on again. when MCU enters to VLPS, trigger an&amp;nbsp; interrupt, but no changes on the GPIO. Besides, the current I measured doesn't change.&lt;/P&gt;&lt;P&gt;I have output the BUS_CLK to the CLKOUT pin. At run mode, the frequency is 2.5MHZ. When enters to VLPS, the CLKOUT is a high level.&lt;/P&gt;&lt;P&gt;So, I think the MCU is not able to be waked up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 01:27:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176868#M8658</guid>
      <dc:creator>huisheng_huang</dc:creator>
      <dc:date>2020-11-03T01:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176970#M8661</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Maybe I know the reason.&lt;/P&gt;&lt;P&gt;After below modification, all is normal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="huisheng_huang_0-1604379924033.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/128889iBDB1452A6E2F63EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="huisheng_huang_0-1604379924033.png" alt="huisheng_huang_0-1604379924033.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Before the code EXECUTE_WAIT, SW call DisableAllInterrupts(). So I think we should use the corresponding call function EnableAllInterrupt(). If so, then we should modify the MCAL code. I don't know whether ok or not?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 05:08:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1176970#M8661</guid>
      <dc:creator>huisheng_huang</dc:creator>
      <dc:date>2020-11-03T05:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: When enter VLPS, system reset</title>
      <link>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1177365#M8679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the newest MCAL4.2 1.0.4 release, the EXECUTE_WAIT macro contains only the WFI instruction.&lt;/P&gt;
&lt;P&gt;Both SuspendAllInterrupts() and ResumeAllInterrupts() have been removed and you can removed it as well.&lt;/P&gt;
&lt;P&gt;But anyway, the interrupts must not be disabled/masked (PRIMASK) at the time the WFI instruction is executed, you need to enable them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2020 14:54:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/When-enter-VLPS-system-reset/m-p/1177365#M8679</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-11-03T14:54:44Z</dc:date>
    </item>
  </channel>
</rss>

