Skip to content

Commit d98ef84

Browse files
committed
additional matrixportal buildenv using original adafruit bootloader
you should first) perform the "bootloader repair" as described in https://learn.adafruit.com/adafruit-matrixportal-s3/factory-reset#factory-reset-and-bootloader-repair-3107941 second) upload partitions.bin and firmware.bin created by the _tinyUF2 build
1 parent a7a27d9 commit d98ef84

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

platformio.ini

+20-5
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ default_envs =
107107
;;
108108
athom_music_esp32_4MB_M
109109
adafruit_matrixportal_esp32s3 ;; HUB75 supported
110+
; adafruit_matrixportal_esp32s3_tinyUF2 ;; experimental - uses adafruit bootloader
110111

111112
; Go to MoonModules environments for environments
112113

@@ -2792,9 +2793,9 @@ platform = ${esp32.platformV4_xp} ;; 6.5.0 = first platform release supporting m
27922793
platform_packages = ${esp32.platformV4_packages_xp} ;; arduino-esp32 2.0.14 needed - previous versions were missing files for matrixportal
27932794
board = adafruit_matrixportal_esp32s3
27942795

2795-
board_build.partitions = ${esp32.large_partitions}
2796-
board_build.f_flash = 80000000L
2797-
board_build.flash_mode = qio
2796+
board_build.partitions = ${esp32.large_partitions} ;; default 8MB WLED partitions
2797+
;; board_build.f_flash = 80000000L ;; this is the default for board = adafruit_matrixportal_esp32s3
2798+
;; board_build.flash_mode = qio ;; ditto
27982799

27992800
build_unflags = ${env:esp32S3_8MB_M.build_unflags} ;; use the same as "normal" S3 buildenv
28002801
-D ARDUINO_USB_CDC_ON_BOOT=1 ;; fix warning: "ARDUINO_USB_CDC_ON_BOOT" redefined; comment out for Serial debug
@@ -2823,5 +2824,19 @@ lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ;; ;; do not include ${e
28232824
lib_ignore = IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
28242825
monitor_filters = esp32_exception_decoder
28252826
;
2826-
; RAM: [== ] 20.4% (used 66984 bytes from 327680 bytes)
2827-
; Flash: [========= ] 94.8% (used 1491489 bytes from 1572864 bytes)
2827+
; RAM: [== ] 18.4% (used 60456 bytes from 327680 bytes)
2828+
; Flash: [======== ] 79.9% (used 1675601 bytes from 2097152 bytes)
2829+
2830+
;; this buildenv uses the original bootloader and partions from adafruit
2831+
[env:adafruit_matrixportal_esp32s3_tinyUF2]
2832+
extends = env:adafruit_matrixportal_esp32s3
2833+
board_build.partitions = tools/partitions-8MB_spiffs-tinyuf2.csv ;; use original adafruit 8MB tinyUF2 partitioning
2834+
2835+
;; we just replace WLED_RELEASE_NAME
2836+
build_unflags = ${env:adafruit_matrixportal_esp32s3.build_unflags}
2837+
-D WLED_RELEASE_NAME=matrixportal_esp32s3
2838+
build_flags = ${env:adafruit_matrixportal_esp32s3.build_flags}
2839+
-D WLED_RELEASE_NAME=matrixportal_esp32s3_tinyUF2
2840+
;
2841+
; RAM: [== ] 18.4% (used 60456 bytes from 327680 bytes)
2842+
; Flash: [======== ] 79.9% (used 1675601 bytes from 2097152 bytes)
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
# bootloader.bin,, 0x1000, 32K
4+
# partition table,, 0x8000, 4K
5+
nvs, data, nvs, 0x9000, 20K,
6+
otadata, data, ota, 0xe000, 8K,
7+
ota_0, app, ota_0, 0x10000, 2048K,
8+
ota_1, app, ota_1, 0x210000, 2048K,
9+
uf2, app, factory,0x410000, 256K,
10+
spiffs, data, spiffs, 0x450000, 3776K,

0 commit comments

Comments
 (0)