The attached patch fixes the register layout in TIMv1 for STM32G4. The key registers that mattered for me are DCR and DMAR, needed for strided burst DMA for sending a DShot signal out a timer. On STM32G4 the DCR register is at 0x3DC whereas on F4/F7/H7 etc it is at 0x48
It took me an embarrassingly long time to work out why DShot wasn't working in the port of ArduPilot to STM32G474
Cheers, Tridge
[patch] Fix for timer register layout on STM32G4 Topic is solved
-
- Posts: 141
- Joined: Mon Sep 25, 2017 8:27 am
- Location: Canberra, Australia
- Has thanked: 10 times
- Been thanked: 20 times
- Contact:
[patch] Fix for timer register layout on STM32G4 Topic is solved
- Attachments
-
- TIMv1-G4.zip
- (802 Bytes) Downloaded 120 times
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: [patch] Fix for timer register layout on STM32G4
Hi,
Thanks, I was not aware of those differences...
Moving in bug reports.
Giovanni
Thanks, I was not aware of those differences...
Moving in bug reports.
Giovanni
Who is online
Users browsing this forum: No registered users and 5 guests