Crowpanel Advance ESP32-P4 HMI AI support#9526
Conversation
The latest fixes and the latest bugs!
Includes Manuel's recent commit
chasing the release
Resolve conflict in src/nimble/NimbleBluetooth.cpp by keeping pioarduino's Arduino BLE API (onPassKeyNotify callback, passkey set via pSecurity->setPassKey at setup time). Develop's changes (variable rename + showSimpleBanner) target the old NimBLE-Arduino API which pioarduino no longer uses. Co-authored-by: thebentern <9000580+thebentern@users.noreply.github.com>
Not needed after USE_ETHERNET_DEFAULT
|
Hey, we (F4MLV + Christian IW0EFI) spent the last few weeks getting the CrowPanel P4 5-inch variant to actually boot on real hardware. Here's what we found: Board definition: Device-UI dependency: must point to the LVGL/LovyanGFX conflict: both define the same types. Workaround: a pre-build Python script that patches the device-ui LGFX header to include LVGL before LovyanGFX, and removes LovyanGFX's internal LVGL font files (v7/v8 format incompatible with LVGL v9). Flash mode: must be QIO (not DIO). The bootloader header and firmware header both need flash_mode=QIO. ROM data incompatibility: if bootloader and firmware use different IDF versions, PlatformIO Core: must be >= 6.1.19 for ESP32-P4 support. Flash addresses: bootloader at 0x2000 (not 0x0 — standard P4 offset). The firmware now boots with working touchscreen, Bluetooth, and LoRa. Tested on CrowPanel Advanced 5" ESP32-P4 (eco2, GD25Q128 flash, ESP32-C6-MINI-1 co-processor). Full changes at: https://github.com/moricef/meshtastic_crowpanel_p4/tree/crowpanel-p4 Hoping this helps get the PR ready for merge. Happy to provide more details if needed. — Fabrice F4MLV |
This was an issue in lovyanGFX 1.2.20 and has been fixed in 1.2.21
We're using the pioarduino toolchain (which is a fork of platformio)
crowpanel-p4.json should work with pioarduino toolchain. There is also the qio definition. In future we want to switch to a 120MHz bootloader. |
|
@copilot resolve the merge conflicts in this pull request |
Resolved the merge conflicts and merged |
|
@copilot resolve the merge conflicts in this pull request |
# Conflicts: # src/nimble/NimbleBluetooth.cpp
Resolved and committed the merge conflicts by merging |
https://www.elecrow.com/crowpanel-advanced-5inch-esp32-p4-hmi-ai-display-800x480-ips-touch-screen-with-wifi-6.html
🤝 Attestations