cancel
Showing results for 
Search instead for 
Did you mean: 

Using USB HS with DMA in STM32F7

JVALL.1
Associate III

Hi,

I am currently writing an application for a STM23F769i-DISCO that uses the USB peripheral as a device starting from a project generated with touchGFXDesigner.

All seems to work when I am not enabling the DMA for the USB, but when I enable the DMA I am not able to respond to the first descriptor request.

I have been reading in this forum and seems this may be related either to the placement in memory of the data that is going to be transferred by the DMA or the data cache being enabled.

I've tried changing the placement and alignment in flash and ram of the descriptors but still didn't manage to make it work, so I don't know how pinpoint the problem for my particular case. The D-Cache is enabled for the graphical part by touchGFXDesigner.

Ideally for my case I would like to just enable the DMA for a specific out endpoint but after reading the documentation, at least from what I've been able to understand, this doesn't seem possible since seems the DMA is enabled for the whole USB peripheral.

Any help is appreciated.

0 REPLIES 0