P2 with MCP39F521

Hi!

Just came across this as the notification email got delivered to my "Promotions" folder/tab!

I had specified the workaround I used in the I2C requestFrom gives 0 available bytes thread - see around Sept 22. I had to either call requestFrom twice (the first time with a small timeout), or call Wire.reset after endTransmission. From my investigation, the I2C_FLAG_BUSY was never getting reset, causing the protocol to hang. Called requestFrom with the small timeout, or the Wire.reset helped to clear the flag and keep things moving. The problem appeared to trickle down to deeper within HAL code and I couldn't dig down the source of the bug.

Hope that helps!
Sridhar