<?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 can not enter the callback function about UART0 in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836047#M5525</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; I am working on the &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;JN-AN-1189, and I want receive data from UART0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;The code as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;PRIVATE void vUart_Init(void)&lt;BR /&gt;{&lt;BR /&gt; vAHI_UartEnable(E_AHI_UART_0);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, TRUE, TRUE);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, FALSE, FALSE);&lt;BR /&gt; vAHI_UartSetBaudRate(E_AHI_UART_0, E_AHI_UART_RATE_115200);&lt;BR /&gt; vAHI_UartSetRTSCTS(E_AHI_UART_0, FALSE);&lt;BR /&gt; vAHI_UartSetControl(E_AHI_UART_0, FALSE, FALSE, E_AHI_UART_WORD_LEN_8, TRUE, FALSE); /* [I SP001222_P1 279] */&lt;BR /&gt; vAHI_Uart0RegisterCallback ( APP_myisrUart );&lt;BR /&gt; vAHI_UartSetInterrupt(E_AHI_UART_0, FALSE, TRUE, TRUE, TRUE, E_AHI_UART_FIFO_LEVEL_1);&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC void APP_myisrUart(uint32 u32Device, uint32 u32ItemBitmap)&lt;BR /&gt;{&lt;BR /&gt; unsigned int irq = ((*((volatile uint32 *)(UART_START_ADR + 0x08))) &amp;gt;&amp;gt; 1) &amp;amp; 0x0007;&lt;BR /&gt; uint8 u8Byte;&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, 0x33);&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, 0x33);&lt;BR /&gt; if (irq &amp;amp; E_AHI_UART_INT_RXDATA)&lt;BR /&gt; {&lt;BR /&gt; u8Byte = u8AHI_UartReadData(E_AHI_UART_0);&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, u8Byte);&lt;BR /&gt; //if(ZQ_bQueueSend(&amp;amp;APP_msgSerialRx, &amp;amp;u8Byte) == FALSE)&lt;BR /&gt; //{&lt;BR /&gt; // /* Failed to send the message to queue */&lt;BR /&gt; //}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (irq &amp;amp; E_AHI_UART_INT_TX)&lt;BR /&gt; {&lt;BR /&gt; /*if(ZQ_bQueueReceive(&amp;amp;APP_msgSerialTx, &amp;amp;u8Byte) == TRUE)&lt;BR /&gt; {&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, u8Byte);&lt;BR /&gt; decrement activity counter for dequeued data&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; disable tx interrupt as nothing to send&lt;BR /&gt; UART_vSetTxInterrupt(FALSE);&lt;BR /&gt; }*/&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I have seen the suggestions in&amp;nbsp;&lt;A _jive_internal="true" class="" data-containerid="11235" data-containertype="14" data-content-finding="Community" data-objectid="462011" data-objecttype="1" href="https://community.nxp.com/thread/462011" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;JN5168 UART vAHI_Uart0RegisterCallback() Using&lt;/A&gt;, but it no effects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2018 07:32:04 GMT</pubDate>
    <dc:creator>2433841893</dc:creator>
    <dc:date>2018-09-18T07:32:04Z</dc:date>
    <item>
      <title>can not enter the callback function about UART0</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836047#M5525</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; I am working on the &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;JN-AN-1189, and I want receive data from UART0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;The code as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;PRIVATE void vUart_Init(void)&lt;BR /&gt;{&lt;BR /&gt; vAHI_UartEnable(E_AHI_UART_0);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, TRUE, TRUE);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, FALSE, FALSE);&lt;BR /&gt; vAHI_UartSetBaudRate(E_AHI_UART_0, E_AHI_UART_RATE_115200);&lt;BR /&gt; vAHI_UartSetRTSCTS(E_AHI_UART_0, FALSE);&lt;BR /&gt; vAHI_UartSetControl(E_AHI_UART_0, FALSE, FALSE, E_AHI_UART_WORD_LEN_8, TRUE, FALSE); /* [I SP001222_P1 279] */&lt;BR /&gt; vAHI_Uart0RegisterCallback ( APP_myisrUart );&lt;BR /&gt; vAHI_UartSetInterrupt(E_AHI_UART_0, FALSE, TRUE, TRUE, TRUE, E_AHI_UART_FIFO_LEVEL_1);&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PUBLIC void APP_myisrUart(uint32 u32Device, uint32 u32ItemBitmap)&lt;BR /&gt;{&lt;BR /&gt; unsigned int irq = ((*((volatile uint32 *)(UART_START_ADR + 0x08))) &amp;gt;&amp;gt; 1) &amp;amp; 0x0007;&lt;BR /&gt; uint8 u8Byte;&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, 0x33);&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, 0x33);&lt;BR /&gt; if (irq &amp;amp; E_AHI_UART_INT_RXDATA)&lt;BR /&gt; {&lt;BR /&gt; u8Byte = u8AHI_UartReadData(E_AHI_UART_0);&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, u8Byte);&lt;BR /&gt; //if(ZQ_bQueueSend(&amp;amp;APP_msgSerialRx, &amp;amp;u8Byte) == FALSE)&lt;BR /&gt; //{&lt;BR /&gt; // /* Failed to send the message to queue */&lt;BR /&gt; //}&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (irq &amp;amp; E_AHI_UART_INT_TX)&lt;BR /&gt; {&lt;BR /&gt; /*if(ZQ_bQueueReceive(&amp;amp;APP_msgSerialTx, &amp;amp;u8Byte) == TRUE)&lt;BR /&gt; {&lt;BR /&gt; vAHI_UartWriteData(E_AHI_UART_0, u8Byte);&lt;BR /&gt; decrement activity counter for dequeued data&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; disable tx interrupt as nothing to send&lt;BR /&gt; UART_vSetTxInterrupt(FALSE);&lt;BR /&gt; }*/&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I have seen the suggestions in&amp;nbsp;&lt;A _jive_internal="true" class="" data-containerid="11235" data-containertype="14" data-content-finding="Community" data-objectid="462011" data-objecttype="1" href="https://community.nxp.com/thread/462011" style="color: #3d9ce7; background-color: #ffffff; border: 0px; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;JN5168 UART vAHI_Uart0RegisterCallback() Using&lt;/A&gt;, but it no effects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 07:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836047#M5525</guid>
      <dc:creator>2433841893</dc:creator>
      <dc:date>2018-09-18T07:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: can not enter the callback function about UART0</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836048#M5526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you set the direction for that specific pins as an input?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please look the next community post.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/461239"&gt;https://community.nxp.com/thread/461239&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 21:01:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836048#M5526</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-09-25T21:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: can not enter the callback function about UART0</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836049#M5527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have set the direction for the DIO7&amp;nbsp;&lt;SPAN&gt;as an input,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;but it no effects.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;I am working on the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px; font-size: 14px;"&gt;JN-AN-1189.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-size: 14px;"&gt;Have you reproduced this problem on the JN-AN-1189?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-size: 14px;"&gt;Can you normally use UART0 to receive data on JN-AN-1189?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-size: 14px;"&gt;The codes as follow:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; font-size: 14px;"&gt;#define UART0_RXD (1&amp;lt;&amp;lt;7)&lt;BR /&gt;#define UART0_TXD (1&amp;lt;&amp;lt;6)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;PRIVATE void vUart_Init(void)&lt;BR /&gt;{&lt;BR /&gt; vAHI_DioSetDirection(0, UART0_TXD);&lt;BR /&gt; vAHI_DioSetDirection(UART0_RXD, 0);&lt;BR /&gt; vAHI_DioSetPullup(0, UART0_TXD);&lt;BR /&gt; vAHI_DioSetPullup(UART0_RXD, 0);&lt;/P&gt;&lt;P&gt;vAHI_UartSetRTSCTS(E_AHI_UART_0, FALSE);&lt;BR /&gt; vAHI_UartEnable(E_AHI_UART_0);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, TRUE, TRUE);&lt;BR /&gt; vAHI_UartReset(E_AHI_UART_0, FALSE, FALSE);&lt;/P&gt;&lt;P&gt;vAHI_Uart0RegisterCallback ( os_vAPP_myCoordisrUart );&lt;/P&gt;&lt;P&gt;vAHI_UartSetBaudRate(E_AHI_UART_0, E_AHI_UART_RATE_9600);&lt;BR /&gt; vAHI_UartSetControl(E_AHI_UART_0, FALSE, FALSE, E_AHI_UART_WORD_LEN_8, TRUE, FALSE); /* [I SP001222_P1 279] */&lt;BR /&gt; vAHI_UartSetInterrupt(E_AHI_UART_0, FALSE, FALSE, TRUE, TRUE, E_AHI_UART_FIFO_LEVEL_1);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 04:04:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836049#M5527</guid>
      <dc:creator>2433841893</dc:creator>
      <dc:date>2018-09-26T04:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: can not enter the callback function about UART0</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836050#M5528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao Lei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DId you modify the makefile? Are you seeing the debug UART?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the example that you are selecting in the JN-AN-1189? I will try by my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2018 00:31:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/can-not-enter-the-callback-function-about-UART0/m-p/836050#M5528</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2018-10-26T00:31:32Z</dc:date>
    </item>
  </channel>
</rss>

