2021-01-29 14:18:10 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x -e
|
|
|
|
|
2021-06-23 17:58:44 +03:00
|
|
|
SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
|
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
|
|
COPRO_DIR="$PROJECT_DIR/lib/STM32CubeWB/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x"
|
2021-01-29 14:18:10 +03:00
|
|
|
|
2021-08-17 12:41:08 +03:00
|
|
|
STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_FUS_fw_for_fus_0_5_3.bin 0x080EC000 || true
|
2021-01-29 14:18:10 +03:00
|
|
|
STM32_Programmer_CLI -c port=swd
|
|
|
|
|
|
|
|
STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_FUS_fw.bin 0x080EC000 || true
|
|
|
|
STM32_Programmer_CLI -c port=swd
|
|
|
|
|
|
|
|
STM32_Programmer_CLI -c port=swd -fwdelete
|
|
|
|
|
2021-08-17 12:41:08 +03:00
|
|
|
STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_BLE_Stack_full_fw.bin 0x080CA000 firstinstall=0
|
2021-01-29 14:18:10 +03:00
|
|
|
|
|
|
|
STM32_Programmer_CLI -c port=swd -ob nSWBOOT0=1 nBOOT0=1
|
|
|
|
|