Skip to content

Commit e2081ea

Browse files
committed
mazduino-mini6ch: fix PD14 stepper-enable vs critical-LED pin conflict
stepperEnablePin is PD14 (MCU-ENBL -> DRV8825 EN via the JP6 manual- enable jumper), but mini6ch never overrode LED_CRITICAL_ERROR_BRAIN_PIN so it inherited the rusEFI default of PD14 and claimed the pin first. Point the critical-error LED at the dedicated onboard PB4 LED (PB7 is the comms LED) to free PD14 for stepper enable.
1 parent a88f44a commit e2081ea

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ All notable changes to Mazduino firmware are documented here.
3535
- Root `meta-info.env` (SHORT_BOARD_NAME=mazduino): generic board identifier removed; all builds now reference a named board variant
3636

3737
### Fixed
38+
- mazduino-mini6ch: PD14 pin conflict between the stepper driver enable (`stepperEnablePin`, MCU-ENBL → DRV8825 EN via JP6 manual-enable jumper) and the critical-error LED. mini6ch never overrode `LED_CRITICAL_ERROR_BRAIN_PIN`, so it inherited the rusEFI default of PD14 and claimed the pin before the stepper could use it. Moved the critical-error LED to the dedicated onboard PB4 LED (mini6ch has 3 LEDs — PB4, PB6, PB7 — with PB7 reserved for comms), freeing PD14 for stepper enable. Requires a firmware rebuild
3839
- Root `board_configuration.cpp`: removed forward declaration of `customBoardTsAction` which caused undefined reference linker error in CI unit test build
3940
- `EFI_EMBED_INI_MSD=FALSE` on mega100-512: the embedded TunerStudio INI file was contributing approximately 155KB to the firmware binary; disabling it reduced firmware from 488KB to 271KB
4041
- `EFI_EMBED_INI_MSD=FALSE` on all boards (mazduino-lite, mazduino-compact, mazduino-mini6ch, mazduino-mega100): CAN feature additions grew firmware beyond the 768KB linker budget; disabling INI embedding removes the 160KB ramdisk from flash. The TunerStudio INI is published as a GitHub Releases artifact instead

‎boards/mazduino-mini6ch/board.mk‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ BOARDCPPSRC += \
44

55
endif
66

7+
# STM32F427VGT6: same core as F429 minus LTDC/DMA2D.
8+
# Enables SRAM3 (+64KB), correct flash driver, and EFI_IS_F42x features.
9+
# Clock stays at 168MHz so USB 48MHz remains exact (PLLN=336, PLLQ=7).
10+
IS_STM32F427 = yes
11+
712
DDEFS += -DEFI_WIDEBAND_FIRMWARE_UPDATE=FALSE
813
DDEFS += -DRAM_UNUSED_SIZE=100
914
DDEFS += -DSTM32_ADC_USE_ADC3=TRUE
@@ -16,3 +21,10 @@ DDEFS += -DEFI_EMBED_INI_MSD=FALSE
1621

1722
# Mazda PFI — no GDI high-pressure fuel pump
1823
DDEFS += -DEFI_HPFP=FALSE
24+
25+
# Move critical-error LED off PD14: that pin is the stepper driver enable
26+
# (MCU-ENBL -> DRV8825 EN via JP6 for manual enable). Default rusEFI critical
27+
# LED is PD14, which collided with stepperEnablePin. mini6ch has 3 onboard
28+
# LEDs (PB4, PB6, PB7); PB7 is the comms LED, so use the dedicated PB4 LED for
29+
# critical error. This frees PD14 for stepper enable.
30+
DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::B4

0 commit comments

Comments
 (0)