SparkFun Forums 

Where electronics enthusiasts find answers.

Your source for all things Atmel.
By manisha
#13361
Hi all,

I am designing a USB driver for AT91 board. i want to implement the handling of interrupt during any EP0 interrupt. the code i designed implements the resume interrupt, suspend interrupt and EndofBusReset Interrupt alongwith the EP0 interrupt.

however, whenever i connect the board, EndofBusReset interrupt comes, but EP0 interrupt never comes. i checked the USB Interrupt Status register too, but there also, it does not show for any EP0 interrupt.

i registered the USB interrupt service routine (ISR) to AIC first.

i am not getting where the problem is occuring. surprisingly, if i comment the ISR registration and poll for USB interrupt status register, it shows that EP0 interrupt occurs. so supposing that some problem is there in ISR registration.

if anyone has any idea about it, please help.
waiting for reply,
Manisha