IT lexicon › Programming › Pigweed

Pigweed

Programming På svenska → Updated: 2026-11-04
More info
Owner
Google
Released
2020
Type
Library collection
License
Apache 2.0
Website
pigweed.dev

Google's collection of C++ modules for firmware, meant to be picked from à la carte rather than swallowed whole as a framework.

Google open-sourced it in 2020. The modules carry a pw_ prefix and cover the things every firmware team otherwise writes from scratch: logging, ring buffers, RPC over a serial link, a test framework and hardware abstractions. It builds with GN, Bazel or CMake, and runs on top of FreeRTOS, Zephyr or plain bare metal.

The best-known module is pw_tokenizer, which replaces log strings with a short hash at compile time. The strings stay on the host and the firmware shrinks, the same idea as defmt in Rust. The name comes from a weed that grows pretty much anywhere, which is exactly what you want from firmware libraries.

← Back to the lexicon