tobozo / M5Stack-SD-Updater

💾 Customizable menu system for M5Stack, M5Unified and ESP32-Chimera-Core - loads apps from the Micro SD card. Easily add you own apps
MIT License
309 stars 41 forks source link

M5StickC Plus 2 #187

Closed bmorcelli closed 6 months ago

bmorcelli commented 6 months ago

I'm trying to use this lib on the M5StickCP2, and when trying to flash a .bin, I get these messages on Serial:

09:46:18.939 -> [ESP32-SD-Updater] SD Updater version: 1.2.8
09:46:18.939 -> [ESP32-SD-Updater] Application was Compiled on Jan 31 2024 17:03:10
09:46:18.978 -> [ESP32-SD-Updater] Will attempt to load binary /menu.bin 
09:46:18.978 -> Trying rollback
09:46:19.104 -> Try to start update
09:46:19.104 -> LOADING /menu.bin
**09:46:19.136 -> Written only : 0/591200. Retry?
09:46:19.136 -> Update failed. Error #: 8**
09:46:19.136 -> ets Jul 29 2019 12:21:46
09:46:19.136 -> 
09:46:19.136 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

I am compiling the Apps in Arduino IDE, and merging the output files with the command: esptool --chip esp32s3 merge_bin --output menu.bin 0x1000 M5Stick-Launcher.ino.bootloader.bin 0x8000 M5Stick-Launcher.ino.partitions.bin 0x10000 M5Stick-Launcher.ino.bin

With the 'M5Stick-Launcher.ino.bin' from build folder, it reboots instantly and reboot the device.

It happens with all binaries that i try to flash.

bmorcelli commented 6 months ago

Found the problem

Must use partition Scheme: "8Mb whith Spiffs (3Mb APP/1.5MB SPIFFS)" scheme in arduino IDE.

And use the file M5Stick-Launcher.ino.bin that is provided in "build" folder, after "Export Compiled Binary" using Arduino IDE 2.2.1