Skip to content

Commit d8e2cee

Browse files
committed
buildenv updates for adafruit MatrixPortal S3
* board.json added to WLED/boards * use partitions file that supports adafruit UF2 bootloader
1 parent 7dfed58 commit d8e2cee

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"build": {
3+
"arduino":{
4+
"ldscript": "esp32s3_out.ld",
5+
"partitions": "partitions-8MB-tinyuf2.csv"
6+
},
7+
"core": "esp32",
8+
"extra_flags": [
9+
"-DARDUINO_ADAFRUIT_MATRIXPORTAL_ESP32S3",
10+
"-DARDUINO_USB_CDC_ON_BOOT=1",
11+
"-DARDUINO_RUNNING_CORE=1",
12+
"-DARDUINO_EVENT_RUNNING_CORE=1",
13+
"-DBOARD_HAS_PSRAM"
14+
],
15+
"f_cpu": "240000000L",
16+
"f_flash": "80000000L",
17+
"flash_mode": "qio",
18+
"hwids": [
19+
[
20+
"0x239A",
21+
"0x8125"
22+
],
23+
[
24+
"0x239A",
25+
"0x0125"
26+
],
27+
[
28+
"0x239A",
29+
"0x8126"
30+
]
31+
],
32+
"mcu": "esp32s3",
33+
"variant": "adafruit_matrixportal_esp32s3"
34+
},
35+
"connectivity": [
36+
"bluetooth",
37+
"wifi"
38+
],
39+
"debug": {
40+
"openocd_target": "esp32s3.cfg"
41+
},
42+
"frameworks": [
43+
"arduino",
44+
"espidf"
45+
],
46+
"name": "Adafruit MatrixPortal ESP32-S3",
47+
"upload": {
48+
"arduino": {
49+
"flash_extra_images": [
50+
[
51+
"0x410000",
52+
"variants/adafruit_matrixportal_esp32s3/tinyuf2.bin"
53+
]
54+
]
55+
},
56+
"flash_size": "8MB",
57+
"maximum_ram_size": 327680,
58+
"maximum_size": 8388608,
59+
"use_1200bps_touch": true,
60+
"wait_for_upload_port": true,
61+
"require_upload_port": true,
62+
"speed": 460800
63+
},
64+
"url": "https://www.adafruit.com/product/5778",
65+
"vendor": "Adafruit"
66+
}

platformio_override.sample.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,16 @@ build_flags = ${common.build_flags}
564564

565565
[env:adafruit_matrixportal_esp32s3]
566566
; ESP32-S3 processor, 8 MB flash, 2 MB of PSRAM, dedicated driver pins for HUB75
567+
;; adafruit recommends to use arduino-esp32 2.0.14
568+
;;platform = espressif32@ ~6.5.0
569+
;;platform_packages = platformio/framework-arduinoespressif32 @ 3.20014.231204 ;; arduino-esp32 2.0.14
567570
board = adafruit_matrixportal_esp32s3
568571
platform = ${esp32s3.platform}
569572
platform_packages =
570573
upload_speed = 921600
571574
build_unflags = ${common.build_unflags}
572575
build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=\"ESP32-S3_4M_qspi\"
573-
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
576+
-DARDUINO_USB_CDC_ON_BOOT=1 ;; -DARDUINO_USB_MODE=1 ;; for boards with USB-OTG connector only (USBCDC or "TinyUSB")
574577
-DBOARD_HAS_PSRAM
575578
-DLOLIN_WIFI_FIX ; seems to work much better with this
576579
-D WLED_WATCHDOG_TIMEOUT=0
@@ -584,7 +587,7 @@ build_flags = ${common.build_flags} ${esp32s3.build_flags} -D WLED_RELEASE_NAME=
584587
lib_deps = ${esp32s3.lib_deps}
585588
https://github.com/mrfaptastic/ESP32-HUB75-MatrixPanel-DMA.git#aa28e2a ;; S3_LCD_DIV_NUM fix
586589

587-
board_build.partitions = ${esp32.default_partitions}
590+
board_build.partitions = tools/partitions-8MB_spiffs-tinyuf2.csv ;; supports the adafruit UF2 bootloader (recommended!)
588591
board_build.f_flash = 80000000L
589592
board_build.flash_mode = qio
590593
monitor_filters = esp32_exception_decoder

0 commit comments

Comments
 (0)