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.

Exception Occurred problem

Other Parts Discussed in Thread: SYSBIOS

Hi Everyone,

I am using concerto board and I am trying to add the I2C project into my project. When I added the below code into my I2C task function, I got the Exception occured problem. Can anyone help solve this?

Thanks in advance!

Bin

Code added:

                transferOK = readEEPROM(Board_MPU6050_ADDRESS , ulRawData,
                                            MPU6050_ADD_SIZE, MPU6050_DATA_SIZE);
                    if (!transferOK) {
                        System_abort("Error in I2C Transfer\n");
                    }

Console Message:

Update I2C
ti.sysbios.family.arm.m3.Hwi: line 938: E_hardFault: FORCED
ti.sysbios.family.arm.m3.Hwi: line 1015: E_busFault: PRECISERR: Immediate Bus Fault, exact addr known, address: fdbfffff
Exception occurred in background thread at PC = 0x0021fed8.
Core 0: Exception occurred in ThreadType_Task.
Task name: task1, handle: 0x200104e4.
Task stack base: 0x2000c7a0.
Task stack size: 0x800.
R0 = 0x3a97e7ff  R8  = 0x0022ab28
R1 = 0x20010aa0  R9  = 0x1d880300
R2 = 0x00000002  R10 = 0x00000001
R3 = 0xfdbfffef  R11 = 0x00000020
R4 = 0x200104e4  R12 = 0x0022ab20
R5 = 0x20010294  SP(R13) = 0x2000e6f0
R6 = 0x20010aa0  LR(R14) = 0x0021fecb
R7 = 0x00000000  PC(R15) = 0x0021fed8
PSR = 0x01000200
ICSR = 0x00423803
MMFSR = 0x00
BFSR = 0x82
UFSR = 0x0000
HFSR = 0x40000000
DFSR = 0x00000000
MMAR = 0xfdbfffff
BFAR = 0xfdbfffff
AFSR = 0x00000000
Terminating execution...

  • Hi Bin,

    Looking at your code is seems like you are trying to communicate with a device other than the on-board EEPROM.  If so, understand that the program/functions were written specifically for the EEPROM device on the board; trying to re-use the code to communicate with another device will require modification.  

    Assuming you are using logging and have not changed the driver to un-instrumented, can you provide the ROV logs (or a screenshot)? 

    Thanks,

    -- Emmanuel

  • Hi Emmanuel,

    Thanks for your reply. This problem was solved by changing the "MPU6050_DATA_SIZE" size.I just decreased the size and it is currently working fine.

    Many Thanks,

    Bin