Skip to content

M5SHARK R154 - Stability Fixes

Choose a tag to compare

@M5Shark M5Shark released this 18 Sep 22:55
· 1 commit to main since this release

R154 fixes the crashes reported by the community on top of R153 (includes PR #1).

Fixes

Bluetooth / BLE

  • BLE Spam crash (PR #1): the advertising object could be NULL when the BLE stack was initialized but no server existed - spam attacks crashed the device. Now acquired with a NULL guard.
  • Sour Apple: same NULL-guard applied, and no more double BLE initialization.
  • Clean BLE shutdown: the stale advertising pointer is cleared so leaving BLE tools quickly can't dereference freed memory.

Chameleon Ultra

  • Sending a command while disconnected now logs a clear error on serial instead of failing silently.

Games

  • SNAKE: food can no longer spawn on the snake's body; the body array moved off the task stack (no reboot on long games).
  • REACTION: pressing BACK during the wait phase exits cleanly instead of being counted as TOO EARLY.

Flashing (Windows PowerShell)

.\flash-full-fast.ps1              full flash (first install)
.\flash-full-fast.ps1 -Quick       update only (from R150+)
.\flash-full-fast.ps1 -Port COM7   pick another port

Or download M5SHARK-R154-FLASH-KIT.zip for all files in one download.

Setup MCP

pip install pyserial mcp

Claude Desktop: see mcp-server/README.md (port auto-detected)