UART and Thread

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

UART and Thread

772 次查看
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

标签 (1)
0 项奖励
回复
1 回复

671 次查看
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 项奖励
回复