Repository navigation
Build and Test
CMake is the canonical build entry point for the modern mipOS workspace. The old checked-in Visual Studio solution and project files were removed; generate IDE projects on demand from CMake.
cmake -S . -B build-vs-x64 -G "Visual Studio 18 2026" -A x64
cmake --build build-vs-x64 --config Release --parallelFor Visual Studio 2022, use generator Visual Studio 17 2022 instead.
cmake -S . -B build-vs-win32 -G "Visual Studio 18 2026" -A Win32
cmake --build build-vs-win32 --config Release --parallelcmake -S . -B build
cmake --build build --parallelFor explicit Linux x64 or x86 simulator builds:
cmake -S . -B build-linux-x64 -DMIPOS_ARCH=x64
cmake --build build-linux-x64 --parallel
cmake -S . -B build-linux-x86 -DMIPOS_ARCH=x86
cmake --build build-linux-x86 --parallelLinux x86 requires multilib compiler and runtime support.
Unit tests and smoke tests are built through CMake:
cmake --build build-vs-x64 --config Release --target mipos_tests mipos_scheduler_smoke
.\build-vs-x64\Release\mipos_tests.exe
.\build-vs-x64\Release\mipos_scheduler_smoke.exelwIP tests are enabled in a networking build:
cmake --build build-vs-x64-net-check --config Release --target mipos_lwip_tests
.\build-vs-x64-net-check\Release\mipos_lwip_tests.exeThe current tests cover queues, memory pools, malloc/realloc, cooperative scheduler behavior, and optional lwIP IPv4/Ethernet protocol paths.
Cortex-M QEMU firmware:
.\scripts\run-qemu.ps1 helloworld
.\scripts\run-qemu.ps1 console
.\scripts\run-qemu.ps1 filesystem
.\scripts\run-qemu.ps1 fatfs
# FatFs host-backed block device; details: Storage And FatFs wiki page
.\scripts\run-qemu.ps1 net-console
.\scripts\run-qemu.ps1 net-selftestCortex-A vexpress-a9 smoke boot:
.\scripts\run-qemu.ps1 vexpress-helloworldDirect CMake build for vexpress-a9:
cmake -S . -B build-qemu-vexpress-a9 \
-DCMAKE_TOOLCHAIN_FILE=cmake/arm-none-eabi-toolchain.cmake \
-DMIPOS_TARGET_QEMU_VEXPRESS_A9=ON
cmake --build build-qemu-vexpress-a9 --parallelThe STM8 port has an optional SDCC build path:
cmake -S . -B build-stm8-sdcc -DMIPOS_TARGET_STM8_SDCC=ON
cmake --build build-stm8-sdcc --target stm8-sdcc-helloworld --parallelThe output image is:
build-stm8-sdcc/stm8-sdcc/stm8s_example.ihx
Helper scripts build the image and can start the STM8 simulator when uCsim is installed:
.\scripts\run-stm8-sdcc.ps1
.\scripts\run-stm8-sdcc.ps1 -Simsh scripts/run-stm8-sdcc.sh
sh scripts/run-stm8-sdcc.sh --simCI includes an stm8-sdcc job that installs SDCC, builds the firmware, and
checks that the Intel HEX image is produced.
CI should keep simulator builds green across supported hosts and keep QEMU ARM firmware smoke tests building. Runtime QEMU smoke tests are useful for checking that firmware reaches the expected console output before QEMU is terminated by a timeout wrapper.