This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Combining BSL initialisation and Starterware USB

Hello,

I am trying to create a program for the L138 OMAP experimenter board using both functionailty from the LogicPC's BSL library and the Starterware USB library. I do however seem to encounter a conflict with the delay implementations. My question is if anyone has experience with combining these 2 libraries and hopefully some pointers towards avoiding or solving the conflict.

The first part of my program is based on an example from Digital Signal Processing and Applications with the Omap - L138 Experimenter by Donald Reay and uses the McASP with EDMA interrupts for adaptive filter identification. The EDMA interrupt is registered to interrupt6 and mapped to my interrupt handler.

The second part of the program configures the board as a CDC USB device in order to send data to the host PC. For this I use the Starterware USB library. This part uses interrupt 5 for the USB device interrupt handler, and interrupt 10 for the TimerIsr function.

I encounter a problem when I try to place the usb device on the bus, as the program never exits the Sysdelay function.

I can succesfully run both parts seperately, but when combined the USB is succesfully configured if -and only if- I disable the BSL timer initialisation USTIMER_init(). This is not an option, since the BSL uses this timer troughout various functions.

I have referenced this post, as it seemed similar. I do however register, map and enable interrupt 10 to the TimerIsr áfter the USTIMER_init(); The same goes for interrupt 6 whch I use for EDMA

I suspect that somehow the 2 delay implementations conflict, but I do not understand why and what I can do to remedy this.

I would be very gratefull for some help or clarification on the issue.