Nanopb#
Pigweed AI summary: The nanopb module contains a small protobuf library used by the pw_protobuf_compiler. The GN Build Support module provides instructions on how to compile Nanopb with GN. Enabling PB_NO_ERRMSG=1 in the toolchain configuration disables error messages as strings and may save code space but makes debugging more difficult.
The $dir_pw_third_party/nanopb/
module contains Nanopb, a tiny protobuf
library. It is used by pw_protobuf_compiler.
GN Build Support#
Pigweed AI summary: This module provides support for compiling Nanopb with GN. The documentation on pw_protobuf_compiler provides general help on how to use this. Enabling PB_NO_ERRMSG=1 in the toolchain configuration will disable error messages as strings and may save some code space at the expense of ease of debugging.
This module provides support to compile Nanopb with GN.
Follow the documentation on pw_protobuf_compiler for general help on how to use this.
Enabling PB_NO_ERRMSG=1
#
Pigweed AI summary: This paragraph explains how to enable the use of PB_NO_ERRMSG=1 in a toolchain configuration. By adding a specific code to the configuration, the build will disable error messages as strings, which may save some code space but make debugging more difficult.
In your toolchain configuration, you can use the following:
pw_third_party_nanopb_CONFIG = "$dir_pw_third_party/nanopb:disable_error_messages"
This will add -DPB_NO_ERRMSG=1
to the build, which disables error messages
as strings and may save some code space at the expense of ease of debugging.