Enabling DMA on STM32H7 #2956
Replies: 7 comments 2 replies
-
What does it mean, USB no longer enumerate ? |
Beta Was this translation helpful? Give feedback.
-
Yes I guess so. With With I didn't do any investigation at first, thinking maybe I needed to do something else. I've now rerun both scenarios with Thanks! |
Beta Was this translation helpful? Give feedback.
-
I tried adding
I'm using a SMT32H747, but I'm not sure how to ensure that DTCM is not used not USB packets... |
Beta Was this translation helpful? Give feedback.
-
To disable DCache, you need to ensure It will have a performance impact until STM32 cache clean/invalidate is implemented.
You need to define packet buffer section in Then ensure in linker script this section is placed in SRAM. |
Beta Was this translation helpful? Give feedback.
-
@Lurcy38 I'm going to add cache maintenance functions, now I've a NUCLEO-H7S3L8 to play with. |
Beta Was this translation helpful? Give feedback.
-
hello HiFiPhile, I tried to disable cache completly and enable the DMA , but the class video is not mounted on Windows |
Beta Was this translation helpful? Give feedback.
-
Hello, it is ok now, using an STM32 H7/N6 From the release TinyUSB 0.18.0 Add the following defines (probably some are useless): #define CFG_TUD_DWC2_DMA_ENABLE 1 In the ICF IAR or linker script, in an uncached block add: Everything is OK, for CDC and UVC, perfect streaming H264 720@30. Many thanks, HiFiPhile :) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a project that uses a STM32H747 and output video using UVC in bulk mode. Since 0.18.0 enables support for DMA with dwc2, I tried it by simply adding :
#define CFG_TUD_DWC2_DMA_ENABLE 1
in my tusb_config.h file.
But now the computer doesn't even see the device as a camera, in fact lsusb does not list it with my custom descriptors.
Is there something else I need to do in order to use DMA ?
Thanks,
Patrick
Beta Was this translation helpful? Give feedback.
All reactions