11 breaking releases

0.16.0 Aug 28, 2023
0.15.0 Feb 10, 2023
0.14.0 Dec 2, 2022
0.13.0 Jul 20, 2022
0.5.0 Sep 19, 2020

#1619 in Embedded development

Download history 2516/week @ 2024-01-03 2320/week @ 2024-01-10 2682/week @ 2024-01-17 2575/week @ 2024-01-24 2025/week @ 2024-01-31 2673/week @ 2024-02-07 2431/week @ 2024-02-14 2667/week @ 2024-02-21 2862/week @ 2024-02-28 3016/week @ 2024-03-06 3957/week @ 2024-03-13 4356/week @ 2024-03-20 3407/week @ 2024-03-27 3539/week @ 2024-04-03 3826/week @ 2024-04-10 3465/week @ 2024-04-17

14,919 downloads per month
Used in 16 crates (4 directly)

MIT/Apache

545KB
17K SLoC

C 15K SLoC // 0.0% comments Rust 2K SLoC // 0.0% comments Alex 112 SLoC

xtensa-lx-rt

Crates.io docs.rs Crates.io Matrix

Minimal runtime/startup for Xtensa LX processors. This crate currently supports the following CPU's:

Feature Supported CPUs
esp32 ESP32 (LX6)
esp32s2 ESP32-S2 (LX7)
esp32s3 ESP32-S3 (LX7)
esp8266 ESP8266 (LX106)

I get linker errors when I build for debug

Xtensa only provides a small code space for exceptions to fit inside, when building an unoptimized build the code size of a exception handler may exceed that size, causing a linker error. To fix this, you should always optimize this crate, even in debug builds. Adding the following to your projects Cargo.toml should do the trick.

[profile.dev.package.xtensa-lx-rt]
opt-level = 'z'

License

Licensed under either of

at your option.

Contribution

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

Dependencies

~0.7–1.5MB
~33K SLoC