5 :: set your port number. ie: for COM6 , port is 6
7 :: location of stmflashloader.exe, this is default
8 set FLASH_LOADER="C:\Program Files (x86)\STMicroelectronics\Software\Flash Loader Demonstrator\STMFlashLoader.exe"
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%:
22 -c --pn %PORT% --br 115200 --db 8 ^
23 -i STM32_Med-density_128K ^