<?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 Design StudioのトピックRe: S32K UART Rx can't enter the receive callback</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/870405#M4485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kong,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see anything obvious on the snippet you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest you to check:&lt;/P&gt;&lt;P&gt;* if your pinmux&amp;nbsp; for Rx/Tx pin is correctly configured. (see below example valid for LPUART1 - OpenSDA UART)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71690iE479D91CE81A729E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;* can you send character from MCU -&amp;gt; PC?&lt;/P&gt;&lt;P&gt;* see the SDK example&amp;nbsp;lpuart_echo_s32k148 as a reference project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71603iFB943409DCE6735A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 13:50:26 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2019-02-07T13:50:26Z</dc:date>
    <item>
      <title>S32K UART Rx can't enter the receive callback</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/870404#M4484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; On S32K148 Board, with the S32 Development IDE for ARM, I write a uart driver for rx/tx data, the code is as below.&lt;/P&gt;&lt;P&gt;However, when I send data from PC to S32k board, the Log_Rx_Hander wasn't called, why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;void Log_Rx_Handler(void *driverState, uart_event_t event, void *userData)&lt;BR /&gt;{&lt;BR /&gt; /* Unused parameters */&lt;BR /&gt; (void)driverState;&lt;BR /&gt; (void)userData;&lt;/P&gt;&lt;P&gt;/* Check the event type */&lt;BR /&gt; if (event == UART_EVENT_RX_FULL)&lt;BR /&gt; {&lt;BR /&gt; /* The reception stops when newline is received or the buffer is full */&lt;BR /&gt; if ((buffer[bufferIdx] != '\n') &amp;amp;&amp;amp; (bufferIdx != (BUFFER_SIZE - 2U)))&lt;BR /&gt; {&lt;BR /&gt; /* Update the buffer index and the rx buffer */&lt;BR /&gt; bufferIdx++;&lt;BR /&gt; LPUART_DRV_SetRxBuffer(INST_DEBUG_UART2, &amp;amp;buffer[bufferIdx], 1U);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;void Log_Init()&lt;BR /&gt;{&lt;BR /&gt; LPUART_DRV_Init(INST_DEBUG_UART2, &amp;amp;debug_uart2_State, &amp;amp;debug_uart2_InitConfig0);&lt;/P&gt;&lt;P&gt;LPUART_DRV_InstallRxCallback(INST_DEBUG_UART2, Log_Rx_Handler, NULL);&lt;BR /&gt; //WINT_SYS_InstallHandler(LPUART2_RxTx_IRQn, Log_Rx_Handler, (isr_t *)0);&lt;BR /&gt; INT_SYS_EnableIRQ(LPUART2_RxTx_IRQn);&lt;BR /&gt; LPUART_DRV_SendData(INST_DEBUG_UART2,(uint8_t *)dbgOkMsg, strlen(dbgOkMsg));&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 13:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/870404#M4484</guid>
      <dc:creator>kongdetao</dc:creator>
      <dc:date>2019-01-29T13:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K UART Rx can't enter the receive callback</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/870405#M4485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kong,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see anything obvious on the snippet you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest you to check:&lt;/P&gt;&lt;P&gt;* if your pinmux&amp;nbsp; for Rx/Tx pin is correctly configured. (see below example valid for LPUART1 - OpenSDA UART)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71690iE479D91CE81A729E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;* can you send character from MCU -&amp;gt; PC?&lt;/P&gt;&lt;P&gt;* see the SDK example&amp;nbsp;lpuart_echo_s32k148 as a reference project&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/71603iFB943409DCE6735A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 13:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/870405#M4485</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2019-02-07T13:50:26Z</dc:date>
    </item>
    <item>
      <title>回复： S32K UART Rx can't enter the receive callback</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/1550296#M9378</link>
      <description>&lt;P&gt;you should try to init the clock module, I think the uart module is ok.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:41:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32K-UART-Rx-can-t-enter-the-receive-callback/m-p/1550296#M9378</guid>
      <dc:creator>547416104</dc:creator>
      <dc:date>2022-11-08T10:41:24Z</dc:date>
    </item>
  </channel>
</rss>

