Tool/software: TI-RTOS
Hello,
I'm developing code for modbus slave using TM4C123 lauchpad. The firmware is completed and is working fine when I interface my modbus slave with master simulator on computer.
My issue is:
I have a data logger device, which when I interface with my modbus slave, the firmware is getting stuck at the following point:
int32_t
UARTCharGet(uint32_t ui32Base)
{
//
// Check the arguments.
//
ASSERT(_UARTBaseValid(ui32Base));
//
// Wait until a char is available.
//
while(HWREG(ui32Base + UART_O_FR) & UART_FR_RXFE)
{
}
//
// Now get the char.
//
return(HWREG(ui32Base + UART_O_DR));
}
After connecting the data logger, when I do step by step debugging, the code gets stuck in the while loop of the above code
The same firmware is working fine when we interface it with simulators(I have tested it with many simulators).
Kindly tell me what exactly is the issue??
Thank you for your time.
Regards
Praveen