Skip to content

Instantly share code, notes, and snippets.

@rbricheno
Created May 24, 2021 16:28
Show Gist options
  • Save rbricheno/d5eae32441592f0b998e288ef79b23f4 to your computer and use it in GitHub Desktop.
Save rbricheno/d5eae32441592f0b998e288ef79b23f4 to your computer and use it in GitHub Desktop.
m5stack "buttons Test:" at boot
I bought an "M5stack Core" and it didn't seem to do anything useful.
When I turned it on, it went through a routine displaying some graphics and finally a screen that said:
TF card test:
Listing directory: /
Failed to open directory
Writing file: /hello.txt
Failed to open file for writing
Reading file: /hello.txt
Failed to open file for reading
buttons Test:
At this point I could press buttons and they were registered, but nothing much else happened.
Eventually I found the problem. The M5stack that I had in my hands had been shipped to me running this sketch:
https://github.com/m5stack/M5Stack/blob/master/examples/Basics/FactoryTest/FactoryTest.ino
I had to burn new firmware to the M5stack to make it do anything useful.
I found a tool to do this called "M5Burner" located at:
https://shop.m5stack.com/pages/download
Once I ran that, I had to first "Erase" the M5stack.
The options presented in the main window of the M5Burner are actually specific firmwares (you'll see what I mean).
I selected "UIFlow (Core)" and clicked "Download".
Once it had been downloaded, finally the "Burn" button was displayed, allowing me to write this firmware.
After this, tools like UIFlow and VScode could communicate with the M5stack and everything else was fairly obvious.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment