<?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: LPIT Chanuel Re-Init Issue</title>
    <link>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954733#M5303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp; 赵 子成.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually when you exit a bootloader al the timers and peripherals&amp;nbsp;should be&amp;nbsp;deinitialize before enter your application. So I will suggest to call to stop and deinitialize the peripheral before entering your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2019 22:03:22 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2019-09-23T22:03:22Z</dc:date>
    <item>
      <title>LPIT Chanuel Re-Init Issue</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954732#M5302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My software contains BOOT and APP, LPIT&amp;nbsp;CHANNEL1 is used in both&amp;nbsp;&lt;SPAN&gt;BOOT and APP. If I don't stop the LPIT channel before jumpping to APP from BOOT via "LPIT_DRV_StopTimerChannels(INST_LPIT1, (1 &amp;lt;&amp;lt; LPIT_CHANNEL1))", in the APP Init phase, in LPIT Init, when exec the init function "LPIT_DRV_InitChannel(INST_LPIT1, LPIT_CHANNEL1, &amp;amp;lpit1_ChnConfig1);", will lead to&amp;nbsp;DefaultISR, I don't know why, Can someone answer my issue? Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I use LPIT timer interrupt function both in BOOT and APP.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The BOOT and APP is run in PFLASH, and they have own INT VEC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The BOOT LPIT Init code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;void LPIT_Init(void)&lt;BR /&gt;{&lt;BR /&gt; LPIT_DRV_Init(INST_LPIT1, &amp;amp;lpit1_InitConfig);&lt;/P&gt;&lt;P&gt;LPIT_DRV_InitChannel(INST_LPIT1, LPIT_CHANNEL1, &amp;amp;lpit1_ChnConfig0);&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(LPIT0_Ch1_IRQn, ISR_LPIT0_Ch1_1ms, (isr_t*)0);&lt;/P&gt;&lt;P&gt;pFunLpitCallback = NULL;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The APP LPIT Init code:&lt;/P&gt;&lt;P&gt;void LPIT_Init(void)&lt;BR /&gt;{&lt;BR /&gt; LPIT_DRV_Init(INST_LPIT1, &amp;amp;lpit1_InitConfig);&lt;/P&gt;&lt;P&gt;LPIT_DRV_InitChannel(INST_LPIT1, LPIT_CHANNEL0, &amp;amp;lpit1_ChnConfig0);&lt;BR /&gt; LPIT_DRV_InitChannel(INST_LPIT1, LPIT_CHANNEL1, &amp;amp;lpit1_ChnConfig1);&lt;BR /&gt; LPIT_DRV_InitChannel(INST_LPIT1, LPIT_CHANNEL2, &amp;amp;lpit1_ChnConfig2);&lt;/P&gt;&lt;P&gt;INT_SYS_InstallHandler(LPIT0_Ch0_IRQn, ISR_LPIT0_Ch0_1ms, (isr_t*)0);&lt;BR /&gt; INT_SYS_InstallHandler(LPIT0_Ch1_IRQn, ISR_LPIT0_Ch1_1ms, (isr_t*)0);&lt;BR /&gt; INT_SYS_InstallHandler(LPIT0_Ch2_IRQn, ISR_LPIT0_Ch2_10ms, (isr_t*)0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; LPIT_DRV_StartTimerChannels(INST_LPIT1, 1 &amp;lt;&amp;lt; LPIT_CHANNEL0); //channel 0&lt;BR /&gt; LPIT_DRV_StartTimerChannels(INST_LPIT1, 1 &amp;lt;&amp;lt; LPIT_CHANNEL1); //channel 1&lt;BR /&gt; LPIT_DRV_StartTimerChannels(INST_LPIT1, 1 &amp;lt;&amp;lt; LPIT_CHANNEL2); //channel 2&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; pFunLpitCallback = NULL;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Sep 2019 06:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954732#M5302</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-09-21T06:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT Chanuel Re-Init Issue</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954733#M5303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp; 赵 子成.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually when you exit a bootloader al the timers and peripherals&amp;nbsp;should be&amp;nbsp;deinitialize before enter your application. So I will suggest to call to stop and deinitialize the peripheral before entering your application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2019 22:03:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954733#M5303</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-09-23T22:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPIT Chanuel Re-Init Issue</title>
      <link>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954734#M5304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , Yes, it works.&lt;/P&gt;&lt;P&gt;Now I call&amp;nbsp;MCAL_DeInit before jump to APP:&lt;/P&gt;&lt;P&gt;BOOL MCAL_DeInit(void)&lt;BR /&gt;{&lt;BR /&gt; status_t status = STATUS_SUCCESS;&lt;/P&gt;&lt;P&gt;LPSPI_Type *base = g_lpspiBase[LPSPI_ID2];&lt;/P&gt;&lt;P&gt;LPIT_DRV_Deinit(INST_LPIT1);&lt;/P&gt;&lt;P&gt;status = status || LPSPI_Disable(base);&lt;/P&gt;&lt;P&gt;status = status || FLEXCAN_DRV_Deinit(INST_CANCOM1);&lt;/P&gt;&lt;P&gt;status = status || WDOG_DRV_Deinit(INST_WATCHDOG1);&lt;/P&gt;&lt;P&gt;if(status == STATUS_SUCCESS)&lt;BR /&gt; {&lt;BR /&gt; return TRUE;&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; return FALSE;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Now I deinit&amp;nbsp;LPIT,&amp;nbsp;SPI, CAN,&amp;nbsp;WDOG module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 07:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPIT-Chanuel-Re-Init-Issue/m-p/954734#M5304</guid>
      <dc:creator>赵子成</dc:creator>
      <dc:date>2019-11-14T07:10:32Z</dc:date>
    </item>
  </channel>
</rss>

