Hello everyone,
I'm in the process of interfacing my Avnet CC3000-Pmod Compatible Wi-Fi Adapter to the ZedBoard via the JE7 Pmod header, which is connected to the PS.
At first I thought this should be a simple thing, since creating a hardware system that includes SPI was so simple, but ...
When I try to use the SPI device (via the SpiPs device driver), I am stuck in the XSpiPs_PolledTransfer() function, waiting for the status register flag that indicates the transmission has finished (XSPIPS_IXR_TXOW_MASK). The reason that the flag never comes, is that I read nonsense values from the register (a 0x2 in this case).
Then I added the XSpiPs_SelfTest() function, which failed at the very first register read. So I'm guessing there is something wrong with my hardware design.
I got the Zynq IP setup & configured as follows:
+--------------------------------+
| ZYNQ DDR +-----> DDR
| FIXED_IO +-----> FIXED_IO
| USBIND_0 +-
-+ TTC0_CLK0_IN M_AXI_GP0 +-
-+ TTC0_CLK1_IN TTC0_WAVE0_OUT +-
-+ TTC0_CLK2_IN TTC0_WAVE1_OUT +-
+-+ M_AXI_GP0_ACLK TTC0_WAVE2_OUT +-
| | FCLK_CLK0 +--+
| | FCLK_RESET0_N +- |
| +--------------------------------+ |
+-------------------------------------+
SPI 1: MIO 10 .. 15
SS[1] IO MIO 14
SPI 1 MIO 10 mosi
SPI 1 MIO 11 miso
SPI 1 MIO 12 sclk
SPI 1 MIO 14 ss[1]
The clock is set to ca. 16MHz, which is the maximum the CC3000 can take.
Has anybody had any experience with the CC3000 Adapter, Pmod or SPI on the ZedBoard? I'd be very glad for any help, since I'm pretty much stuck here.
With best regards,
Darius