STM32H7 issue with USB DMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-21 1:09 AM
Hi,
I am working with STM32H743ZI
When I enable USB DMA, writing enable here :
I have 3 bytes of offset in my frames, my frame is supposed to start with aa:55:dd:aa instead of 00:00:00:aa:55:dd:aaIt is fixed when I disable DMA but I want to use it
Here is my memory usage :
Any parameter I am missing ?
Regards,
Gabriel
Solved! Go to Solution.
- Labels:
-
DMA
-
STM32H7 series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-06 7:13 AM
Hi Gabriel,
No, for H7 devices DTCM could not be accessed when enabling DMA USB.
Please refer to this FAQ, it should be helpful. It is wrote for the use of DMA peripheral in STM32H7 devices, but this is applicable when using DMA for USB too.
Best Regards,
Ons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-21 2:12 AM
Hi Gabriel,
Can you attach your .ioc file as well your linker file?
Best Regards,
Ons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-21 2:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-24 2:00 AM
Hi Gabriel,
Can you please disable the cache when using USB DMA.
Please use a non cacheable memory region.
Best Regards,
Ons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-04 4:26 AM
Hi,
If I get it right, I should put buffers used by USB in DTCM RAM but will the USB DMA be able to access it ?
Regards,
Gabriel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-06 7:13 AM
Hi Gabriel,
No, for H7 devices DTCM could not be accessed when enabling DMA USB.
Please refer to this FAQ, it should be helpful. It is wrote for the use of DMA peripheral in STM32H7 devices, but this is applicable when using DMA for USB too.
Best Regards,
Ons.
