Loading...
 
Skip to main content

System Workbench for STM32


Re: ac6_flasher execute directly

In a command prompt, you can get the usage with -help:

C:\...flasher>ac6_stm32flash.exe 
Usage ac6-stm32-flash [options] [-loader filename] [-binary filename]
Options :
        -prog                    Program the connected STM32 target
        -erasesector                     Erase the sectors of the STM32 target
        -erasechip                       Erase the STM32 target
        -erasechip                       Erase the STM32 target
        Required option to program :
        -loader                        Pass the algorithm loader
        -binary                        Pass the binary file

(and yes, the -erasechip line is duplicated!)
For example, to program an F429 with the LCD16.bin code in D:\bins:

C:\...flasher>stm32flash.exe -prog -loader algo\stm32f4xx.bin -binary D:\bins\LCD16.bin
ST-Link opened
INIT ... running
PROGRAMING ... start
progress:25%
progress:50%
progress:75%
PROGRAMING ... done
UNIT ... running
status = 1
Done


Hope this helps,
newbrain