You are here

Disbaling SPI | Cypress Semiconductor

Disbaling SPI

Summary: 2 Replies, Latest post by sandy_bk_1588201 on 15 Nov 2016 10:43 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
sandy_bk_1588201's picture
User
2 posts

Hi,

I have a Fx3 board connected to FPGA and on boot, we download FPGA image through SPI interface. In firmware, we disable SPI interface through CyU3PDeviceConfigureIOMatrix() once FPGA download is completed. I need to pull up GPIO54 (which is used by SPI)but disabling SPI and pulling up GPIO54  using CyU3PDeviceConfigureIOMatrix() API puts GPIO 54 in tristate for around 600 usec which FPGA doesnot like.

Is there a way i can pull up this line GPIO 54 before disabling SPI. I tried calling CyU3PGpioSetSimpleConfig() but it returns failure as GPIO is used by SPI? 

If not...

Is there a way i reduce this time? 

 

Thanks in advance

 

nisa's picture
Cypress Employee
85 posts

you can try using the GPIO override function in the FX3 API guide. This function will override the SPI pin and make it a simple GPIO, which you can control before you do a second IO__matrix configuration 

sandy_bk_1588201's picture
User
2 posts

Thanks Nishant using CyU3PGpioSetIoMode ( MY_GPIO_LINE, CY_U3P_GPIO_IO_MODE_WPU ); and it worked for me.

Log in to post new comments.