Vasanta Tanna

52233 based board runs for few Hours then hangs - debug info is:

Discussion created by Vasanta Tanna on Jun 19, 2012
Latest reply on Jun 20, 2012 by TomE

52233 based board runs for few Hours and then hangs, it is pointing to line 3 where it dies, any idea?

It is pointing to "ReadUSR1" - No address info available for variable

 

__declspec(interrupt:0)
void UART1_TXRX_ISR(void)
{
    uint8 ReadUSR1 = MCF_UART_USR(1);

    if(ReadUSR1&MCF_UART_USR_TXRDY)
    {
        if(UART1TxCounter)
        {
            UART1TxCounter--;
            MCF_UART_UTB(1) = *UART1TxPtr++;
        }
        else
        {
            MCF_UART_UCR(1) |= MCF_UART_UCR_TX_DISABLED;
        }       
    }

    if(ReadUSR1&MCF_UART_USR_RXRDY)
    {
        if(UART1RxPtr == &UART1RxBuffer[UART1RxBuffSize])
        {
            UART1RxPtr = &UART1RxBuffer[0];
        }
        *UART1RxPtr++ = MCF_UART_URB(1);
        UART1Status |= UARTByteReceived;
    }
}

Outcomes