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

#1731 in Embedded development

Download history 2380/week @ 2024-02-03 2299/week @ 2024-02-10 2569/week @ 2024-02-17 2722/week @ 2024-02-24 2860/week @ 2024-03-02 3996/week @ 2024-03-09 4227/week @ 2024-03-16 3269/week @ 2024-03-23 3969/week @ 2024-03-30 3412/week @ 2024-04-06 4078/week @ 2024-04-13 3691/week @ 2024-04-20 3819/week @ 2024-04-27 2540/week @ 2024-05-04 2660/week @ 2024-05-11 2566/week @ 2024-05-18

12,201 downloads per month
Used in 17 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.6MB
~33K SLoC