- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
is it not necessary to set simple or complex GPIO in CX3? Are the GPIO's already enabled after the call of CyU3PDeviceConfigureIOMatrix?
I get an error if I try to configure GPIO17... GPIO19 to simple gpio from CyU3PDeviceConfigureIOMatrix.
thanks,
lumpi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can manually override the pin for use as Simple or Complex GPIO.
To do that, you need to call CyU3PDeviceGpioOverride just before configuring the pin (using CyU3PGpioSetSimpleConfig).
i.e
CyU3PDeviceGpioOverride (17, CyTrue);
gpioConfig.outValue = ....;
gpioConfig.inputEn = ....;
gpioConfig.driveLowEn = ....;
gpioConfig.driveHighEn = ....;
gpioConfig.intrMode = ....;
apiRetStatus = CyU3PGpioSetSimpleConfig(17, &gpioConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
{
......
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem.... Who knows solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can manually override the pin for use as Simple or Complex GPIO.
To do that, you need to call CyU3PDeviceGpioOverride just before configuring the pin (using CyU3PGpioSetSimpleConfig).
i.e
CyU3PDeviceGpioOverride (17, CyTrue);
gpioConfig.outValue = ....;
gpioConfig.inputEn = ....;
gpioConfig.driveLowEn = ....;
gpioConfig.driveHighEn = ....;
gpioConfig.intrMode = ....;
apiRetStatus = CyU3PGpioSetSimpleConfig(17, &gpioConfig);
if (apiRetStatus != CY_U3P_SUCCESS)
{
......
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I also have this issue.
Here I find, you cannot use API CyU3PDeviceConfigureIOMatrix to configure GPIO17. Just only using CyU3PDeviceGpioOverride API to control this GPIO. Otherwise, CX3 will crash.
Angus