11-20-2018 04:25 AM
Hi,
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?
11-20-2018 06:39 AM
Problem solved.
FSBL was referencing the wrong BSP causing initialization problems.
11-20-2018 05:23 AM
Hi @woof65
I guess it seems clock issue.
Would you make sure clock structure of SPI controller and clock stability ?
Best regards,
11-20-2018 06:39 AM
Problem solved.
FSBL was referencing the wrong BSP causing initialization problems.