Manual Build GNU-ARM project from Command line

<< Click to Display Table of Contents >>

Navigation:  Tips & Tricks > Compilers > GNU-ARM >

Manual Build GNU-ARM project from Command line

Previous pageReturn to chapter overviewNext page

1. Prepare the source code.

manualbuild_preparesrccode

2. Open the directory of source files, delete .hex and .bin file to make sure they're re-created from next build process.

manualbuild_delete_old_bin

3. Run command line prompt (cmd.exe), change directory (cd) to source files location. Then run <modelname>.bat from command line console.

manualbuild_runbat_build

4. Console log after build process success. Now, new .hex and .bin files re-created.

manualbuild_build_success

5. Program the output file to MCU board with ST-Link Utilities (use only one of file format, .hex or .bin).

oST-LINK/V2 download page (You may already done this).
oReference and Instruction: UM0892: STM32 ST-LINK Utility software description