GithubHelp home page GithubHelp logo

some issues about m5stack-sd-updater HOT 9 CLOSED

tobozo avatar tobozo commented on August 11, 2024
some issues

from m5stack-sd-updater.

Comments (9)

tobozo avatar tobozo commented on August 11, 2024

Hey and thanks for your feedback.

The chess App is the biggest of all apps, it may not work depending on your M5 model.

loading stops at 78% => this could be a SPIFFS partition problem i.e. too small or never used, maybe formatted with another SDK ?

Doing an full flash erase and some SPIFFS basic tests (e.g. upload the menu.bin and look what happens) could probably help.

from m5stack-sd-updater.

grooves38 avatar grooves38 commented on August 11, 2024

thanks for your prompt answer,
I did already a full erase with esptool32.py erase_flash
after first upload with arduino IDE the menu.bin starts as expected,
I can select an app and can start the app
but as written before .. it reboots at 78% when I want to go back to menu.bin
and it starts the previous app,
I have tried menu.bin from SD zip, and my own compiled version,

Thanks,
grooves

from m5stack-sd-updater.

tobozo avatar tobozo commented on August 11, 2024

so did the SPIFFS copy of menu.bin work ?

flash read err, 1000 clearly indicates a read problem, so even if this test seems unrelated and redundant, making this test work or fail will be a useful information.

I can select an app and can start the app

As a second useful, non redundant but also unrelated test, did you try to build a custom app rather than using the apps provided with the repo ?

Also more information is required to better understand the problem:

Model of M5Stack ?
Compiling environment ? Compilation Settings ?
OS ?
Model of the SD Card ?

from m5stack-sd-updater.

grooves38 avatar grooves38 commented on August 11, 2024

Hi,

it is a fresh Arduino installation on windows 10 x64
and installed all required libs, you mentioned in your description,
M5Stack shows just a small label with 2018.3
SD card is a Samsung 32GB, FAT32 formatted
your assumtions is probably right, something to do with SPIFFS,
when I start menu.bin I observe:

M5Stack initializing...OK
Scanning SPIFFS for binaries
E (760) SPIFFS: mount failed, -10025
SPIFFS Mount Failed
Listing directory: /
DIR : /System Volume Information
IGNORED FILE: /WeatherParams.txt
IGNORED FILE: /Readme.txt
IGNORED FILE: /RadioStations.txt
FILE: /Tetris.bin
DIR : /jpg
DIR : /json
DIR : /mp3
FILE: /arduinomegachess.bin
FILE: /Colours_Demo.bin

Anything I can do to solve that problem ?
have already erased the whole flash via esptool, and ESPFlashDownload

Regards,
grooves

from m5stack-sd-updater.

tobozo avatar tobozo commented on August 11, 2024

SPIFFS mount failed can happen after a full erase or when the ESP32 is brand new, you can use the ESP32 Sketch Data Upload once to fix that.

Running this tool will upload the contents of /data/ into your SPIFFS partition, just leave the /data/ folder empty for formatting.

image

Also make sure you allocate some space for OTA in the flash settings (the sd-updater is re-using the flashing part from this component)

image

It may be worth trying with different settings since this library existed before the options appeared in the Arduino menu.

I haven't tried selecting the M5Fire profile and it looks like it doesn't have any options to setup the partition but it may be worth a try too.

I'll probably update the menu code and add some kind of partition detection + formatting once the M5 environment becomes stable.

from m5stack-sd-updater.

grooves38 avatar grooves38 commented on August 11, 2024

Hi,
used the tool above, and SPIFFS error seems to be gone:

M5Stack initializing...OK
Scanning SPIFFS for binaries
/esp32fs.jar
No binary to transfer
Listing directory: /
DIR : /System Volume Information
IGNORED FILE: /WeatherParams.txt
IGNORED FILE: /Readme.txt
IGNORED FILE: /RadioStations.txt
FILE: /Tetris.bin
DIR : /jpg
DIR : /json
DIR : /mp3
FILE: /arduinomegachess.bin
FILE: /Colours_Demo.bin

but, it doesn't help for initial issue, can't go back to menu.bin
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1496
load:0x40078000,len:8596
load:0x40080400,len:6980
entry 0x400806f4
M5Stack initializing...OK
Will Load menu binary
Try to start update
percent = 0
percent = 1
.....
percent = 71
percent = 72
ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1496
load:0x40078000,len:8596
load:0x40080400,len:6980
entry 0x400806f4
M5Stack initializing...OK

COLOURS test!

and I'm back in previous app

Regards,
Michael

from m5stack-sd-updater.

tobozo avatar tobozo commented on August 11, 2024

the menu.bin should be compiled + copied onto the SD Card + also flashed with the new settings and the observed failure can only be valid if you saw it happen using any of the three different options for partition scheme.

BTW is your model a M5Stack classic, M5Fire or M5Go ?

from m5stack-sd-updater.

tobozo avatar tobozo commented on August 11, 2024

Also if you don't mind gitter.im. there's a M5Stack Fans lobby where we can chat and look further what's going on with your build without spamming this issue.

from m5stack-sd-updater.

tobozo avatar tobozo commented on August 11, 2024

Found the probably source of the problem after only one beer : SPIFFS partition scheme mismatching (with an earlier version of the SDK ?).

Updating the ESP32 SDK apparently did the trick.

Closing this issue as solved, feel free to open a new issue for any esp-idf inquiry 👍

from m5stack-sd-updater.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.