Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrenslehner committed Jan 1, 2025
1 parent 7ec5642 commit 86c064c
Show file tree
Hide file tree
Showing 5 changed files with 1,208 additions and 1,189 deletions.
8 changes: 7 additions & 1 deletion stm32cubeprogrammer-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,13 @@ fn main() -> Result<(), anyhow::Error> {

if flash_ble_stack {
programmer
.upgrade_wireless_stack(&ble_stack.path, ble_stack.address.0, false, true, true)
.upgrade_wireless_stack(
&ble_stack.path,
ble_stack.address.0,
false,
true,
true,
)
.with_context(|| "Failed to update BLE stack")?;
} else {
programmer
Expand Down
6 changes: 6 additions & 0 deletions stm32cubeprogrammer-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ pub const FLASH_BASE_ADDRESS: u32 = 0x08000000;
/// Standard base address of STM32 RAM
pub const SRAM_BASE_ADDRESS: u32 = 0x20000000;

/// Base address of SRAM2A stm32wb5x (shared RAM containing FUS info)
pub const SRAM2A_BASE_ADDRESS_STM32WB5X: u32 = 0x20030000;

/// Base address of SRAM2A stm32wb1x (shared RAM containing FUS info)
pub const SRAM2A_BASE_ADDRESS_STM32WB1X: u32 = 0x20003000;

#[cfg(windows)]
pub const PATH_API_LIBRARY_RELATIVE: &str = "api/lib/CubeProgrammer_API.dll";

Expand Down
Loading

0 comments on commit 86c064c

Please sign in to comment.