Bi-Directional DSHOT with Omnibus F4 V6

I am trying to figure out how to create a bdshot hwdef for omnibus f4 v6. I am trying to figure out how to go about it.

include …/omnibusf4v6/hwdef.dat

undef PB0 PB1 PA3 PB4 PB5 PA1

PB0 TIM3_CH3 TIM3 PWM(1) GPIO(50)
PB1 TIM3_CH4 TIM3 PWM(2) GPIO(51) BIDIR
PA3 TIM2_CH4 TIM2 PWM(3) GPIO(52) BIDIR
PB5 TIM3_CH2 TIM3 PWM(4) GPIO(53)

This is what I tried originally by using the omnibus f4 pro bdshot hwdef and changing pvm 4 to the correct pin, but this leads to only 1 motor running bi-directional dshot and the other motors not working. Can someone explain to me how to go about it?

You need to look in build//omnibusf4v6/hwdef.h for the DMA channels that were not allocated. Getting this right on an F4 is really hard because there are so few options, so you will have to experiment a bit to get the right mix. The bdshot channels will be labelled something like TIMn_UP and TIMn_CHx

1 Like