11-15-2017 07:14 AM
I'm trying to get an i2c AXI peripheral to work on a Zynq board. I have the thing working in so far as it actually is able to send messages, but I seem to have problems getting the interrupt system to work. In this system the iic IP interrupt is hooked directly into the interrupt port of the zynq processor. I found the example bare metal i2c in the BSP program along with the scu/gci BSP example. I've combined the two together, but I'm still not seeing any interrupts. I've posted the program below. Any hints would be helpful.
04-20-2018 05:56 AM
I am having the same problem state here.
What I noticed is : if you uncomment the
then it works. I have in my code the following
while (!TransmitComplete || (XIic_IsIicBusy(InstancePtr) == TRUE)); /* Wait till the transmission is completed. */
With that the interrupt is triggered and the SendHandler function is reached.
However, I don't like it because the processor is kept in the while waiting.
Did you solve your issue ?.
I am looking for a solution in which the while is not used.