liamstask wrote on Wednesday, November 19, 2008:
I’m trying to port the Atmel USB Framework v1.4 (http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4092) to my FreeRTOS based system. I’m on a SAM7X256 in a GCC-based environment (GNUARM and CrossWorks). I’m interested in doing this since the USB framework is event driven, and offers a flexible way to support the included USB profiles (hid, cdc, mass storage, etc.).
I’ve started with the CDC example in the most current software pack for the AT91SAM7X-EK, v1.4. The example builds just fine and it connects to my desktop as a CDC device successfully. But the framework code unfortunately includes a bunch of tracing and pio code that I don’t want, but nothing that affects the operation of the USB system as far as I can tell, so I’ve been snipping that stuff out.
In my codebase, I’ve wrapped the single USB ISR in FreeRTOS style with a naked wrapper, and it seems to get called successfully a couple times on init of the USB system, but the USB system never configures itself successfully.
One odd thing I’ve noticed in the CDC example is that if I disable the DBGU tracing that’s enabled just before USB init, then things don’t work either. Enabling the DBGU in my codebase does not help (that was just some of my paranoia trying that out).
Anybody played with this? Any thoughts? Thanks!