<?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のトピックS32k312 WatchDog Reset Reason Not Be Catched In RTD3 MCAL</title>
    <link>https://community.nxp.com/t5/S32K/S32k312-WatchDog-Reset-Reason-Not-Be-Catched-In-RTD3-MCAL/m-p/1846547#M34163</link>
    <description>&lt;P&gt;I am developing the bootloader of s32k312 under the environment of SDS3.5 software RTD300, and found that after &lt;STRONG&gt;SWT0&lt;/STRONG&gt; triggered the reset of the chip, the reset I read in the boot was &lt;STRONG&gt;PowerOnReset&lt;/STRONG&gt; instead of &lt;STRONG&gt;SWT0_RESET&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;What's more strange is that, I can do this in&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt; RTD200-MCAL&lt;/STRONG&gt;&lt;/FONT&gt; and &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;RTD300-Driver&lt;/STRONG&gt;&lt;/FONT&gt;, but only &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;RTD300-MCAL&lt;/STRONG&gt;&lt;/FONT&gt; has this problem.&lt;/P&gt;&lt;P&gt;I want to know how to fix this problem in&amp;nbsp;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;RTD300-MCAL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I packaged the three control projects in zip files, and the control results are shown in the figure：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd3_driver.png" style="width: 572px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273587i85664D2FD3E567E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd3_driver.png" alt="rtd3_driver.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd3_mcal.png" style="width: 512px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273588iB7FB507FBC92F2C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd3_mcal.png" alt="rtd3_mcal.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd2_mcal.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273590iCB6879BA1C6BBAB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd2_mcal.png" alt="rtd2_mcal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;extern Power_Ip_ResetType Power_Ip_GetResetReason(void);&lt;/P&gt;&lt;P&gt;void Wdg_CallBackNotification0(void)&lt;BR /&gt;{&lt;BR /&gt;format_print("swt0 interrupt callback \r\n");&lt;BR /&gt;}&lt;BR /&gt;int main(void) {&lt;/P&gt;&lt;P&gt;uint8 temp_rstrsn = 0U;&lt;/P&gt;&lt;P&gt;Clock_Ip_Init(&amp;amp;Clock_Ip_aClockConfig[0]);&lt;BR /&gt;Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0,g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;IntCtrl_Ip_InstallHandler(SWT0_IRQn, Swt_Ip_Swt0_Isr, NULL_PTR);&lt;BR /&gt;IntCtrl_Ip_EnableIrq(SWT0_IRQn);&lt;/P&gt;&lt;P&gt;Lpuart_Uart_Ip_Init(LPUART_UART_IP_INSTANCE_USING_6, &amp;amp;Lpuart_Uart_Ip_xHwConfigPB_6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;format_print("==========================================================\r\n");&lt;BR /&gt;format_print("s32k312_rtd300_swt0_reset_ip_test:\r\n");&lt;/P&gt;&lt;P&gt;temp_rstrsn = Power_Ip_GetResetReason();&lt;BR /&gt;format_print("reset reason: %d \r\n",temp_rstrsn);&lt;/P&gt;&lt;P&gt;Swt_Ip_Init(SWT_INST,&amp;amp;Swt_Ip_Cfg0);&lt;/P&gt;&lt;P&gt;while (1) {&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return exit_code;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Sun, 14 Apr 2024 11:19:31 GMT</pubDate>
    <dc:creator>kontroller</dc:creator>
    <dc:date>2024-04-14T11:19:31Z</dc:date>
    <item>
      <title>S32k312 WatchDog Reset Reason Not Be Catched In RTD3 MCAL</title>
      <link>https://community.nxp.com/t5/S32K/S32k312-WatchDog-Reset-Reason-Not-Be-Catched-In-RTD3-MCAL/m-p/1846547#M34163</link>
      <description>&lt;P&gt;I am developing the bootloader of s32k312 under the environment of SDS3.5 software RTD300, and found that after &lt;STRONG&gt;SWT0&lt;/STRONG&gt; triggered the reset of the chip, the reset I read in the boot was &lt;STRONG&gt;PowerOnReset&lt;/STRONG&gt; instead of &lt;STRONG&gt;SWT0_RESET&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;What's more strange is that, I can do this in&lt;FONT color="#99CC00"&gt;&lt;STRONG&gt; RTD200-MCAL&lt;/STRONG&gt;&lt;/FONT&gt; and &lt;FONT color="#99CC00"&gt;&lt;STRONG&gt;RTD300-Driver&lt;/STRONG&gt;&lt;/FONT&gt;, but only &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;RTD300-MCAL&lt;/STRONG&gt;&lt;/FONT&gt; has this problem.&lt;/P&gt;&lt;P&gt;I want to know how to fix this problem in&amp;nbsp;&lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;RTD300-MCAL&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I packaged the three control projects in zip files, and the control results are shown in the figure：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd3_driver.png" style="width: 572px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273587i85664D2FD3E567E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd3_driver.png" alt="rtd3_driver.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd3_mcal.png" style="width: 512px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273588iB7FB507FBC92F2C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd3_mcal.png" alt="rtd3_mcal.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rtd2_mcal.png" style="width: 537px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273590iCB6879BA1C6BBAB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="rtd2_mcal.png" alt="rtd2_mcal.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;extern Power_Ip_ResetType Power_Ip_GetResetReason(void);&lt;/P&gt;&lt;P&gt;void Wdg_CallBackNotification0(void)&lt;BR /&gt;{&lt;BR /&gt;format_print("swt0 interrupt callback \r\n");&lt;BR /&gt;}&lt;BR /&gt;int main(void) {&lt;/P&gt;&lt;P&gt;uint8 temp_rstrsn = 0U;&lt;/P&gt;&lt;P&gt;Clock_Ip_Init(&amp;amp;Clock_Ip_aClockConfig[0]);&lt;BR /&gt;Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0,g_pin_mux_InitConfigArr0);&lt;/P&gt;&lt;P&gt;IntCtrl_Ip_InstallHandler(SWT0_IRQn, Swt_Ip_Swt0_Isr, NULL_PTR);&lt;BR /&gt;IntCtrl_Ip_EnableIrq(SWT0_IRQn);&lt;/P&gt;&lt;P&gt;Lpuart_Uart_Ip_Init(LPUART_UART_IP_INSTANCE_USING_6, &amp;amp;Lpuart_Uart_Ip_xHwConfigPB_6);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;format_print("==========================================================\r\n");&lt;BR /&gt;format_print("s32k312_rtd300_swt0_reset_ip_test:\r\n");&lt;/P&gt;&lt;P&gt;temp_rstrsn = Power_Ip_GetResetReason();&lt;BR /&gt;format_print("reset reason: %d \r\n",temp_rstrsn);&lt;/P&gt;&lt;P&gt;Swt_Ip_Init(SWT_INST,&amp;amp;Swt_Ip_Cfg0);&lt;/P&gt;&lt;P&gt;while (1) {&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;return exit_code;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Sun, 14 Apr 2024 11:19:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k312-WatchDog-Reset-Reason-Not-Be-Catched-In-RTD3-MCAL/m-p/1846547#M34163</guid>
      <dc:creator>kontroller</dc:creator>
      <dc:date>2024-04-14T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: S32k312 WatchDog Reset Reason Not Be Catched In RTD3 MCAL</title>
      <link>https://community.nxp.com/t5/S32K/S32k312-WatchDog-Reset-Reason-Not-Be-Catched-In-RTD3-MCAL/m-p/1846664#M34174</link>
      <description>&lt;P&gt;I finally found a solution to this problem, it is required to turn on the PLL peripheral clock under RTD-MCAL, it is not required under RTD-DRIVER, although I do not understand why yet, thank you very much to the forum experts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kontroller_0-1713150009091.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273626i8F25F3F74DF559C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kontroller_0-1713150009091.png" alt="kontroller_0-1713150009091.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 03:02:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k312-WatchDog-Reset-Reason-Not-Be-Catched-In-RTD3-MCAL/m-p/1846664#M34174</guid>
      <dc:creator>kontroller</dc:creator>
      <dc:date>2024-04-15T03:02:20Z</dc:date>
    </item>
  </channel>
</rss>

