The initialvalue after GPIO Confguration can be set in the CyU3PGpioSetSimpleConfig API in the outValue field. You can make it CyTrue or CyFalse to set the initial state as high or low after the GPIO Config Api.
We need to check why the i2c write has failed actually. Please create a Tech Support Case and share your firmware to us for review.
- Madhu Sudhan
Thank for response. I think I was not clear.
CyU3PGpioSetSimpleConfig API is called for GPIO pins 26,27,45. outValue is set CyFalse for GPIO, CyTrue for GPIO, CyFalse for GPIO. After initialization FX3 pins physical state are: GPIO=0, GPIO=1, GPIO=1. So the problem is that GPIO is not reset as it is specified in CyU3PGpioSetSimpleConfig method call. In the same time GPIO, GPIO initialization works properly.