cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
manb
Participant
Participant
349 Views
Registered: ‎02-08-2019

Zynq SPI Communication

 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
Reply
0 Replies