{"id":58568,"library":"stm32f4xx-hal","title":"STM32F4xx HAL","description":"Hardware abstraction layer for STM32F4 microcontrollers.","status":"active","version":"0.23.0","language":"rust","source_language":null,"source_url":"https://github.com/stm32-rs/stm32f4xx-hal","tags":["embedded","stm32","hal","microcontroller"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nstm32f4xx-hal = \"0.23.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add stm32f4xx-hal","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"Peripherals","correct":"use stm32f4xx_hal::pac::Peripherals;"}],"quickstart":{"code":"use stm32f4xx_hal::pac::Peripherals;\n\nfn main() {\n    let dp = Peripherals::take().unwrap();\n    println!(\"Peripherals acquired\");\n}","lang":"rust","description":"Takes the peripheral singleton for an STM32F4 device."},"warnings":[{"fix":"Set the correct target (e.g., thumbv7em-none-eabihf) and enable `critical-section` feature if needed.","message":"Requires a specific target and may need `critical-section` feature for some operations.","severity":"gotcha","affected_versions":">=0.23.0"}],"env_vars":null,"search_vec":"'abstract':4 'embed':9 'hal':2,11 'hardwar':3 'layer':5 'microcontrol':8,12 'stm32':10 'stm32f4':7 'stm32f4xx':1","created_at":"2026-06-16T16:28:35.468498+00:00","updated_at":"2026-06-16T16:28:35.468498+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/stm32-rs/stm32f4xx-hal","github":"https://github.com/stm32-rs/stm32f4xx-hal","docs":"https://docs.rs/stm32f4xx-hal/","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}}