Sorry, you need to enable JavaScript to visit this website.

SPI stand alone example

Unsolved
6 posts / 0 new
rofiq
Junior(0)
SPI stand alone example

Hi,

I look for simple tutorial on SPI for stand alone project to test my LCD init., so far I only found this
Xillinx/SDK/2014.4/data/embeddedsw/XilinxProcessorIPLib/drivers/spips_v1_06_a

any other simple tutorial for SPI on zedboard ?

TroutChaser
Moderator(18)
Hello Ahmad,

Hello Ahmad,
 
If you are looking for an example that uses the Zynq PS based SPI controller take a look at the Maxim reference design for their Santa Fe AFE PMOD. It has code to control the PS SPI interface:
https://www.maximintegrated.com/en/design/reference-design-center/system...
 
-Gary

antony.kobin
Junior(1)
PL quad spi

hi dear guys
I tried to setup PL SPI for z7020 chip ( xc7z020clg400-3 ) but it Does not work
this is my setup in pl
 

what did mean the not in this ip setting ? i find the .xdc file but i can not use this command because occur an error when i run the "create_generated_clock -name clk_sck -source [get_pins -hierarchical *axi_quad_spi_1/ext_spi_clk] [get_ports <SCK_IO>] -edges {3 5 7}" command
Have I done something wrong?
i skip this step and configure the spi in ps and test it but  it dose not work
this is my stand alone code for set up spi
 XSpiConfig=XSpi_LookupConfig(XPAR_AXI_QUAD_SPI_0_DEVICE_ID);
 SPI_Status=XSpi_CfgInitialize(&XSpi,XSpiConfig,XSpiConfig->BaseAddress);
XSpi_Start(&XSpi);
XSpi_Transfer(&XSpi,&sendbufPtr,&recvbufPtr,bytCuont);
 
Can any one help me ?

JFoster
Moderator(69)
Hello Antony,

Hello Antony,

We are currently in the process of releasing a PL SPI Controller baremetal reference design. I will respond back when we have released it. 

--Josh

Hi Josh,

Hi Josh,
could you please notify me when the design is available?
Thanks.
Best Regards,
Marco

JFoster
Moderator(69)
Hi Marco,

Hi Marco,

The designs have been released, please look under the reference design sections for either MicroZed/PicoZed. You will find two new bare metal SPI designs and two new bare metal I2C designs.

--Josh