m5-onboard
Skill0 starsChanged 54 days agoMITView on GitHub
Provision, flash, and configure M5Stack and ESP32 microcontroller boards including Cardputer, Core, CoreS3, and Stick. Covers USB serial port enumeration, ROM download mode entry, esptool flashing parameters, MicroPython file deployment via mpremote, and peripheral verification. Use when provisioning or resetting an M5Stack or ESP32 device, flashing new firmware over serial, or setting up on-device MicroPython applications.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- anthropics/claude-plugins-officialtheir own version, first seen Oct 13, 2026
- gcapodeferro02/my-agent-skillstheir own version, first seen Sep 21, 2026
- dakshaymehta/cardputer-claude-ostheir own version, first seen Jul 1, 2026
- er1Ha/cardputer-claude-os-wintheir own version, first seen May 17, 2026
- moremas/build-with-claudetheir own version, first seen May 6, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- anthropics/claude-plugins-official★ 46ksame name
- dakshaymehta/cardputer-claude-os★ 202same name
- moremas/build-with-claude★ 196same name
- er1Ha/cardputer-claude-os-win★ 5same name
- gcapodeferro02/my-agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- cpp-coding-standardsSkill
- cpp-testingSkill
- embedded-firmware-misraSkill
- latency-critical-systemsSkill
- onnx-quantize-tflmSkill
- openlane-sky130-flowSkill
- rtl-testbench-disciplineSkill
- rtl-verilog-lintSkill
- skill-eval-harnessSkill
- timing-closure-cdcSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
If communication fails at 921600 baud due to poor USB cabling or hub interference, drop back to 115200 baud for stable flashing.
- Very specific: line 56
Device not recognized: Check whether the USB cable is power-only.
- Distinctive: line 58
Boot loop after flashing: Verify whether the firmware image was built for octal (OPI) or quad (QPI) PSRAM matching the specific board …
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
M5Stack & ESP32 Device Provisioning
Provisioning microcontroller boards over USB serial requires coordinating the bootloader state, matching baud rates, and selecting the correct flash offsets for the target SoC variant (ESP32 vs ESP32-S3). Flashing the wrong variant image or interrupting write cycles leaves the board in a boot loop.
# Verify USB connection and read chip information
esptool.py --port COM3 chip_idDetailed board hardware specifications, USB vendor and product IDs, and flash offset maps are documented in references/board-variants.md.
Provisioning Workflow
- Port Identification: Identify the active serial port associated with the USB bridge (CP2104, CH9102) or native ESP32-S3 USB CDC interface.
- Download Mode Entry: On native-USB boards such as Cardputer-Adv, software reset cannot always force the ROM bootloader into download mode. The user enters download mode physically by holding the
G0button while toggling power or reset. - Firmware Deployment: Erase flash if changing partition schemes, then write the target firmware image at offset
0x0usingesptool.py. - Application Payload: Push user Python scripts (such as
main.pyand driver libraries) into the internal flash filesystem usingmpremote. - Reboot and Smoke Test: Reset the device into normal execution mode and inspect serial console output for unhandled exceptions or boot crashes.
Firmware Flashing
# Erase old partition table and flash image
esptool.py --chip esp32s3 --port /dev/ttyACM0 erase_flash
# Write composite MicroPython or UIFlow image
esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 921600 write_flash -z 0x0 firmware.binIf communication fails at 921600 baud due to poor USB cabling or hub interference, drop back to 115200 baud for stable flashing.
Application Deployment with mpremote
The mpremote utility provides access to the MicroPython REPL and filesystem over serial without requiring third-party IDE extensions.
# List files on device root
mpremote connect /dev/ttyACM0 fs ls
# Copy local application to main startup script
mpremote connect /dev/ttyACM0 cp main.py :main.py
# Open interactive REPL session
mpremote connect /dev/ttyACM0 replTroubleshooting Common Failures
- Device not recognized: Check whether the USB cable is power-only. Data cables enumerate with a vendor ID in device manager or
dmesg. - A fatal error occurred: Failed to connect to ESP32: The chip is actively executing application code rather than waiting in the bootloader. Re-enter download mode by pulling GPIO0 low during reset.
- Boot loop after flashing: Verify whether the firmware image was built for octal (OPI) or quad (QPI) PSRAM matching the specific board revision.
Honest limits
This workflow provisions firmware and copies scripts over USB. It cannot detect physical hardware damage such as blown I/O pins, defective lithium-polymer battery cells, or broken I2C pull-up resistors on external Grove sensor ports. Testing peripheral functionality requires running dedicated on-device diagnostics against display, speaker, and I2C buses.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

