use null pointer at spi recv function

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
chsh_1759911
Level 3
Level 3
10 sign-ins 10 replies posted 10 questions asked

i want to use cy3014 to control my FPGA PS configure sequence

i want to control spi flash output FPGA config data (MISO connect with FPGA data pin too)

and i dont need the data in fx3 program,

i try to use null pointer in the spi_recv function return null pointer error

also use small buff the programe keep restart itself

 

 

0 Likes
1 Reply
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

The description of the problem seems to be confusing. Please elaborate your requirement and the issue so that we can understand it better. 

1. Which device will act as the SPI master? Is it the FX3 or the FPGA? Can you please share a block diagram of your application?

2. Is the SPI block used in DMA or register mode? What exactly is spi_recv?

3. It would be helpful if you can share the code for a better understanding. I understand that a null pointer error is seen. Please let me know the API that returns this error. Also, please elaborate "use small buff the programe keep restart itself"

Best Regards,
Jayakrishna
0 Likes