We're trying to get I2C communication working on our Cora Z7 boards. I tried sending data using the XIicPs_MasterSendPolled() function, but the data never gets clocked out.
I found that after programming the FPGA, the SCL line goes low and stays low, which seems relevant. Any tips on what we might be doing wrong? Or how we can proceed?
The I2C peripheral is in the ARM microcontroller itself, not in the FPGA fabric. The functions for setting up the peripheral and for transmitting data are shown below.
printf(" I2C Init: ");