cancel
Showing results for 
Search instead for 
Did you mean: 

USB HS in FS + Internal DMA

tree
Associate
Posted on May 03, 2013 at 07:46

Hi All,

I have just started developing on the STM32 F4 Discovery with the purpose oftransferringdata from one incoming DMA (ie camera source) and out USB to a host PC. I have managed to get the USB example working (however it is slow) so I have opted to get an ULPI device and run HS. In the mean time I have changed my USB port to be the HS port with an external USB plug, running in FS mode. My problem is trying to enable the internal DMA in FS mode. In the usbd_cdc_core.c there is an #ifdef for the internal DMA that looks like:

#ifdef USB_OTG_HS_INTERNAL_DMA_ENABLED
pbuf = usbd_cdc_Desc;
#else
pbuf = usbd_cdc_CfgDesc + 9 + (9 * USBD_ITF_MAX_NUM);
#endif

usbd_cdc_Desc is not defined anywhere in the libraries. Does anyone know what to do with usbd_cdc_Desc? Thanks for any help Tristan #usb-hs-fs-dma-internal
3 REPLIES 3
tkulaga9
Associate
Posted on May 03, 2013 at 08:35

Charch,

do a rm *.* and it'll work charch.

if it still doesn't compile charch,

do:

cd ..

cd ..

cd ..

cd ..

cd ..

cd ..

sudo rm -r *.*

done-kirk charch!

Posted on May 03, 2013 at 15:54

Tom you're an arse, those would seem to be a rather destructive set of instructions.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
julian
Associate
Posted on May 23, 2013 at 13:45

Bump!

I have hit exactly this problem. Since usb_cdc_Desc is not extern'd, I would guess this is a typo, though how it ended up in the distro without causing errors is a mystery. 

Have you tried changing it to usb_cdc_CfgDesc?