mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-15 04:03:15 +00:00
Add stm32 serial upload method which includes bootloader (#180)
This commit is contained in:
@@ -18,6 +18,9 @@ case "$MULTI_BOARD" in
|
||||
MULTI_STM32_NO_BOOT)
|
||||
MULTI_TYPE=stm
|
||||
;;
|
||||
MULTI_STM32_WITH_BOOT)
|
||||
MULTI_TYPE=stm
|
||||
;;
|
||||
MULTI_STM32_FLASH_FROM_TX)
|
||||
MULTI_TYPE=stm
|
||||
;;
|
||||
|
||||
11
BootLoaders/Boards/stm32/tools/macosx/serial_upload_inc_bootloader
Executable file
11
BootLoaders/Boards/stm32/tools/macosx/serial_upload_inc_bootloader
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
port=$1
|
||||
addr=$2
|
||||
fwfile=$3
|
||||
bootloaderfile=$4
|
||||
|
||||
$(dirname $0)/stm32flash/stm32flash -o -b 57600 /dev/"$port"
|
||||
$(dirname $0)/stm32flash/stm32flash -v -g 0x8000000 -b 57600 -w "$bootloaderfile" /dev/"$port"
|
||||
$(dirname $0)/stm32flash/stm32flash -v -s 8 -e 0 -g 0x8002000 -b 57600 -w "$fwfile" /dev/"$port"
|
||||
Reference in New Issue
Block a user