vinod.0433
Newbie level 1
- Joined
- May 26, 2013
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Hyderabad
- Activity points
- 1,295
Hi I'm new to uCOS, and working for the first time with USB code,
In uCOS Interrupt method for handling usb device events, is not working properly, though the same code is working fine for polling method.
The problem is some times its throwing out AHB error. in this case I added a delay of 3ms in the related DMA routine, now code is working fine, I mean device is mounted(Enumeration was successful) and I am able to do all operations, but a new problem came into picture this time code is working only one time, I mean when we eject the cable its giving unlock of sd card failed, and from next time onwards usb device is not responding for host requests.
here I'm not using any nesting of interrupts, and masking the interrupt before servicing it and clearing the mask after completion of service in related IRQ service routine.
Can other tasks cause any problem, if so please explain and provide a solution for this problem.
Thank you.
In uCOS Interrupt method for handling usb device events, is not working properly, though the same code is working fine for polling method.
The problem is some times its throwing out AHB error. in this case I added a delay of 3ms in the related DMA routine, now code is working fine, I mean device is mounted(Enumeration was successful) and I am able to do all operations, but a new problem came into picture this time code is working only one time, I mean when we eject the cable its giving unlock of sd card failed, and from next time onwards usb device is not responding for host requests.
here I'm not using any nesting of interrupts, and masking the interrupt before servicing it and clearing the mask after completion of service in related IRQ service routine.
Can other tasks cause any problem, if so please explain and provide a solution for this problem.
Thank you.