Fix: buzzer often starts beeping continuously on ESCs read 2
[betaflight.git] / support / flash.bat
blob0e0f8000b755fe3d481de4fb89f0456ca3303426
1 @@echo OFF
3 :: User configuration
5 :: set your port number. ie: for COM6 , port is 6
6 set PORT=2
7 :: location of stmflashloader.exe, this is default
8 set FLASH_LOADER="C:\Program Files (x86)\STMicroelectronics\Software\Flash Loader Demonstrator\STMFlashLoader.exe"
9 :: path to firmware
10 set FIRMWARE="D:\baseflight.hex"
12 :: ----------------------------------------------
14 mode COM%PORT% BAUD=115200 PARITY=N DATA=8 STOP=1 XON=OFF DTR=OFF RTS=OFF
15 echo/|set /p ="R" > COM%PORT%:
17 TIMEOUT /T 3
19 cd %LOADER_PATH%
21 %FLASH_LOADER% ^
22     -c --pn %PORT% --br 115200 --db 8 ^
23     -i STM32_Med-density_128K ^
24     -e --all ^
25     -d --fn %FIRMWARE% ^
26     -r --a 0x8000000