<?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>S32 SDKのトピックS32K146 UART send problem</title>
    <link>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1001347#M2038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;When I use the following statement, the uart cannot emit any data.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;But SDK routines do support this.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;When I add "&lt;SPAN style="color: #ff0000;"&gt;while(UART_GetTransmitStatus(&amp;amp;uart1_pal_instance, &amp;amp;bytesRemaining) == STATUS_BUSY)&lt;/SPAN&gt;" at the end of the statement, the UART can send data as normal.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;How to solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;UART_SendData(&amp;amp;uart1_pal_instance, sendbuf, size);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Feb 2020 06:10:18 GMT</pubDate>
    <dc:creator>347996379</dc:creator>
    <dc:date>2020-02-22T06:10:18Z</dc:date>
    <item>
      <title>S32K146 UART send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1001347#M2038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;When I use the following statement, the uart cannot emit any data.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;But SDK routines do support this.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;When I add "&lt;SPAN style="color: #ff0000;"&gt;while(UART_GetTransmitStatus(&amp;amp;uart1_pal_instance, &amp;amp;bytesRemaining) == STATUS_BUSY)&lt;/SPAN&gt;" at the end of the statement, the UART can send data as normal.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;How to solve this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;UART_SendData(&amp;amp;uart1_pal_instance, sendbuf, size);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2020 06:10:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1001347#M2038</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-02-22T06:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 UART send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1001348#M2039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi 张 舜毅,&lt;/P&gt;&lt;P&gt;Your method is correct.&lt;/P&gt;&lt;P&gt;UART_GetTransmitStatus&amp;nbsp;returns whether the previous transmission has finished.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UART_GetTransmitStatus.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102702i91BB9BA56F8402C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="UART_GetTransmitStatus.png" alt="UART_GetTransmitStatus.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have you check the status of UART_SendData? If it return STATUS_BUSY?&lt;BR /&gt;It is not recommend to call UART_SendData regularly, without check whether the previous transmission has finished.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="UART_SendData.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102757i864254BBABD42439/image-size/large?v=v2&amp;amp;px=999" role="button" title="UART_SendData.png" alt="UART_SendData.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Best Regards,&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Robin&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2020 05:02:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1001348#M2039</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-02-24T05:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 UART send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1209695#M2040</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I have a problem using Uart to send a data in order to chek it with the Putty.&lt;/P&gt;&lt;P&gt;I am using s32k146 EVB and S32IDE, and I want to send a data by the uart to learn about this communication. I am quite new in this world. So you can see the code in the next lines:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;/* Write your code here */&lt;BR /&gt;(void) CLOCK_SYS_Init (g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT, g_clockManCallbacksArr,&lt;BR /&gt;CLOCK_MANAGER_CALLBACK_CNT);&lt;BR /&gt;(void) CLOCK_SYS_UpdateConfiguration (0U, CLOCK_MANAGER_POLICY_AGREEMENT);&lt;BR /&gt;/* For example: for(;;) { } */&lt;/P&gt;&lt;P&gt;pins_channel_type_t result,result2;&lt;BR /&gt;HAL_DIO_result_t res;&lt;BR /&gt;uint8_t num=3;&lt;BR /&gt;res=HAL_DioInit();&lt;BR /&gt;&lt;STRONG&gt;LPUART_DRV_Init(INST_LPUART1, &amp;amp;lpuart1_State, &amp;amp;lpuart1_InitConfig0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;for(;;){&lt;BR /&gt;result=HAL_DioGet(DIO_INPUT_PTC12);&lt;BR /&gt;if(!result){&lt;BR /&gt;HAL_DioSet(DIO_INPUT_PTC12, 1);&lt;BR /&gt;&lt;STRONG&gt;LPUART_DRV_SendData(INST_LPUART1, &amp;amp;num, 1);&lt;/STRONG&gt;&lt;BR /&gt;}&lt;BR /&gt;else{&lt;BR /&gt;HAL_DioSet(DIO_INPUT_PTC12, 0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;In this code, you can see I want to send a simply uint data(m), when result =0. But I do not have any data in the Putty, when the program run the instruction of sendata. I have checked the following probably errors:&lt;/P&gt;&lt;P&gt;1. The putty is well configured, with the correct COM, the correct baud rate,...&lt;/P&gt;&lt;P&gt;2. I think the Uart12 is also well configured and initialized.&lt;/P&gt;&lt;P&gt;3. I think that Uart sends data using interrupts by default. I tried some ways to prove this but I didn´t have results.&lt;/P&gt;&lt;P&gt;4. The processor Expert is well configured. Uart1 to trasmit, output.&lt;/P&gt;&lt;P&gt;5. I also tried to use the function of SDK, get_TransmitStatus in order to see how the state of the process was during the trasmition, but was always success, surprisingly.&lt;/P&gt;&lt;P&gt;6. I compare with the lpuart example of the guide of the board, but I must use the function of SDK, such as DRV_SendData, DRV_get_TransmitStatus, etc.&lt;/P&gt;&lt;P&gt;7 I also tried to use the functions sendDataPolling and sedDataPolling, but I didn´t have good results.&lt;/P&gt;&lt;P&gt;Can you help me, please?&lt;/P&gt;&lt;P&gt;Thank so much.&lt;/P&gt;&lt;P&gt;Manuel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 14:16:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-UART-send-problem/m-p/1209695#M2040</guid>
      <dc:creator>ManuelDuran</dc:creator>
      <dc:date>2021-01-11T14:16:22Z</dc:date>
    </item>
  </channel>
</rss>

