- Rust 95.1%
- Linker Script 2.5%
- Makefile 1.4%
- Python 1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| .vscode | ||
| apps | ||
| bootloader | ||
| hardware | ||
| kernel | ||
| tools | ||
| ui | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| rust-toolchain.toml | ||
LibreCalc
LibreCalc is an experimental, independent operating system project for the NumWorks N0120 calculator.
Installation
You need an exploit like Wirehax to unlock the stock bootloader and overwrite it with LibreCalc.
If you want to install LibreCalc using SWD, check https://blog.ayabusa.dev/2025/11/07/lets-create-an-os-for-the-numworks-a-different-approach-part-2/
Workspace
bootloader/is the bootloader that lives in the internal flash. Its goal is to boot the kernel from external flash, and to provide a DFU interface for flashing.kernel/is the kernel that lives in the external flash. It is responsible for providing safe access to the hardware for the userspace.hardware/is the shared hardware library.
Requirements
- Rustup
- GNU Make
- Python 3
Rustup reads rust-toolchain.toml and installs the pinned compiler, formatter,
linter, editor engine, and Cortex-M target.
Build
make all
This creates:
build/librecalc-bootloader.{elf,bin}build/librecalc-bootloader-table.binbuild/librecalc-bootloader.dfu, containing the bootloader and its matching Epsilon call table.build/librecalc-kernel.{elf,bin}build/librecalc.dfu, containing all three images.
Build only the bootloader with make bootloader, or builtin apps + the kernel with make kernel.
Normal DFU accepts only external flash. It refuses full stock DFUs, and the boot menu refuses
Epsilon slots without the known version-1 bootloader header. To update the LibreCalc
bootloader and call table while keeping external firmware, hold 6 while booting to enter recovery
DFU, then install build/librecalc-bootloader.dfu and reset the calculator.
Older bootloaders reject the call-table erase at 0x0807FC00. To update one:
- In DFU mode, install the new body:
dfu-util -d 0483:a291 -a 0 -s 0x08000000 -D build/librecalc-bootloader.bin - Reboot while holding 6 to enter recovery DFU with the new erase handler.
- Install the complete bootloader image:
dfu-util -d 0483:a291 -a 0 -D build/librecalc-bootloader.dfu - After both elements finish downloading, reset the calculator.
Fast Rust checks use Cargo directly:
cargo fmt --all --check
cargo check --workspace
cargo clippy --workspace -- -D warnings
License
LibreCalc is licensed under the GNU General Public License version 3 only. See LICENSE.
The LibreCalc Project is not affiliated with, or endorsed by NumWorks SAS.