Hi everyone!
I've started an experimental firmware project for the FiiO Snowsky Echo (the regular version, not the Echo Mini).
The goal is to develop a completely new firmware for this device, rather than modify or patch the stock firmware.
One important detail upfront: this project is being developed with AI assistance throughout essentially the entire engineering workflow — architecture design, code generation, debugging, test development and documentation. I'm exploring how far AI-assisted engineering can go in a fairly complex embedded project.
This is still an engineering Proof of Concept, not a finished firmware or a daily-driver replacement for the stock software.
Architecture and technology
Rather than taking the usual bare-metal or monolithic approach, I'm building a structured embedded software platform with a layered, modular architecture, following design principles established by mature embedded firmware projects.
The current technology stack includes:
- FreeRTOS as the real-time operating system.
- A FURI-based application and service architecture.
- A hardware abstraction layer (HAL).
- Event-driven communication using queues, event flags and pub/sub.
- A GUI framework with viewports, custom canvas rendering and RGB565 graphics.
- FatFs for internal eMMC and external microSD storage, including FAT and exFAT.
- USB Mass Storage support, exposing both storage volumes to a computer.
- A custom firmware updater supporting the device's dual-slot firmware layout.
Hardware-independent logic is kept separate from hardware-specific code, allowing many components to be unit-tested on a PC without the actual device.
What has been implemented so far?
The PoC has already progressed beyond a simple bootloader experiment:
- FreeRTOS boot, task scheduling and core runtime infrastructure.
- Logging, fault handling and watchdog integration.
- Physical button input handling and power management.
- ST7796S display driver, backlight control and GUI framework.
- Internal eMMC and microSD drivers.
- FAT/exFAT filesystem integration.
- USB Mass Storage with support for both storage volumes.
- Firmware image validation and dual-slot update mechanism.
- A custom Unicorn-based emulator with automated tests covering boot, input, display, storage, USB and firmware updates.
The firmware image is built in a format accepted by the device's bootloader and updater.
AI-generated and AI-assisted code is continuously checked through host-side unit tests and emulator scenarios. Passing those tests is an important development milestone, although it does not replace validation on physical hardware.
What's next?
The next major milestone is the actual music player functionality:
- File browser.
- Audio playback using the second CPU core.
- Audio decoding and buffering pipeline.
- M3U playlists and shuffle.
- Music library with metadata and cover art.
- Battery monitoring and improved power management.
- Bluetooth functionality.
This is an ongoing engineering PoC. I'll share updates as it evolves.