UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor ashish7724
Visitor
620 Views
Registered: ‎04-21-2016

AXI SPI not working in Zynq Vivado 2014.1

Hello,

 

I have added AXI SPI Ip with zynq Processing system.

I have made all the ports as shown

 

spi_rtl_io0_i => '1',
spi_rtl_io0_o => Serial_Out,
spi_rtl_io0_t => open,
spi_rtl_io1_i => Serial_In,
spi_rtl_io1_o => open,
spi_rtl_io1_t => open,
spi_rtl_sck_i => '1',
spi_rtl_sck_o => Sck,
spi_rtl_sck_t => open,
spi_rtl_ss_i(0) => '1',
spi_rtl_ss_o(0) => SS,
spi_rtl_ss_t => open

 

 

along with external  SPI clock 1 MHz

 

I have referred example code of the xspi_polled_example of the SDK examples, but after doing this I am not able to get any signal at the pins of FPGA, neigther CS nor SCLK.

 

Could anyone provide article on Pin connection and software routine for AXI SPI in vivado for zynq

 

Thanks 

 

0 Kudos
1 Reply
Explorer
Explorer
579 Views
Registered: ‎06-19-2015

Re: AXI SPI not working in Zynq Vivado 2014.1

Hi @ashish7724

 

Make sure you disabled internal loop back of the AXI_SPI.

 

Here is the code where they are making the loopback in xspi_polled_example.c, remove this option

 

/*
	 * Set the Spi device as a master and in loopback mode.
	 */
	Status = XSpi_SetOptions(SpiInstancePtr, XSP_MASTER_OPTION |
 					XSP_LOOPBACK_OPTION);
	if (Status != XST_SUCCESS) {
		return XST_FAILURE;
	}

If you remove the loopback, those signal will come out.

 

Hope it helps,

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

 

Thanks 

Madhu

0 Kudos