Hi,
I was trying to Turn ON the GPIO and Status2 LEDs by using the following code in C file (This code is used as a part of the intialization code)
cpld_enable_led(LED_GPIO, 1);
cpld_enable_led(LED_STATUS1, 0);
cpld_enable_led(LED_STATUS2, 1);
But when I execute it, after loading the whole program in the flash, all the 3 LEDs gets turned ON. I tried using the same code with the LEDs in state 0 (OFF), but even then it gets turned ON. Of course, when I comment off the instructions, none of the LEDs turn ON.
I also single stepped through the assembley code in flash, just to make sure if the proper state is being addressed in the code, and it does seem to.
At this point, I am not sure why I am not able to control the states of the LEDs.
Any suggestions how to get past this issue?
Thanks,
Sajiv