AnsweredAssumed Answered

UART3_RX_TX_IRQHandler missing first byte in isr

Question asked by RISHI KUMAR on Nov 19, 2015
Latest reply on Dec 4, 2015 by RISHI KUMAR

Dear All,

I have problem in receiving bytes in ISR see below code.

 

void UART3_RX_TX_IRQHandler(void)

{

    UART_DRV_IRQHandler(3);

    if(inx>9)

    {

               inx=0;

 

    }

    UART_HAL_Getchar(UART3, &RxBuff[inx]);

    inx++;

}

I am sending 8 bytes (1,2,3,4,5,6,7,8) but first  receiving  is wrong RxBuff[0] =0xFF instead of 1 remaining 7 bytes are good.

 

MY TX & RX pins are short.

 

My suspect is RX interrupt is not enabled.

 

Thanks in advance

 

Regards

rishi

Outcomes