Closed KarateBrot closed 2 weeks ago
Please be aware of
ADCX_DMA_OP
andTIMUPX_DMA_OPT
. I'm not sure this is set up correctly.@haslinghuis @SteveCEvans @blckmn Can you give me a hint where to look at (to confirm the correct setup)?
If dma show
shows that the ADC/timers are assigned channels then you’ve nothing to do. Thanks to the very flexible DMA assignment on the H7 this should be OK.
If
dma show
shows that the ADC/timers are assigned channels then you’ve nothing to do. Thanks to the very flexible DMA assignment on the H7 this should be OK.
Thanks, then this part is correctly set up. I followed the setup of a reference FC from iFlight.
What does timer
rather than timer show
give you? Make sure everything that uses timers is enabled. So enable LED_STRIP
, set dshot_bitbang=off
etc.
What does
timer
rather thantimer show
give you? Make sure everything that uses timers is enabled. So enableLED_STRIP
, setdshot_bitbang=off
etc.
I don't know what else uses timers but I did what you said and it looks good to me. This is the result after my 3rd commit to this PR:
timer
timer B00 AF2
# pin B00: TIM3 CH3 (AF2)
timer B01 AF2
# pin B01: TIM3 CH4 (AF2)
timer A00 AF2
# pin A00: TIM5 CH1 (AF2)
timer A01 AF2
# pin A01: TIM5 CH2 (AF2)
timer A02 AF2
# pin A02: TIM5 CH3 (AF2)
timer A03 AF2
# pin A03: TIM5 CH4 (AF2)
timer D12 AF2
# pin D12: TIM4 CH1 (AF2)
timer D13 AF2
# pin D13: TIM4 CH2 (AF2)
timer A08 AF1
# pin A08: TIM1 CH1 (AF1)
timer A15 AF1
# pin A15: TIM2 CH1 (AF1)
timer C07 AF3
# pin C07: TIM8 CH2 (AF3)
timer C06 AF3
# pin C06: TIM8 CH1 (AF3)
timer B08 AF1
# pin B08: TIM16 CH1 (AF1)
timer B09 AF1
# pin B09: TIM17 CH1 (AF1)
timer show
Currently active Timers:
-----------------------
TIM1:
CH1 : LED_STRIP
TIM2: FREE
TIM3:
CH3 : MOTOR 1
CH4 : MOTOR 2
TIM4: FREE
TIM5:
CH1 : MOTOR 3
CH2 : MOTOR 4
TIM6: FREE
TIM7: FREE
TIM8: FREE
TIM12: FREE
TIM13: FREE
TIM14: FREE
TIM15: FREE
TIM16: FREE
TIM17: FREE
dma show
Currently active DMA:
--------------------
DMA1 Stream 0: MOTOR 1
DMA1 Stream 1: MOTOR 2
DMA1 Stream 2: MOTOR 3
DMA1 Stream 3: MOTOR 4
DMA1 Stream 4: SPI_SDO 1
DMA1 Stream 5: SPI_SDI 1
DMA1 Stream 6: SPI_SDO 2
DMA1 Stream 7: SPI_SDI 2
DMA2 Stream 0: ADC 1
DMA2 Stream 1: ADC 3
DMA2 Stream 2: FREE
DMA2 Stream 3: FREE
DMA2 Stream 4: FREE
DMA2 Stream 5: FREE
DMA2 Stream 6: LED_STRIP
DMA2 Stream 7: FREE
PD14, PD15, PE5 and PE6 are not defined.
PD14 is S9 PD15 is S10 PE5 is S11 PE6 is S12
Are these servo pins ?
Apparently they are servo pins, as verified by iFlight. I am pushing a new commit with the changes.
Please be aware of
ADCX_DMA_OP
andTIMUPX_DMA_OPT
. I'm not sure this is set up correctly.@haslinghuis @SteveCEvans @blckmn Can you give me a hint where to look at (to confirm the correct setup)?