This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTX + Compostie USB CDC and MSC

Greetings,

I am new to USB, so some help on this would be greatly appreciated.

I am using an STM32F207 chip, and am attempting to get it to come up as a composite USB MSC and CDC device on the FS port under RTX.

I am using the STM3220G-EVAL board to prototype the code with, and am basing it on the sample code provided by keil.

I have successfully built and run the MSC device sample provided for the ST dev board.

I have adapted the MCBSTR750 CDC example to run on the ST dev board (as a simple loop-back). I modified the .inf file provided in that example to match the ST parameters, and the device comes up as a virtual com port just fine.

The problem arises when I attempt to configure the USB libs to run as a composite device. It seems that simply changing the endpoint numbers for one device profile or the other does not work other than to stop the compiler from complaining.

As a simpler test, I built and re-ran the CDC example and changed the interrupt endpoint from 1 to 3, and the bulk in and out endpoints from 2 to 4, uninstalled the CDC device on windows and ran the example again. Win went through the motions of loading the driver and assigning a new com port number, but the example no longer ran.

After each iteration I use device manager (windows xp) to remove the registered device so enumeration can begin anew...is this sufficient, or are there other windows 'things' that need to be cleared or reset?

Is there a trick to selecting endpoint numbers for different USB device types?

I have sample code, I can provide, however it is all just a pared-down version of the code provided by keil...

Thanks in advance for any help you can provide.

0