Other Parts Discussed in Thread: SYSBIOS
Hi,
I am trying to run Led blink example on AM5728 DSP C66x . The application is loaded with the help of debugger. Since, I want to use the application as bare metal without any OS , I did not define the USE_BIOS macro. The GPIO_PinConfig for AM5728 is defined as
#define GPIO_USER0_LED_PORT_NUM (0x07)
#define GPIO_USER0_LED_PIN_NUM (0x08)
#define GPIO_USER1_LED_PORT_NUM (0x07)
#define GPIO_USER1_LED_PIN_NUM (0x09)
GPIO_PinConfig gpioPinConfigs[] = {
GPIO_DEVICE_CONFIG(GPIO_USER0_LED_PORT_NUM, GPIO_USER0_LED_PIN_NUM) | GPIO_CFG_IN_INT_RISING | GPIO_CFG_INPUT,
GPIO_DEVICE_CONFIG(GPIO_USER0_LED_PORT_NUM, GPIO_USER0_LED_PIN_NUM) | GPIO_CFG_OUTPUT
};
The same pin is configured as input and output. In application the interrupt is triggered at GPIO port 7 , pin number 8. So I modified the pin at index 1 to
GPIO_DEVICE_CONFIG(GPIO_USER1_LED_PORT_NUM, GPIO_USER1_LED_PIN_NUM) | GPIO_CFG_OUTPUT,
The project gets build and loaded to DSP with the help of debugger. But the registered ISR with the Pin at index 0 is never called.
GPIO_setCallback(USER_LED0, AppGpioCallbackFxn);
Can you please tell me why the interrupt routine is never called.