Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions boards/Generic-ESP32-S3-FH4R2.json
Original file line number Diff line number Diff line change
@@ -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"
}
14 changes: 13 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this changed?

Copy link
Author

@FynnleyNeko FynnleyNeko Jun 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same chip as the Aliexpress clone of it, it differs from the devkitc-1 in having PSRAM, requiring USB-CDC, different flash size and having faster upload speeds, so that's all defined inside the definition.

But that being said that was something I didn't actually intend to include in the request, but it was something I wanted to have in my fork for building and testing.

It obviously compiles as a devkitc-1 just fine, so the change wasn't required, but declaring it as one is technically not the correct board definition.

custom_openshock.chip = ESP32-S3
custom_openshock.flash_size = 4MB
build_flags = ${env.build_flags}
Expand Down Expand Up @@ -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

Expand Down