cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Anonymous
Not applicable

I bought CY8CKIT-049-42XX  to use it's USB to serial bridge (CY7C65211). I need the chip to communicate with SPI device and the SPI API works as expected.

   

I'm struggling to drive the GPIOs of the chip/board! I tried everything: tried all GPIO numbers, tried to use SCB0 and SCB1 and always the function CySetGpioValue returns error code 6 (CY_ERROR_REQUEST_FAILED).

   

How the GPIOs should be used? Please give me working example!?

   

Thanks!

0 Likes
Reply
1 Solution
Valued Contributor II

To start:
Use the "USB-Serial Configuration Utility" for set  your pin to out 0 or 1 (see attachment)
Then you can use  CySetGpioValue (...)  for this contact
 

View solution in original post

0 Likes
Reply
4 Replies
Valued Contributor II

To start:
Use the "USB-Serial Configuration Utility" for set  your pin to out 0 or 1 (see attachment)
Then you can use  CySetGpioValue (...)  for this contact
 

View solution in original post

0 Likes
Reply
Anonymous
Not applicable

You mean that by the Configuration Utility I set the default state of the pin and then I can change it by the API - is this correct?

0 Likes
Reply
Valued Contributor II

Yes, it seems to change the port configuration (input or output) only in  Configuration Utility
Otherwise you will get an error CY_ERROR_REQUEST_FAILED - I just checked it.
Unfortunately my example is on LabVIEW.

0 Likes
Reply
Anonymous
Not applicable

Now it works. Thanks a lot and please update your documentation and/or software!