I2C Driver Error in DRV_I2C_Tasks() due to a tbl refill exception
I'm struggling to get rid of this issue that cause a reset randomly (every 4/8 hours).
Debug hits the simple_tlb_refill_exception_handler and a runtime exception in DRV_I2C_Tasks() is shown in the Call Stack.
void _simple_tlb_refill_exception_handler( void )
static unsigned int badVAddr;
static unsigned int badInstAddr;
badVAddr = _CP0_GET_BADVADDR();
badInstAddr = _CP0_GET_EPC();
This is the line of code whete the exception happens:
*lBufferObj->rxBuffer++ = PLIB_I2C_ReceivedByteGet (i2cId);
I've attached the content of the local objects in the Variable windows.
Any idea on how to get rid of this issue?