Registry / logging / cortex-m-log

cortex-m-log

JSON →
library0.8.0rscratesunverified

Logging facilities for Cortex-M processors in embedded Rust.

# Cargo.toml [dependencies] cortex-m-log = "0.8.0"
INSTALL
IMPORT
SIG · CORTEX-M-LOG
C
cortex-m-log
loggingrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Logger
✓ use cortex_m_log::log::Logger;

Initialize a logger using ITM output.

use cortex_m_log::log::Logger; use cortex_m_log::printer::itm::ItmPrinter; fn main() { let printer = ItmPrinter::new(); let mut logger = Logger::new(printer); logger.log("Hello from Cortex-M!"); }
Debug
Known issues
gotchaRequires hardware support for ITM or semihosting.
fix
Ensure your microcontroller supports ITM or use a different printer (e.g., semihosting).
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
40
Resources
cortex-m-log — cargo add cortex-m-log · libregistry