flash_core2_ble.sh 585 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -x -e
  3. COPRO_DIR="lib/STM32CubeWB/Projects/STM32WB_Copro_Wireless_Binaries/STM32WB5x"
  4. STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_FUS_fw_1_0_2.bin 0x080EC000 || true
  5. STM32_Programmer_CLI -c port=swd
  6. STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_FUS_fw.bin 0x080EC000 || true
  7. STM32_Programmer_CLI -c port=swd
  8. STM32_Programmer_CLI -c port=swd -fwdelete
  9. STM32_Programmer_CLI -c port=swd -fwupgrade $COPRO_DIR/stm32wb5x_BLE_Stack_full_fw.bin 0x080CB000 firstinstall=0
  10. STM32_Programmer_CLI -c port=swd -ob nSWBOOT0=1 nBOOT0=1