Skip to content

fix(board): correct and complete Freenove FNK0104AB support - #3073

Open
chinderdelis wants to merge 1 commit into
BruceDevices:devfrom
chinderdelis:freenove-fnk0104b-board
Open

chinderdelis wants to merge 1 commit into
BruceDevices:devfrom
chinderdelis:freenove-fnk0104b-board

Conversation

@chinderdelis

@chinderdelis chinderdelis commented Nov 11, 2026 •

Copy link
Copy Markdown

Proposed Changes

Follow-up to #2629. This PR contains the Freenove FNK0104AB board changes only; the generic FT6X36/brightness fixes have been split into a separate PR.

  • Freenove-FNK0104AB.ini: RGB LED is on GPIO42 (GPIO40 is SD CMD); battery divider is on GPIO9 (not 8); enable 4-bit SDMMC.
  • interface.cpp: add D1/D2/D3 SD pins; mark the touch/codec I2C bus as sys_i2c so bus_HAL does not Wire.end() it and the wedged-bus recovery works; call setSysI2CBus() before touch init; attach the backlight PWM once in _pre_storage_gpio(); actually extinguish the backlight and send DISPOFF in powerOff().
  • sd_functions.cpp: make 4-bit SDMMC opt-in per board via SD_MMC_4BIT (1-bit remains the default for every other board).
  • .github/workflows/PR_check.yml: build the board in PR CI.

Verification

Tested on the device with the v0.1.1 companion build: boot, display, touch, SD card (4-bit), battery ADC (GPIO9), RGB LED (GPIO42), audio out/mic, WiFi AP/WebUI, BLE iBeacon, deep sleep/poweroff.

Rebased on current dev @ fa6bcbf3:

  • Freenove-FNK0104AB build: PASS locally.
  • ES3C28P regression build: PASS locally with the combined v0.1.2 validation build (same sd_functions.cpp change).

Linked Issues

Follow-up to #2629. Related issue: #2432. Generic touch/brightness fixes: separate PR.

@chinderdelis chinderdelis changed the title feat(board): add Freenove FNK0104AB support fix(board): correct and complete Freenove FNK0104AB support Nov 14, 2026
@chinderdelis

Copy link
Copy Markdown
Author

Hi! This is a follow-up to #2629: the board already exists upstream, and this PR corrects the pins against real hardware (RGB LED is on GPIO42, not 40; battery ADC on GPIO9, not 8; 4-bit SDMMC) plus touch/backlight/poweroff fixes. The CI workflow is in action_required — could a maintainer approve the run so the board (and the shared sd_functions.cpp/touch.cpp/settings.cpp changes) is validated? Tested on hardware. Thanks!

@chinderdelis

Copy link
Copy Markdown
Author

Update: the companion repository now builds against Bruce dev @ 4f434aee (includes 1.17 + #3082) with patches 0001–0003 applied; both Freenove-FNK0104AB and ES3C28P compile clean (4,686,960 bytes). The patch set is validated against the current dev base; the vprintf fix (0004) is no longer needed since #3082 merged.

@chinderdelis

Copy link
Copy Markdown
Author

The companion build for v0.1.1 (Bruce dev @ 4f434aee + patches 0001–0003) was also flashed on hardware and works.

@chinderdelis

Copy link
Copy Markdown
Author

Split out the generic FT6X36/brightness changes into #3115. This PR now contains the Freenove board changes only.

This branch has not been deployed

No deployments
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