• AVR Freaks

I2C Driver Error in DRV_I2C_Tasks() due to a tbl refill exception

Author
Johnny0099
Super Member
  • Total Posts : 156
  • Reward points : 0
  • Joined: 2015/06/20 00:33:20
  • Location: 0
  • Status: offline
2019/05/18 04:42:08 (permalink)
0

I2C Driver Error in DRV_I2C_Tasks() due to a tbl refill exception

Harmony 2.0.5.1
XC32 2.10
PIC32MZ2048EFM100-I/PT
 
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();
while (1)
{
SYS_DEBUG_BreakPoint();
}
}
 
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?
 
Any idea?

Attached Image(s)

#1

1 Reply Related Threads

    Paul PortSol
    Super Member
    • Total Posts : 439
    • Reward points : 0
    • Joined: 2015/07/03 11:52:03
    • Location: Newfoundland, Canada
    • Status: offline
    Re: I2C Driver Error in DRV_I2C_Tasks() due to a tbl refill exception 2019/05/21 05:51:49 (permalink)
    0
    Are you using the "Bit Bang" I2C option in MHC?
    Some PICs have a bug, see the Errata for the PIC you are using.
    Much easier to enable "Bit Bang" than to burn time trying to bypass bug.
    Paul
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5