Appearance
Overview
The NavX SDK builds programs for the BMW MK4 navigation computer: an OS-9000 system on a MIPS R3000-class CPU, with a 400 × 234 screen and the BMBT knob. The programs run with the NavX firmware, which is our own and adds an Apps launcher, car functions and the I-Bus to the stock unit.
| Part | What it is |
|---|---|
| Toolchain | navx-cc: C (clang) into one OS-9000 program module, plus the runtime: navx/os9.h system calls, a small libc, and soft float |
| App interfaces | the headers and data module layouts an app uses with the firmware |
| NavX UI | fonts, theme, drawing and widgets, and the protocol for running inside the NavX shell |
| UI guidelines | how every screen looks and behaves |
| Build and test | the emulated unit, discs, screenshots |
A program in a minute
sh
pnpm install && pnpm build
node dist/cli.js examples/hello.c -o hello # an OS-9000 program module "hello"c
#include <navx/os9.h>
int main(int argc, char **argv) {
os9_puts(STDOUT, "hello from navx\n");
return 0;
}The module goes to the unit:
- from an apps disc:
APPS/APPS.TXTlists it, and the launcher shows it; - or over the t1 serial port:
navx serial … load, with--flashto keep it.
Each built module is re-parsed (parity, CRC) and is a multiple of 4 bytes. A broken module can take the kernel down, so the tools never write one they can't read back.
Rules that matter on this CPU
- No runtime multiply or divide in drawing code (the MIPS I hi/lo hazard). Use shifts, adds and tables. The build checks for them.
- No ternary that picks between strings or globals. clang's MIPS backend crashes on it. Index an array instead.
- Stock unit, no extra hardware, unless an app says what it needs.
The NavX UI

Apps draw with our UI library and run inside the NavX shell: the shell owns the status bar, the knob and the overlays, and the app gets an area of the screen. The same program also runs on its own from the launcher. Start with the UI guidelines, then the UI SDK.