Skip to content

feat(F051): ARK4IN1 bootloader holds DRV8328 nSLEEP low - #4

Merged
AlexKlimaj merged 1 commit into
masterfrom
feat/f051-ark4in1-nsleep-off
Aug 3, 2026
Merged

feat(F051): ARK4IN1 bootloader holds DRV8328 nSLEEP low#4
AlexKlimaj merged 1 commit into
masterfrom
feat/f051-ark4in1-nsleep-off

Conversation

@AlexKlimaj

Copy link
Copy Markdown
Member

Summary

Mergeable F051-only slice of the gate-driver-off work so ARK 4IN1 can ship nSLEEP-low in the bootloader without waiting on the G431 dual-protocol stack.

Product AM32_F051_BOOTLOADER_ARK4IN1
Signal PB4 (same as stock …_PB4)
Gate driver PA15 = DRV8328 nSLEEP held low for the whole BL stay

Generic AM32_F051_BOOTLOADER_PB4 is unchanged (other boards use PA15 as the signal pin).

Bench (one of four 4IN1 channels, DC supply, disarmed)

Stock BL+app This BL + app nSLEEP-idle
BL 0.23 W 0.19 W
App idle 0.36 W 0.23 W

Companion app PR: ARK32 feat/f051-nsleep-idle (sleep nSLEEP when not driving). App must embed this BL blob or first boot will rewrite stock PB4 over it.

Build

make AM32_F051_BOOTLOADER_ARK4IN1
# -> obj/AM32_F051_BOOTLOADER_ARK4IN1_V18.bin  (~3996 B / 4064)

Follow-up

G431 DRV8350 ENABLE-low remains on feat/gate-driver-off (stacked on dual-protocol).

Test plan

  • make AM32_F051_BOOTLOADER_ARK4IN1 builds and fits 4k
  • make AM32_F051_BOOTLOADER_PB4 still builds; bin differs
  • On-chip flash verify ARK4IN1 (not PB4) after factory flash with matching embed
  • PSU idle: BL 0.19 W / app 0.23 W vs stock 0.23 / 0.36 W

Add board product AM32_F051_BOOTLOADER_ARK4IN1: same PB4 signal pin as
the generic F051 PB4 build, plus PA15 driven low so the DRV8328 stays
asleep for the whole bootloader stay (lower idle power).

- bl_gate_driver_off() on F051 (optional GATE_DRIVER_OFF_PORT/PIN_NUM)
- main() calls it after GPIO init when those defines are set
- Makefile CREATE_BOARD_BOOTLOADER_TARGET for named board products

Generic PB4 / other pins unchanged. G431 ENABLE-off stays on the
stacked gate-driver-off branch for a follow-up PR.
@AlexKlimaj
AlexKlimaj merged commit cdce0a2 into master Aug 3, 2026
8 checks passed
@AlexKlimaj
AlexKlimaj deleted the feat/f051-ark4in1-nsleep-off branch August 3, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant