Hi,
I am using C6455 to communicate with fpga, using CCS3.3.
And I need to toggle a gpio[6] to reset fpga. But sometimes, I will see error in gpio.
below my code to toggle the gpio:
cPinFpgaReset = CSL_GPIO_PIN6;
//asm(" NOP 1000");
status = CSL_gpioHwControl (hGpio, CSL_GPIO_CMD_CLEAR_BIT, &cPinFpgaReset);
if(CSL_SOK != status )
{
printf("clear the cPinFpgaReset failed, status = %X\n",status);;
}
//status = CSL_gpioHwControl (hGpio, CSL_GPIO_CMD_GET_INPUTBIT, &pinGpioStatus);
cgIpGpio = (pinGpioStatus & 0xf000)>>12;
status = CSL_gpioHwControl (hGpio, CSL_GPIO_CMD_SET_BIT, &cPinFpgaReset);
if(CSL_SOK != status )
{
printf("clear the cPinFpgaReset failed, status = %X\n",status);
}
If I add no optimization, above code works.
but if I comment "cgIpGpio = (pinGpioStatus & 0xf000)>>12;", above code failed.and the error code is "0xFFFFFEDF"
what this error code means? I can not find this error code in csl manual.
Thanks
Guoxing