Repository navigation
ffemu v1.0
ffemu runs the FlashFloppy user interface in a terminal, with no Gotek hardware. The firmware's own code (src/main.c, the display driver, FatFS, the image handlers) is compiled for the host: it draws on an emulated OLED display, reads an emulated USB flash drive, and takes the keyboard for its buttons and rotary encoder. It is meant for working on menus, display layout, fonts and code pages without flashing a device.
What it does
- Emulates an SFRKC30.AT2 board (AT32F415) with an SSD1306 or SH1106 OLED display of 128x32 or 128x64, drawn as Braille dots, half blocks or ASCII.
- The USB drive is a directory of the host, built into a FAT32 volume with the short names, long names and attributes that Windows or Linux would give the files when copying them to a real drive. It can also be an image file of a whole drive, or a real USB flash drive read directly.
- What the firmware writes to the drive never reaches the files, the image or the disk.
- Shows the
FF.CFGthat the firmware reads, the configuration in its flash memory, which can be edited in a dialog and is kept across runs, and the firmware's console, also written to a log file. - Long and combined button presses via the latch mode; power cycles, USB drive insertion and removal.
- Commands on standard input drive it without a terminal, for testing.
Downloads
ffemu-1.0-linux-x86_64.tar.gz: Linux on x86-64, Ubuntu 22.04 or later; nothing else to install.ffemu-1.0-windows.exe: Windows, to run in Git Bash, MSYS2 or Cygwin, which provide themsys-2.0.dllit needs.
Running
ffemu [<directory> | <image> | <disk>]
The directory defaults to the current one. Reading a disk such as a USB flash drive needs sudo on Linux, or a terminal started as administrator on Windows. See ffemu/README.md for the details.
The firmware inside is FlashFloppy from the fork's main line, where this release is tagged: the upstream master of the time, 483077a, with this release's feature branch merged in. Besides ffemu, the branch holds four changes that the upstream took later the same day in pull request keirf#1073: out-of-tree builds, 64-bit hosts, C fallbacks for ARM assembly, and a fix for a buffer overrun when FF.CFG changes oled-font. It reports its version as the commit hash.
