<?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 Systick and stop mode in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943557#M5097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;according to my understanding, in stop mode the SysTick should be disabled (since it's clocked from core clock):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85292i17273541EEC1D5E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, in my design (s32K11x) looks like It's nod disabled and it's able to exit from stop mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it due to the attached debugger?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the debugger interrupt is not mapped to NVIC I suppose it could be active, but if the core is stopped it shouldn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is really simple and generated using the SDK3.0.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t buff_out[]="Test\r\n";&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;CLOCK_DRV_Init(&amp;amp;clockMan1_InitConfig0);&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt; UART_Init(&amp;amp;uart_pal1_instance, &amp;amp;uart_pal1_Config0);&lt;BR /&gt; UART_SendDataBlocking(&amp;amp;uart_pal1_instance, buff_out, sizeof(buff_out), 0xFFFF);&lt;/P&gt;&lt;P&gt;//Init systick here for 350ms operation&lt;BR /&gt; S32_SysTick-&amp;gt;RVR = 0xFFFFFF;&lt;BR /&gt; S32_SysTick-&amp;gt;CVR = S32_SysTick_CVR_CURRENT(0);&lt;BR /&gt; S32_SysTick-&amp;gt;CVR = 0;&lt;BR /&gt; S32_SysTick-&amp;gt;CSR = S32_SysTick_CSR_TICKINT(1) | S32_SysTick_CSR_ENABLE(1);&lt;BR /&gt; S32_SCB-&amp;gt;SCR = S32_SCB_SCR_SLEEPDEEP(1);&lt;BR /&gt; SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP(1);//VLPR and VLPS are allowed&lt;BR /&gt; SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0) | SMC_PMCTRL_STOPM(0) ;//Normal mode run&lt;BR /&gt; SMC-&amp;gt;STOPCTRL = SMC_STOPCTRL_STOPO(2);&lt;BR /&gt; STANDBY();&lt;BR /&gt; while(1){&lt;BR /&gt; UART_SendDataBlocking(&amp;amp;uart_pal1_instance, buff_out, 3,0xFFFF);&lt;BR /&gt; STANDBY();&lt;BR /&gt; //asm("nop");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SysTick_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;__asm("nop");//Just for breakpoints&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint on this?&lt;/P&gt;&lt;P&gt;Thanks and K.R.&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2019 08:48:33 GMT</pubDate>
    <dc:creator>Catosh</dc:creator>
    <dc:date>2019-06-04T08:48:33Z</dc:date>
    <item>
      <title>Systick and stop mode</title>
      <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943557#M5097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;according to my understanding, in stop mode the SysTick should be disabled (since it's clocked from core clock):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85292i17273541EEC1D5E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, in my design (s32K11x) looks like It's nod disabled and it's able to exit from stop mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it due to the attached debugger?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the debugger interrupt is not mapped to NVIC I suppose it could be active, but if the core is stopped it shouldn't.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is really simple and generated using the SDK3.0.0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint8_t buff_out[]="Test\r\n";&lt;/P&gt;&lt;P&gt;int main(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;CLOCK_DRV_Init(&amp;amp;clockMan1_InitConfig0);&lt;BR /&gt; PINS_DRV_Init(NUM_OF_CONFIGURED_PINS, g_pin_mux_InitConfigArr);&lt;BR /&gt; UART_Init(&amp;amp;uart_pal1_instance, &amp;amp;uart_pal1_Config0);&lt;BR /&gt; UART_SendDataBlocking(&amp;amp;uart_pal1_instance, buff_out, sizeof(buff_out), 0xFFFF);&lt;/P&gt;&lt;P&gt;//Init systick here for 350ms operation&lt;BR /&gt; S32_SysTick-&amp;gt;RVR = 0xFFFFFF;&lt;BR /&gt; S32_SysTick-&amp;gt;CVR = S32_SysTick_CVR_CURRENT(0);&lt;BR /&gt; S32_SysTick-&amp;gt;CVR = 0;&lt;BR /&gt; S32_SysTick-&amp;gt;CSR = S32_SysTick_CSR_TICKINT(1) | S32_SysTick_CSR_ENABLE(1);&lt;BR /&gt; S32_SCB-&amp;gt;SCR = S32_SCB_SCR_SLEEPDEEP(1);&lt;BR /&gt; SMC-&amp;gt;PMPROT = SMC_PMPROT_AVLP(1);//VLPR and VLPS are allowed&lt;BR /&gt; SMC-&amp;gt;PMCTRL = SMC_PMCTRL_RUNM(0) | SMC_PMCTRL_STOPM(0) ;//Normal mode run&lt;BR /&gt; SMC-&amp;gt;STOPCTRL = SMC_STOPCTRL_STOPO(2);&lt;BR /&gt; STANDBY();&lt;BR /&gt; while(1){&lt;BR /&gt; UART_SendDataBlocking(&amp;amp;uart_pal1_instance, buff_out, 3,0xFFFF);&lt;BR /&gt; STANDBY();&lt;BR /&gt; //asm("nop");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void SysTick_Handler(void)&lt;BR /&gt;{&lt;BR /&gt;__asm("nop");//Just for breakpoints&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hint on this?&lt;/P&gt;&lt;P&gt;Thanks and K.R.&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 08:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943557#M5097</guid>
      <dc:creator>Catosh</dc:creator>
      <dc:date>2019-06-04T08:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Systick and stop mode</title>
      <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943558#M5098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes,&amp;nbsp;it is due to the attached debugger.&lt;/P&gt;&lt;P&gt;Please, refer to section "39.4.5 Debug in low power modes" in the RM rev 9.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;... the mode controller handles attempts to enter STOP and VLPS by entering an emulated stop state. In this emulated stop state:&lt;/P&gt;&lt;P&gt;• all system clocks, &lt;STRONG&gt;except&lt;/STRONG&gt; the &lt;STRONG&gt;core clock&lt;/STRONG&gt;, are disabled,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943558#M5098</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-06-05T13:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Systick and stop mode</title>
      <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943559#M5099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diana,&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, you were able to solve my problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One related question: I monitor the bus clock on the clockout pin, and I thought that it was disabled in stop1 - but I can see that it is present when I am stopped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it gated at a later stage than the sample point for clockout?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.R.&lt;/P&gt;&lt;P&gt;Luca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 14:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943559#M5099</guid>
      <dc:creator>Catosh</dc:creator>
      <dc:date>2019-06-05T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Systick and stop mode</title>
      <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943560#M5100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Catosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very sorry for the delay.&lt;/P&gt;&lt;P&gt;I have tested this&amp;nbsp;issue and I can reproduce it, unfortunately, I have no details about this behavior yet.&lt;BR /&gt;I will let you know if I get more information. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your understanding.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Jun 2019 12:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/943560#M5100</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2019-06-19T12:03:29Z</dc:date>
    </item>
    <item>
      <title>回复： Systick and stop mode</title>
      <link>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/1754706#M28514</link>
      <description>&lt;P&gt;When I init the delay with the&amp;nbsp;CSR enable(the source below), my PORTD_IRQHandler cann't work any more...Even if I adjust its NVIC IP priority【S32_NVIC-&amp;gt;IP[PORTD_IRQn] = 0x00; 】。&lt;BR /&gt;&lt;BR /&gt;Have you ever encountered similar problems？&lt;/P&gt;&lt;P&gt;If I delete this&amp;nbsp;delay_init or set the&amp;nbsp;CSR sidable,&amp;nbsp;PORTD_IRQHandler work again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void delay_init(void)&lt;BR /&gt;{&lt;BR /&gt;S32_SysTick-&amp;gt;CSR = S32_SysTick_CSR_ENABLE(0);&lt;BR /&gt;fac_us = 80000000 / 1000000;&lt;BR /&gt;S32_SysTick-&amp;gt;RVR = 0xFFFFFFul; //重装载寄存器&lt;BR /&gt;S32_SysTick-&amp;gt;CVR = 0ul; //当前计数&lt;BR /&gt;S32_SysTick-&amp;gt;CSR = 0u; //控制寄存器&lt;BR /&gt;//S32_SysTick_CSR_TICKINT此位设为1一定要建立中断服务函数&lt;BR /&gt;S32_SysTick-&amp;gt;CSR |= S32_SysTick_CSR_TICKINT(1u)|S32_SysTick_CSR_ENABLE(1)|S32_SysTick_CSR_CLKSOURCE(1u);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 06:56:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Systick-and-stop-mode/m-p/1754706#M28514</guid>
      <dc:creator>Manliangpai</dc:creator>
      <dc:date>2023-11-09T06:56:47Z</dc:date>
    </item>
  </channel>
</rss>

