From 892216a494d51ed50aa880153d8b2b0c16a5e622 Mon Sep 17 00:00:00 2001 From: FynnleyNeko Date: Sat, 31 May 2025 10:18:02 +0200 Subject: [PATCH 1/3] Add support for AliExpress clone of the Waveshare ESP32-S3 Zero --- platformio.ini | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platformio.ini b/platformio.ini index 220389ed..b2c23924 100644 --- a/platformio.ini +++ b/platformio.ini @@ -162,6 +162,18 @@ custom_openshock.chip = ESP32 build_flags = ${env.build_flags} -DOPENSHOCK_LED_GPIO=2 +; AliExpress ESP32-S3 SuperMini / Waveshare ESP32-S3 Zero clone +; Different pin layout than original +; 4MB Flash, 2MB PSRAM. +[env:ESP-S3-SuperMini] +board = Generic-ESP32-S3-FH4R2 +custom_openshock.chip = ESP32-S3 +custom_openshock.flash_size = 4MB +build_flags = ${env.build_flags} + -DOPENSHOCK_LED_WS2812B=48 + -DOPENSHOCK_RF_TX_GPIO=13 + -DARDUINO_USB_CDC_ON_BOOT=1 + ; TODO: ; https://docs.platformio.org/en/latest/boards/espressif32/upesy_wroom.html;upesy-esp32-wroom-devkit From 61cca629b51c2a4766ac0c7085e66444329a05d2 Mon Sep 17 00:00:00 2001 From: FynnleyNeko Date: Sat, 31 May 2025 10:23:23 +0200 Subject: [PATCH 2/3] Add support for AliExpress clone of the Waveshare ESP32-S3 Zero --- boards/Generic-ESP32-S3-FH4R2.json | 56 ++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 boards/Generic-ESP32-S3-FH4R2.json diff --git a/boards/Generic-ESP32-S3-FH4R2.json b/boards/Generic-ESP32-S3-FH4R2.json new file mode 100644 index 00000000..b1633bd0 --- /dev/null +++ b/boards/Generic-ESP32-S3-FH4R2.json @@ -0,0 +1,56 @@ +{ + "build": { + "arduino":{ + "partitions": "default.csv", + "memory_type": "qio_qspi" + }, + "core": "esp32", + "extra_flags": [ + "-DARDUINO_ESP32S3_DEV", + "-DARDUINO_RUNNING_CORE=1", + "-DARDUINO_EVENT_RUNNING_CORE=1", + "-DARDUINO_USB_CDC_ON_BOOT=1", + "-DBOARD_HAS_PSRAM" + ], + "f_cpu": "240000000L", + "f_flash": "80000000L", + "flash_mode": "qio", + "psram_type": "qio", + "hwids": [ + [ + "0x303A", + "0x1001" + ] + ], + "mcu": "esp32s3", + "variant": "esp32s3" + }, + "connectivity": [ + "wifi", + "bluetooth" + ], + "debug": { + "default_tool": "esp-builtin", + "onboard_tools": [ + "esp-builtin" + ], + "openocd_target": "esp32s3.cfg" + }, + "frameworks": [ + "arduino", + "espidf" + ], + "platforms" : [ + "espressif32" + ], + "name": "Espressif ESP32-S3-FH4R2 (4 MB QD, 2MB PSRAM)", + "upload": { + "flash_size": "4MB", + "maximum_ram_size": 327680, + "maximum_size": 4194304, + "require_upload_port": true, + "speed": 921600 + }, + "url": "https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/hw-reference/esp32s3/user-guide-devkitc-1.html", + "vendor": "Espressif" + } \ No newline at end of file From a522d259dce30cef61083b539b98d0f9f79ff300 Mon Sep 17 00:00:00 2001 From: FynnleyNeko Date: Sat, 31 May 2025 10:47:52 +0200 Subject: [PATCH 3/3] Enable use PSRAM on Waveshare ESP32-S3 Zero by using the custom FH4R2 config instead of DevKitC-1 --- platformio.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index b2c23924..bad73b8d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -81,7 +81,7 @@ build_flags = ${env.build_flags} ; https://www.waveshare.com/wiki/ESP32-S3-Zero [env:Waveshare_esp32_s3_zero] -board = esp32-s3-devkitc-1 +board = Generic-ESP32-S3-FH4R2 custom_openshock.chip = ESP32-S3 custom_openshock.flash_size = 4MB build_flags = ${env.build_flags}