This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UARTGetChar() doesn't work on TMDXICE3359

Hey there,

i want to receive data by UART5 in the full EtherCAT application.

Sending data via UARTPutChar() on UART5 is working fine.

If i try to debug following code the debug session crashes..

/////////////////////////////////////////////////////////////////////////////////////////
/**
\brief    This function will called from the synchronisation ISR 
            or from the mainloop if no synchronisation is supported
*////////////////////////////////////////////////////////////////////////////////////////
void APPL_Application(void)
{
    Uint8 LED; // initial test data
    static Uint8 prevState = 55;
    //char tmpData;


    
    //tmpData = 0;

    LED = sDOOutputs.LEDs;
    
    if(LED != prevState)
    {
    	LEDDIGOUTSetVal(LED);
    	UARTPutChar(5, LED);
    }

    prevState = LED;
    appState = sDO1Outputs.Cmd;// set the application state
    UTILsReadHVS();// trigger a read of hardware inputs
    sDIInputs.switchs = (Uint8)UTILsReadHVS2();
    UARTGetChar(5, &sDIInputs.switchs);
    if(appState == 0)
        appState = sDIInputs.switchs;//special mode to control app state by input switchs!
    sAI1Inputs.info1 = 0x12345600 | LED;
    sAI1Inputs.info2 = bsp_read_word(0x10);

}

What's wrong about the function call of UARTGetChar?

Kind regards,

Hendrik