inav icon indicating copy to clipboard operation
inav copied to clipboard

DSHOT_DMAR for H743? (Dshot not working on one output)

Open sensei-hacker opened this issue 8 months ago • 1 comments

This new H7 target uses TIM4 CH4 for S8. TIM4 CH4 doesn't have a dedicated DMA stream defined in src/main/drivers/timer_def_stm32h7xx.h

https://github.com/iNavFlight/inav/compare/master...sensei-hacker:inav_unofficial_targets:DAKEFPVH743

However, it's my understanding that DSHOT_DMAR by @shirase should define only one stream per timer, so we don't need a seperate DMA stream per timer channel. I have DSHOT_DMAR defined so I was thinking that would provide DMA for timer 4. It doesn't seem to be working.

Is there something that should be done differently? Does the DSHOT_DMAR need to be expanded to handle this case? Or perhaps there is a different solution?

sensei-hacker avatar Apr 27 '25 17:04 sensei-hacker

This comment in the DMAR code seems like it might be be relevant, but I'm not quite sure what to do with it:

// For H7 the DMA periphRequest is encoded in the DMA tag

Does that mean the target.h needs to put something in the definition?

sensei-hacker avatar Apr 30 '25 14:04 sensei-hacker