<?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: LPUART_DRV_SendDataBlocking in bootloader not allowing User application to print logs</title>
    <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977507#M5603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no API for turning off Systick, but setting CSR to 0 has the same result.&lt;/P&gt;&lt;P&gt;There is no function to turn off the clocks, but when the clock is initialized, it resets all clocks.&lt;/P&gt;&lt;P&gt;To avoid errors during initialization, all clock consuming peripherals(comm, timers) must be deinitialized before exiting the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2020 15:45:49 GMT</pubDate>
    <dc:creator>raresvasile</dc:creator>
    <dc:date>2020-03-05T15:45:49Z</dc:date>
    <item>
      <title>LPUART_DRV_SendDataBlocking in bootloader not allowing User application to print logs</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977504#M5600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two applications bootloader and UserApp. In bootloader, I am using UART to print my trace logs using&amp;nbsp;LPUART_DRV_SendDataBlocking API. Before jumping to UserApp, I am doing all deinit calls&lt;/P&gt;&lt;P&gt;ex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LPUART_DRV_AbortSendingData(INST_LPUART1);&lt;BR /&gt; LPUART_DRV_Deinit(INST_LPUART1);&lt;BR /&gt; INT_SYS_DisableIRQGlobal();&lt;BR /&gt; EDMA_DRV_Deinit();&lt;BR /&gt; RTC_DRV_Deinit(RTCTIMER1);&lt;/P&gt;&lt;P&gt;JumpToUserApplication(&amp;lt;given address&amp;gt;);&lt;/P&gt;&lt;P&gt;But after that , I do not get any print from UserApp (it appears as if UserApp is not running at all from serial terminal, but I suspect UART is not working.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have an experiment, I changed a UART call from&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;LPUART_DRV_SendDataBlocking to&amp;nbsp;&amp;nbsp;LPUART_DRV_SendData (no blocking) then with above deinitializations, I can see proper debug logs getting printed from application.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me on, how I can still use&amp;nbsp;&amp;nbsp;LPUART_DRV_SendDataBlocking and can get proper logs from application as well ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I feel, I am missing something in the process of deinitiazation in bootloader before jumping to UserApp.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;More details about the setup :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Board S32K148 EVB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Flashing a binary (having bootloader as well as UserApp) in one go with JLink.exe&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- For UART logs , I am using Teraterm and OpenSDA micro USB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 12:40:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977504#M5600</guid>
      <dc:creator>akshaykul89</dc:creator>
      <dc:date>2020-03-03T12:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataBlocking in bootloader not allowing User application to print logs</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977505#M5601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LPUART_DRV_SendDataBlocking uses OSIF_SemaWait function which will turn on SysTick.&lt;/P&gt;&lt;P&gt;Can you add S32_SysTick-&amp;gt;CSR = 0; before jumping to application code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 17:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977505#M5601</guid>
      <dc:creator>raresvasile</dc:creator>
      <dc:date>2020-03-03T17:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataBlocking in bootloader not allowing User application to print logs</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977506#M5602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hello Rares,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This is really awesome and perfect solution for my issue. It worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I was suspecting Semaphore in Blocking call but was not aware about root cause could be systick. Is there any possible HAL API to stop systick ? Can I possibly stop clock in bootloader&amp;nbsp; before jumping from bootloader to UserApp ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am reinitializeing clock in UserApp. This is just an additional query.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Your reply will definitely add value to my knowledge. Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Akshay K.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 05:39:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977506#M5602</guid>
      <dc:creator>akshaykul89</dc:creator>
      <dc:date>2020-03-04T05:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPUART_DRV_SendDataBlocking in bootloader not allowing User application to print logs</title>
      <link>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977507#M5603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Akshay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately there is no API for turning off Systick, but setting CSR to 0 has the same result.&lt;/P&gt;&lt;P&gt;There is no function to turn off the clocks, but when the clock is initialized, it resets all clocks.&lt;/P&gt;&lt;P&gt;To avoid errors during initialization, all clock consuming peripherals(comm, timers) must be deinitialized before exiting the bootloader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rares&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPUART-DRV-SendDataBlocking-in-bootloader-not-allowing-User/m-p/977507#M5603</guid>
      <dc:creator>raresvasile</dc:creator>
      <dc:date>2020-03-05T15:45:49Z</dc:date>
    </item>
  </channel>
</rss>

