No description
  • Rust 95.1%
  • Linker Script 2.5%
  • Makefile 1.4%
  • Python 1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-28 19:14:00 +01:00
.cargo feat: basic process starting 2026-10-14 20:13:42 +02:00
.vscode fw base (ai slop) 2026-09-10 19:49:13 +02:00
apps feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
bootloader fix: keys bug in ui kit 2026-11-28 19:14:00 +01:00
hardware feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
kernel rm epsilon warning bs 2026-11-28 17:15:19 +01:00
tools feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
ui fix: keys bug in ui kit 2026-11-28 19:14:00 +01:00
.gitignore fw base (ai slop) 2026-09-10 19:49:13 +02:00
build.rs feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
Cargo.lock feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
Cargo.toml feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
LICENSE simple base (ai slop!!!!) 2026-09-09 19:55:02 +02:00
Makefile feat: GraphiteUI + example app 2026-11-27 15:28:26 +01:00
README.md 26.4.1 support 2026-11-27 21:46:40 +01:00
rust-toolchain.toml fw base (ai slop) 2026-09-10 19:49:13 +02:00

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.bin
  • build/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:

  1. In DFU mode, install the new body:
    dfu-util -d 0483:a291 -a 0 -s 0x08000000 -D build/librecalc-bootloader.bin
    
  2. Reboot while holding 6 to enter recovery DFU with the new erase handler.
  3. Install the complete bootloader image:
    dfu-util -d 0483:a291 -a 0 -D build/librecalc-bootloader.dfu
    
  4. 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.