Hardware, .96
Saw timeout of MSSP.
Look just before.
Current problem:
I must reset I2C Bus.
On/Off/On/Off...?
Is it Repeated HI2CStop, HI2CStart or repeated HI2CRestart?
Or was it address 0 HI2CSend 0 ???
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Months of agony...
Our robot (lots of RFI/EMI) kept locking up.
We couldn't figure out why. We had become stack paranoid.
But the assumption:
Wait UNTIL
In hi2c.h was found. We backed it up and added both
a timeout and error flag to it
just as we did in usart.h.
Now we just have one question-
Do you know the generic technique for waking
up the I2C bus? I've forgotten it...
Can you share your version of the compiler? A lock up of I2C was fixed, with timeout of MSSP.
What are you using ? Hardware or Software I2C?
Hardware, .96
Saw timeout of MSSP.
Look just before.
Current problem:
I must reset I2C Bus.
On/Off/On/Off...?
Is it Repeated HI2CStop, HI2CStart or repeated HI2CRestart?
Or was it address 0 HI2CSend 0 ???
Please try latest build. If this does not fix I will post the latest library - this should be fixed.
Use Restart.
OK Works now!
Pleasure.