From 5ed857a1254531ed7a1edabad3f36d276ad51b06 Mon Sep 17 00:00:00 2001 From: vana Date: Mon, 27 Apr 2020 19:23:10 +0200 Subject: [PATCH] Initial STM32WBx5 support Co-authored-by: Ruben De Smet ruben.de.smet@rubdos.be --- src/devices/registry.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/devices/registry.rs b/src/devices/registry.rs index 0659691..fe6cf3c 100644 --- a/src/devices/registry.rs +++ b/src/devices/registry.rs @@ -736,4 +736,27 @@ pub const REGISTRY: &[Device] = &[ log_swo: None, log_dso: Some(LogDso { krate: crates::Dso::Nrf91, features: &[] }), }, + Device { + name: "stm32wbx5", + target: "thumbv7em-none-eabihf", + flash_origin: 0x0800_0000, + ram_origin: 0x2000_0000, + platform_crate: PlatformCrate { + krate: crates::Platform::Cortexm, + flag: "cortex_m4f_r0p1", + features: &["floating-point-unit"], + }, + bindings_crate: BindingsCrate { + krate: crates::Bindings::Stm32, + flag: "stm32wbx5", + features: &[], + }, + probe_bmp: Some(ProbeBmp { device: "stm32wbx5" }), + probe_openocd: Some(ProbeOpenocd { + arguments: &["-f", "interface/stlink.cfg", "-f", "target/stm32wbx5.cfg"], + }), + probe_jlink: None, + log_swo: Some(LogSwo { reset_freq: 4_000_000 }), + log_dso: None, + }, ];