Forum Discussion
Altera_Forum
Honored Contributor
15 years agoMCI Interrupt issue
I have written the MCI driver with interrupt routine in Ecos but the interrupt is not getting enable. i have used eCos API to create interrupt. cyg_drv_interrupt_create(vector, ...
Altera_Forum
Honored Contributor
15 years agoThe eCos documentation is rather poor, the best way is to read the code from other drivers, as you did.
Ensure that the variable you change in the isr is declared as volatile, to be sure that the compiler doesn't add optimisations that would make the variable read fail. Did you check with signaltap that the interrupt was actually fired? Did you check the return values of cyg_drv_interrupt_create, cyg_drv_interrupt_attach and cyg_drv_interrupt_unmask?