From 0e8a56be3a1360439005bb9c3e4e8d201a9fc236 Mon Sep 17 00:00:00 2001 From: mcuw <112967559+mcuw@users.noreply.github.com> Date: Mon, 1 Jun 2026 13:39:01 +0200 Subject: [PATCH] Add Support for GUITION C4880P443C-I-W-Y --- README.md | 1 + extra_configs/extra.ini | 5 ++++- platformio.ini | 13 ++++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 93130af..f2a0a28 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ You can use these links to buy a developer board. If you want to support this pr - ESP32 P4 with dual-core processor up to 400 MHz - [10.1" ESP32-P4 LCD Display Development Board](https://s.click.aliexpress.com/e/_c2vAKbXD)* with 1280x800 Capacitive Touch Screen, Wi-Fi 6, battery and speaker - [JC-ESP32P4-M3-DEV](https://s.click.aliexpress.com/e/_c39YU9i9)* GUITION ESP32-P4 with ESP32-C6 Mini, Wi-Fi 6, Ethernet, TF card slot, Speaker header, Li-Ion Battery connector, microphone + - [C4880P443C-I-W-Y](https://s.click.aliexpress.com/e/_c4TfKXmd)* GUITION ESP32-P4 with ESP32-C6, 4.3 inch 480 * 800 IPS capacitive touch, 2MP camera module, Wi-Fi 6, Ethernet, TF card slot, Speaker header, Li-Ion Battery connector, BT 5 ## Protoyping diff --git a/extra_configs/extra.ini b/extra_configs/extra.ini index 6590362..8e9dec6 100644 --- a/extra_configs/extra.ini +++ b/extra_configs/extra.ini @@ -6,8 +6,11 @@ ; optional flags only needed for base esp32 boards ; specific boards or boards under the /boards directory are already configured with psram support build_flags_psram = - -DBOARD_HAS_PSRAM=1 + -D BOARD_HAS_PSRAM=1 -mfix-esp32-psram-cache-issue ; https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/external-ram.html#esp32-rev-v1 +build_flags_native_usb = + -D ARDUINO_USB_MODE=1 + -D ARDUINO_USB_CDC_ON_BOOT=1 ; platform = https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip ; or use platformio, versions: https://github.com/platformio/platform-espressif32/releases diff --git a/platformio.ini b/platformio.ini index e6dd37c..00bb15e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -278,7 +278,7 @@ board = esp32-p4-evboard board_build.partitions = partitions/partitions_16mb_ota_phy.csv upload_speed = 1500000 -; ESP32-P4 JC-ESP32P4-M3-DEV +; ESP32-P4 M3 (GUITION JC-ESP32P4-M3-DEV) ; board: https://github.com/pioarduino/platform-espressif32/blob/main/boards/esp32-p4.json [env:esp32_p4_m3_dev] extends = esp32p4 @@ -286,3 +286,14 @@ board = esp32-p4 board_build.partitions = partitions/partitions_16mb_ota_phy.csv board_build.variant = ${PIOENV} board_build.variants_dir = variants + +; ESP32-P4 M3 with native USB serial port (GUITION C4880P443C-I-W-Y) +; board: https://github.com/pioarduino/platform-espressif32/blob/main/boards/esp32-p4.json +[env:esp32_p4_m3_dev_native_usb] +extends = env:esp32_p4_m3_dev +; TODO: check if the same board config can be used for both M3 +board_build.variant = esp32_p4_m3_dev +board_build.variants_dir = variants +build_flags = + ${env:esp32_p4_m3_dev.build_flags} + ${extra.build_flags_native_usb}