<?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 Re: MCAL printf() statements in S32K</title>
    <link>https://community.nxp.com/t5/S32K/MCAL-printf-statements/m-p/1064708#M7237</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is there a possible way to utilize the printf() functionality with MCAL, say for the Sample Application. One solution would be to set up a UART and communicate through PuTTY, for instance. Is there an easier more straight-forward way?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the sample application, there are functions for initialize and setup the uart communication. By default, these functions are enabled, so basically you can use the marco CONSOLE_LOG to send the uart message.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Edit: Also, is there a UART driver for the MCAL. If there is how can I set it up?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, UART driver is not available for the MCAL and AUTOSAR itself.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Edit 2:&amp;nbsp;I set up the LPUART0 for OpenSDA virtual terminal and it is working. However, I don't think writing directly to&amp;nbsp;LPUART0-&amp;gt;BAUD and&amp;nbsp;LPUART0-&amp;gt;CTRL is good practice for Autosar applications. However, as far as I can see, there is no configuration available through Tresos. Will there be a UART module in MCAL in the future?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In S32K1 platform, there is AUTOSAR LIN driver which use LPUART as the hardware peripheral. So you might need to make sure that the hardware peripheral is not conflict, i.e., in case of you use both LIN driver and LPUART as uart communication. Otherwise, you can freely writing directly to the registers in your ASR application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea if UART module will be available in MCAL in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2020 08:03:41 GMT</pubDate>
    <dc:creator>namnguyenviet</dc:creator>
    <dc:date>2020-05-15T08:03:41Z</dc:date>
    <item>
      <title>MCAL printf() statements</title>
      <link>https://community.nxp.com/t5/S32K/MCAL-printf-statements/m-p/1064707#M7236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a possible way to utilize the printf() functionality with MCAL, say for the Sample Application. One solution would be to set up a UART and communicate through PuTTY, for instance. Is there an easier more straight-forward way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Talha Uyar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Also, is there a UART driver for the MCAL. If there is how can I set it up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit 2:&amp;nbsp;I set up the LPUART0 for OpenSDA virtual terminal and it is working. However, I don't think writing directly to&amp;nbsp;LPUART0-&amp;gt;BAUD and&amp;nbsp;LPUART0-&amp;gt;CTRL is good practice for Autosar applications. However, as far as I can see, there is no configuration available through Tresos. Will there be a UART module in MCAL in the future?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2020 11:08:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCAL-printf-statements/m-p/1064707#M7236</guid>
      <dc:creator>talha_uyar</dc:creator>
      <dc:date>2020-05-08T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: MCAL printf() statements</title>
      <link>https://community.nxp.com/t5/S32K/MCAL-printf-statements/m-p/1064708#M7237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f; "&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/talha.uyar@karel.com.tr"&gt;talha.uyar@karel.com.tr&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Is there a possible way to utilize the printf() functionality with MCAL, say for the Sample Application. One solution would be to set up a UART and communicate through PuTTY, for instance. Is there an easier more straight-forward way?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In the sample application, there are functions for initialize and setup the uart communication. By default, these functions are enabled, so basically you can use the marco CONSOLE_LOG to send the uart message.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Edit: Also, is there a UART driver for the MCAL. If there is how can I set it up?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Unfortunately, UART driver is not available for the MCAL and AUTOSAR itself.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Edit 2:&amp;nbsp;I set up the LPUART0 for OpenSDA virtual terminal and it is working. However, I don't think writing directly to&amp;nbsp;LPUART0-&amp;gt;BAUD and&amp;nbsp;LPUART0-&amp;gt;CTRL is good practice for Autosar applications. However, as far as I can see, there is no configuration available through Tresos. Will there be a UART module in MCAL in the future?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In S32K1 platform, there is AUTOSAR LIN driver which use LPUART as the hardware peripheral. So you might need to make sure that the hardware peripheral is not conflict, i.e., in case of you use both LIN driver and LPUART as uart communication. Otherwise, you can freely writing directly to the registers in your ASR application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea if UART module will be available in MCAL in the future.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Nam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 08:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/MCAL-printf-statements/m-p/1064708#M7237</guid>
      <dc:creator>namnguyenviet</dc:creator>
      <dc:date>2020-05-15T08:03:41Z</dc:date>
    </item>
  </channel>
</rss>

