AnsweredAssumed Answered

Re: UART and Thread

Question asked by Ajay k r on Dec 26, 2016
Latest reply on Dec 27, 2016 by Alice_Yang

Hi all,

Just now i tried the Uart-polling example with the same project,which is

working.I think the issues is with the interrupt.

 

On Mon, Dec 26, 2016 at 3:20 PM, Ajay K R <ajay.kr@erislabs.com> wrote:

 

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

 

 

 

 

--

Regards

AJAY K R

Outcomes