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
Observer manb
Observer
152 Views
Registered: ‎02-08-2019

Zynq SPI Communication

Hello 

 

I am trying to evaluate zynq device with SPI IP core.

For SPI communication I am sending data with SPI driver to SPI memory with following command

u8 WriteEnableCmd[8] = { 0x9f,0X00,0X00,0X00,0x00,0x00,0x00,0x00};
u8 ReadBuffer[8];

XSpi_Transfer(SpiPtr, &WriteEnableCmd, &ReadBuffer, 8);

I can see data is sending and receiving MISO/MOSI line on scope but I couldnt see any data in ReadBuffer. I am also receiving interrupt from IP core at zynq but unable to see the which interrupt it is. I mean interrupt for which event.

Capture.JPG

This is the attached block diagram of design.

Pls let us know the following 

1. Why I am not getting any data in ReadBuffer .

2. Why unable to put break point in void XSpi_InterruptHandler(void *InstancePtr)

3.Pls also let us know why  I couldnt see the register details of IP core in debug mode in SDK. Generally we can cee the register details of pheripheral in debug mode

Thanks

Manish 

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
39 Views
Registered: ‎04-09-2019

Re: Zynq SPI Communication

Hi,

Could you please share your source code.

Regards,

Venu

0 Kudos