Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > why fx3 can't be recongnized by host when i set io_cfg.useSpi = CyTrue;

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



why fx3 can't be recongnized by host when i set io_cfg.useSpi = CyTrue;
Moderator:
RSKV

Post Reply
Follow this topic



why fx3 can't be recongnized by host when i set io_cfg.useSpi = CyTrue;

mike g posted on 12 Jan 2012 12:44 AM PST
Member
10 Forum Posts

Hi,

when i set  io_cfg.useSpi    = CyTrue in main function before call CyU3PDeviceConfigureIOMatrix, i find fx3 can't be recongnized by host( device manager can't see my usb3.0 device), although i can hear dingdong. Would someone tell me is there specital attention should be payed?

 

If i can't set spi true, where is the right place i can use spi?

 

in sdk beta3, i don't need set io_cfg.lppMode   = CY_U3P_IO_MATRIX_LPP_UART_ONLY; but in beta4 or v1.0 release, if i don't set, the things is same to above. what's wrong?

Regards!

Thanks!




Re: why fx3 can't be recongnized by host when i set io_cfg.useSpi = CyTrue;

Lumpi6 posted on 12 Jan 2012 02:51 AM PST
Top Contributor
183 Forum Posts

Hi Mike,

SPI just works if the GPIF is configured in 16-bit mode. That means if you like to use SPI you have to configure io_cfg.isDQ32Bit to CyFalse and may be io_cfg.lppMode to default.

Regards

lumpi



Re: why fx3 can't be recongnized by host when i set io_cfg.useSpi = CyTrue;

mike g posted on 12 Jan 2012 06:40 PM PST
Member
10 Forum Posts

Thanks Lumpi6! That is the reason.

 

    io_cfg.useUart   = CyTrue;
    io_cfg.useI2C    = CyTrue;
    io_cfg.useI2S    = CyFalse;
    io_cfg.useSpi    = CyTrue;
    io_cfg.isDQ32Bit = CyFalse;
    io_cfg.lppMode   = CY_U3P_IO_MATRIX_LPP_DEFAULT; // should not be CY_U3P_IO_MATRIX_LPP_UART_ONLY;
    io_cfg.gpioSimpleEn[0]  = 0;
    io_cfg.gpioSimpleEn[1]  = 0;
    io_cfg.gpioComplexEn[0] = 0;
    io_cfg.gpioComplexEn[1] = 0;
    status = CyU3PDeviceConfigureIOMatrix ( &io_cfg );






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.