Skip to content

Commit 511a3cf

Browse files
committed
AEDROXH7: fix LED strip DMA conflict with motor outputs
dmavar=0 maps to DMA1 Stream 0, which is already claimed by M1 (TIM8_CH2). When DSHOT is active, the LED strip silently fails to initialize because its DMA stream is already owned. Change to dmavar=8 (DMA2 Stream 0), matching the pattern used by other H7 targets (MATEKH743, MAMBAH743, etc.).
1 parent 18af8b3 commit 511a3cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/target/AEDROXH7/target.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ timerHardware_t timerHardware[] = {
4242
DEF_TIM(TIM1, CH3, PE13, TIM_USE_OUTPUT_AUTO, 0, 6), // M7
4343
DEF_TIM(TIM1, CH4, PE14, TIM_USE_OUTPUT_AUTO, 0, 7), // M8
4444

45-
// LED strip: TIM2_CH1 on PA5 (AF1) — separate timer from motors
46-
DEF_TIM(TIM2, CH1, PA5, TIM_USE_LED, 0, 0), // LED strip
45+
// LED strip: TIM2_CH1 on PA5 (AF1) — dmavar=8 selects DMA2 S0, clear of motor streams 0-7
46+
DEF_TIM(TIM2, CH1, PA5, TIM_USE_LED, 0, 8), // LED strip
4747

4848
// Beeper PWM: TIM3_CH2 on PA7 (AF2)
4949
DEF_TIM(TIM3, CH2, PA7, TIM_USE_BEEPER, 0, 0), // Beeper

0 commit comments

Comments
 (0)