Repository navigation
Development and Tests
Sprache / Language: Deutsch | English
Software is checked on the host without a drive and also built for the STM32. Hardware timing and real electrical signals require separate measurements.
For custom host applications, start with the USB developer guide. The reference guide indexes the complete German specification included in the wiki. Hex vectors and a PING/INFO example provide a starting point without drive commands.
| Path | Contents |
|---|---|
firmware/src, firmware/include
|
STM32 application and interfaces |
firmware/tests |
Native C tests, control-flow checks, models, corpora and fuzz harnesses |
firmware/tools |
Static analysis, memory/stack checks, 6502 assembler and utilities |
software/ufi_host |
Python host and tests |
kicad/UFI_Headless |
Schematic, layout and manufacturing files |
docs |
Protocol, evidence and measurement plans |
docs/wiki |
Publishable wiki pages |
From the project root in a suitable Python environment:
python -m pip install -r requirements-test.txt
python firmware/tests/check_all.pyThe gate builds native programs from production code, runs firmware control-flow checks and host tests, and checks the 6502 drive code. It writes offline_gate.json to the test build directory.
Some checks extract production functions unchanged and substitute driver doubles. They test the relevant control flow, not a cycle-accurate STM32 simulation. Complement host fakes with tests across module boundaries.
python firmware/tests/test_flux_corpus.py --download
python firmware/tests/test_gcr_corpus.py --download
python firmware/tests/test_hfe_v3_reference.py --downloadOther corpora require suitable images supplied locally. check_all.py --require-corpora treats missing corpora as errors. Download revisions and checksums are pinned in the respective scripts.
python firmware/tools/check_static.py
python firmware/tests/run_fuzz.py --seconds 30Portable analysis covers HAL-free modules and some HAL-dependent modules with stub headers. After an actual ARM build, this variant extends coverage:
python firmware/tools/check_static.py --compile-commands firmware/build/compile_commands.jsonFuzzing uses sanitizers on suitable platforms. Short runs are smoke tests; longer runs and retained failure inputs improve coverage. Account for platform-dependent sanitizer availability when interpreting results.
The firmware build checks memory regions, individual stack frames, call chains and interrupt nesting. Indirect calls and assumed sizes of external functions limit the static call-chain model. Supplement it with runtime stack high-water measurements.
For protocol changes, update firmware, host, masks, event buffers, ownership checks and the protocol description together. Changes to the write path additionally require a matching measurement case in the qualification plan.
Sources: test overview, CI, call-graph check.
Deutsch · English · Projektstatus · Project status · Source · Issues · MIT
Stand / Updated: 2026-11-14 · UFI Headless v1.0 · Firmware 1.18-dev
Deutsch
Erste Schritte
- UnifiedFloppyTool mit UFI
- Schnellstart
- Installation
- Hardware
- Beschriftete Platinenübersicht
- Anschlüsse
- Inbetriebnahme
- Firmware bauen und flashen
Disketten bearbeiten
Betrieb und Systeme
Nachschlagen und Entwickeln
English
Getting started
- UnifiedFloppyTool with UFI
- Quickstart
- Installation
- Hardware
- Annotated board overview
- Connections
- Bring-up
- Building and flashing firmware
Working with disks
Operation and systems
- Operating modes
- SD and standalone operation
- LAN
- Greaseweazle
- Amiga
- Apple and Macintosh
- Commodore IEC
Reference and development