-
-
Notifications
You must be signed in to change notification settings - Fork 116
init i2c #247
Comments
i2c has been transformed, https://github.com/RfidResearchGroup/proxmark3/blob/master/common/i2c.c but I still don't understand the reset CPU.. Where do you see a reset CPU? |
CPU reset - was a sample. generally, any interrupt of i2c transmition may hang i2c bus. |
@merlokk I thought your company would let you get your hands on a rdv40 :) |
He's right on the matter about the CPU reset not anyhow ensuring i2c recovery. I'll check 2 things on my side this weekend :
If 1 or 2 is already known tell me, I'll be glad to avoid reading throw these again. |
I have no idea. |
@merlokk Now that you have access to a RDV4, do you still think it is a problem or? |
hi) it may be problem... in some rare cases but.... |
here
https://github.com/iceman1001/proxmark3/blob/master/common/i2c.c#L46
standart i2c init. but... if you reset CPU in i2c exchange cycle you will have "hanged" i2c. in this situation you can unhang i2c only via power cycle.
here some code to avoid this situation:
https://github.com/merlokk/SmartHome/blob/master/ESP8266CO2PM25/ESP8266CO2PM25.ino#L75
it have written for arduino, but i think the idea is clear)
p.s. i dont have rdv4 by now so i cant write a PR(
The text was updated successfully, but these errors were encountered: