Menu

I ported the Muse Gadget SDK's board.sh to PowerShell — M5Stack Core2 now builds and flashes on Windows, no WSL2
📰

I ported the Muse Gadget SDK's board.sh to PowerShell — M5Stack Core2 now builds and flashes on Windows, no WSL2

#esp32#redditesp32#board#core2#muse
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.