I’m using XEM3010 firmware ver. 3.0 under Windows XP, Visual Basic 6.
Most everything (including okUsbFrontPanel_WriteI2C) is working OK, but when I attempt to read the I2C bus I get error okI2CUnknownStatus. The I2C bus appears to crash (okUsbFrontPanel_WriteI2C no longer works), but communication with the FPGA continues unaffected. I2C bus operation can only be restored by cycling the power. The VB6 declaration of Function okUsbFrontPanel_ReadI2C is as follows: Private Declare Function okUsbFrontPanel_ReadI2C Lib "okFrontPanel" (ByVal xem As Long, ByVal addr As Integer, ByVal length As Integer, ByRef Data As Byte) As Long. The preceding declaration is basically identical to the declaration used for okUsbFrontPanel_WriteI2C, which works OK. I'm reasonably sure the problem is not overflow of the buffer used to receive the data. Any assistance would be appreciated.
Harry S. Reichard