UART and Thread

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART and Thread

405 Views
ajaykr
Contributor I

Hi,

Thanks for reply.I'm using FRDM-64f board.First I checked my code alone

using the project uart non blocking,with interrupt and which is working

perfect.Then I moved the same code into the lwip tcp echo demo

project,which is now showing some issues.

 

      nRet = UART_DRV_Init(BOARD_DEBUG_UART3_INSTANCE, &uartState,

&uartConfig);

      pFunc = (uart_rx_callback_t *)uart_Callback;

      UART_DRV_InstallRxCallback(BOARD_DEBUG_UART3_INSTANCE

,(uart_rx_callback_t)pFunc ,&rxChar, 0, NULL);

      NVIC_SetPriority(I2C0_IRQn, 3U);

    while(true)

    {

     ReceiveCommandFromSerial();

     UART_DRV_ReceiveData(BOARD_DEBUG_UART3_INSTANCE , &rxChar , 8u);

    }

 

}

void uart_Callback()

{

__asm("nop");

}

If I use UART_DRV_SendData() function the whole board is getting hanging.

--

Regards

AJAY K R

Labels (1)
0 Kudos
1 Reply

304 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Ajay,

Next time please put the  replay after your question place .

If you create a new one like this, it is hard to find your reply, thanks!

BR

Alice

0 Kudos