08-14-2020 05:15 PM
I am using NI845x USB to I2C/SPI module. It works fine mostly but I get the error -301742 during the middle of the test while communicating over I2C and no way to recover that. If I start my application again I get the same error over and over. But strangely, if I wait 5 min or so and then try again, it works fine for another 30 min to 1 hour.
I did use this function to increase the timeout after reading the error.
ni845xI2cConfigurationSetAckPollTimeout(i2cHandle, 1000)
What am I missing?
Any help is appreciated.
Solved! Go to Solution.
08-14-2020 06:56 PM
What device are you trying to communicate with? Do you have an I2C Mux involved? Is the chip getting a brownout condition (increase in current causes the supply voltage to drop below an allowed threshold)?
08-18-2020 02:38 PM
Thank you very much for your suggestion. That was it!
Yes, MUX was involved and brown out occurred because the current draw was right on the edge of the max limit of the power supply.