{"id":57170,"library":"cortex-m","title":"Cortex-M","description":"Low-level access to Cortex-M processors, including registers and intrinsics.","status":"active","version":"0.7.7","language":"rust","source_language":null,"source_url":"https://github.com/rust-embedded/cortex-m","tags":["cortex-m","embedded","arm","low-level"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\ncortex-m = \"0.7.7\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add cortex-m","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"nop","correct":"use cortex_m::asm::nop;"}],"quickstart":{"code":"#![no_std]\n#![no_main]\n\nuse cortex_m::asm;\nuse panic_halt as _;\n\n#[cortex_m_rt::entry]\nfn main() -> ! {\n    loop {\n        asm::nop();\n    }\n}","lang":"rust","description":"A minimal no_std program for Cortex-M that executes NOP instructions in a loop."},"warnings":[{"fix":"Add cortex-m-rt and set the correct target.","message":"Requires a target like thumbv7em-none-eabi and the cortex-m-rt crate for entry point.","severity":"gotcha","affected_versions":">=0.7.0"}],"env_vars":null,"search_vec":"'access':7 'arm':21 'cortex':2,10,18 'cortex-m':1,9,17 'embed':20 'includ':13 'intrins':16 'level':6,24 'low':5,23 'low-level':4,22 'm':3,11,19 'processor':12 'regist':14","created_at":"2026-06-16T15:30:57.652187+00:00","updated_at":"2026-06-16T15:30:57.652187+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/rust-embedded/cortex-m","github":"https://github.com/rust-embedded/cortex-m","docs":"https://docs.rs/cortex-m/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}