cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
woof65
Newbie
Newbie
524 Views
Registered: ‎09-13-2018

SPI controller will not run when booting from flash ROM

Jump to solution

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?

0 Kudos
Reply
1 Solution

Accepted Solutions
woof65
Newbie
Newbie
495 Views
Registered: ‎09-13-2018

Problem solved.

 

FSBL was referencing the wrong BSP causing initialization problems.

View solution in original post

0 Kudos
Reply
2 Replies
watari
Teacher
Teacher
511 Views
Registered: ‎06-16-2013

Hi @woof65

 

I guess it seems clock issue.

Would you make sure clock structure of SPI controller and clock stability ?

 

Best regards,

0 Kudos
Reply
woof65
Newbie
Newbie
496 Views
Registered: ‎09-13-2018

Problem solved.

 

FSBL was referencing the wrong BSP causing initialization problems.

View solution in original post

0 Kudos
Reply