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:
- create the following hardware:
- create a bit stream, and upload it to my board with the 3 following files: (.bit, .hwh, .tcl )
- writing the following program to communicate with the sensor:
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:
Does someone know why this happened?
I’m not sure, but maybe there is a problem with the configuration of the AXI I2C block.
Please, any information will help.