- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now it works. Thanks a lot and please update your documentation and/or software!