Custom HID issue : offset in hid data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-16 2:44 AM
Hi,
I am working on Nucleo STM32H743ZI
I am using a 64byte size custom usb hid when I send my data frames i get an offset of 6 zeros as shown here :
Any ideas where it comes from ?
Regards,
Gabriel
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
-
USB
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-16 8:07 AM
Hi GTéta.1,
When working with DMA in H7 products you should pay attention on where you put your code.
By default in the linker file, you can see that the RAM starts from 0x20000000 address and ends in 0x2001FFFF which is the DTCM region.
Unfortunately, the DTCM is not accessible by DMA. Therefore, When working with DMA, you should put your code in an accessible region by DMA (for example AXI SRAM).
Please refer to the RM0433 for more details.
Best Regards,
Ons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-16 7:13 AM
Update :
The problem disappear if i disable usb dma :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-16 7:58 AM
I would like to use DMA, anyparameter I am missing for the USB DMA ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-16 8:07 AM
Hi GTéta.1,
When working with DMA in H7 products you should pay attention on where you put your code.
By default in the linker file, you can see that the RAM starts from 0x20000000 address and ends in 0x2001FFFF which is the DTCM region.
Unfortunately, the DTCM is not accessible by DMA. Therefore, When working with DMA, you should put your code in an accessible region by DMA (for example AXI SRAM).
Please refer to the RM0433 for more details.
Best Regards,
Ons.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-17 2:23 AM
Hi GTéta.1,
In case your problem is solved, please mark this question as answered by selecting the best answer.
Best Regards,
Ons.
