I have issues with my board (pynq-z2, image V2.7.0)
I tried to build AXI I2C to connect the inertial module sensor of Sparkfun (LSM6DS0) to the board.
Here are the steps I did:
and the problem is that the tx_data variable is empty and not getting the value I expected from the sensor register at the end of the code.
I tried to understand why this happened, and this is my assumption:
The code runs, the master sends the information to the sensor, and the sensor sends the required information back to the master. But at the end of the transaction, the master pulls up the SDA line (NACK state), resulting in the problem I mentioned.
Here is the information on the sensor address and debug result of the problem:
Thank you, for your suggestions for debugging - the issue has been solved!
The wait() function in AxiIIC class was helpful. But the correct place to use it in the code is after the transaction (I tried to place it in between, but it didnt works).
Note : the main issue was the tx_data variable type, I changed it to βbytes objectβ and its finally works.