nrfxlib-sys

This is a Rust wrapper for the Nordic nrfxlib set of libraries, primarily libmodem and liboberon for the nRF9160.

Any binary which uses this crate is going to need to provide a bunch of C library functions, because Nordic's library expects them. This includes, but is not limited to:

You can't just link newlib, because that defines memset which clashes with the compiler-builtin crate's definition of memset. Answers on a post-card please - for now I'm using tinyrlibc.

Using

In your own program or library, you can depend on this crate in the usual fashion:

toml [dependencies] nrfxlib-sys = "2.1"

Because the modem library has its debug sections compressed and Rust's tooling doesn't have support for that by default, this crate either strips the debug sections or decompresses them.

By default the crate uses the llvm-tools that can be installed using rustup component add llvm-tools-preview. In this case the debug sections get stripped.

If you'd rather have the debug sections decompressed, then disable the default features on this crate and enable the arm-none-eabi-objcopy feature. This will try to use the arm-none-eabi-objcopy binary that you can download from the ARM website. This one does have support for debug section compression.

This is a low level wrapper. You might prefer the blocking higher-level wrapper:

toml [dependencies] nrfxlib = "*"

You might also prefer the async higher-level wrapper:

toml [dependencies] nrf-modem = "*"

Licence

Any of the code outside the ./third_party folder is under the Blue Oak Licence. Any code inside the ./third_party folder (include the Nordic nrfxlib) has its own LICENCE file.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.

Changelog

Unreleased Changes (Source | Changes)

v2.1.0 (Source | Changes)

v1.4.2 (Source | Changes)

v1.2.0 (Source | Changes)

v1.1.0-rc3+rel1 (Source | Changes)

v1.1.0-rc2+rel1 (Source | Changes)

v0.2.0 (Source | Changes)

v0.1.7 (Source | Changes)

v0.1.6 (Source | Changes)

v0.1.5 (Source | Changes)

v0.1.4 (Source | Changes)

v0.1.3 (Source | Changes)

v0.1.2 (Source | Changes)

v0.1.1 (Source | Changes)

v0.1.0 (Source)