11-20-2018 04:25 AM
I have a problem with the ZYNQ SPI controller. I build some vdl code that driver a LED on the ZC02 board. The control is via the SPI controller of the ZYNQ.
I build a boot image and programmed it to the flash ROM. It looks like the fpga is configured correctly by the FSBL. The code that runs on the ZYNQ seems to be loaded correctly and runs in DDR memory. BUT the SPI controller won't send the data. I traced it to the point that the FIFO's are loaded (I'm using XSpiPs_PolledTransfer (xspips.c)) and the driver is waiting on the transfer to finish, which never happens).
If I run the elf from the SDK then everything is ok (This is booting from flash, wait until the program hangs and then run the elf from the SDK).
Also when I start with the debugger it works.
What can possibly be wrong?