My platformio.ini file. (I’ve changed the names to “board-v3” and such, because I’m not really able to share the real name at the moment. However, they are unique and don’t have any namespace issues. )
[platformio]
default_envs = board-v3
[common]
build_unflags =
-std=gnu++11
lib_deps_external =
https://github.com/tzapu/WiFiManager.git
gin66/FastAccelStepper@^0.30.13
bblanchon/ArduinoJson@^6.21.4
fastled/FastLED@^3.6.0
olikraus/U8g2@^2.35.8
ricmoo/QRCode@^0.0.1
igorantolic/Ai Esp32 Rotary Encoder @ ^1.6
mathertel/OneButton@^2.5.0
upload_speed = 921600
check_skip_packages = true
check_tool = clangtidy
check_flags =
clangtidy: --checks=-\*,bugprone-*,boost-*,modernize-*,performance-*,clang-analyzer-*,cert-dcl03-c,cert-dcl21-cpp,cert-dcl58-cpp,cert-err34-c,cert-err52-cpp,cert-err58-cpp,cert-err60-cpp,cert-flp30-c,cert-msc50-cpp,cert-msc51-cpp,cert-oop54-cpp,cert-str34-c,cppcoreguidelines-interfaces-global-init,cppcoreguidelines-narrowing-conversions,cppcoreguidelines-pro-type-member-init,cppcoreguidelines-pro-type-static-cast-downcast,cppcoreguidelines-slicing,google-default-arguments,google-explicit-constructor,google-runtime-operator,hicpp-exception-baseclass,hicpp-multiway-paths-covered,hicpp-signed-bitwise,portability-simd-intrinsics,readability-avoid-const-params-in-decls,readability-const-return-type,readability-container-size-empty,readability-convert-member-functions-to-static,readability-delete-null-pointer,readability-deleted-default,readability-inconsistent-declaration-parameter-name,readability-make-member-function-const,readability-misleading-indentation,readability-misplaced-array-index,readability-non-const-parameter,readability-redundant-control-flow,readability-redundant-declaration,readability-redundant-function-ptr-dereference,readability-redundant-smartptr-get,readability-simplify-subscript-expr,readability-static-accessed-through-instance,readability-static-definition-in-anonymous-namespace,readability-string-compare,readability-uniqueptr-delete-release,readability-use-anyofallof,-modernize-use-trailing-return-type,-readability-convert-member-functions-to-static,-bugprone-easily-swappable-parameters,-readability-make-member-function-const --fix
extra_scripts = pre:pre_build_script.py
[env:board-v3]
build_flags =
-std=gnu++17
; CORE_DEBUG_LEVEL Details: https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level
-D CORE_DEBUG_LEVEL=4
-D VERSIONDEV
-D SW_VERSION=0
-D HTTPCLIENT_1_1_COMPATIBLE=0
-D DEBUG_TALKATIVE
extends = common
platform = espressif32
board = board_v3
framework = arduino
monitor_speed = 115200
monitor_filters = colorize, esp32_exception_decoder, time
lib_deps =
${common.lib_deps_external}
adafruit/Adafruit INA219@^1.2.3
adafruit/Adafruit BusIO@^1.16.2
And the board manifest:
{
"build": {
"arduino":{
"ldscript": "esp32s3_out.ld",
"partitions": "partition-board-v3.csv"
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"hwids": [
[
"0x303A",
"0x1001"
]
],
"mcu": "esp32s3",
"variant": "esp32s3"
},
"connectivity": [
"bluetooth",
"wifi"
],
"debug": {
"default_tool": "esp-builtin",
"onboard_tools": [
"esp-builtin"
],
"openocd_target": "esp32s3.cfg"
},
"frameworks": [
"arduino",
"espidf"
],
"name": "Espressif ESP32-S3 (16 MB, No PSRAM)",
"upload": {
"flash_size": "8MB",
"maximum_ram_size": 327680,
"maximum_size": 8388608,
"require_upload_port": true,
"speed": 460800
},
"url": "",
"vendor": "Espressif"
}
I need to adjust the flash sizes to match the board, but I’m working on just getting it functional right now.