I wanted to turn my M5Stack Core2 into a Muse Gadget, and hit two walls:
The web flasher doesn't support the Core2, so I had to build the firmware myself.
The build is driven by a bash script (board.sh) from the Muse Gadget SDK , and the official setup assumes macOS or Linux. My only PC runs Windows, and I didn't want to install WSL2 just for this.
So I ported board.sh to PowerShell. board.ps1 covers the same board table (40 boards), keeps the same per-board build directories and flash behavior, activates ESP-IDF through export.ps1, and finds the serial port using the SDK's original ports.py.
With it, I built and flashed the Core2 firmware entirely from PowerShell, paired the gadget with the Muse app, and it works.
The Core2 has been promoted to full-time desk companion. Not alone anymore.
Engineering notes: - Hardware: I chose the M5Stack Core2 because it was the device I wanted to turn into a Muse Gadget and keep as a desk companion.…