cancel
Showing results for 
Search instead for 
Did you mean: 

*** Command Line Programmer for STM32F107

henriaghaei
Associate II
Posted on May 19, 2016 at 16:47

I used to work with 

http://www.ti.com/product/MSP430F47197

 and I found out that there is a Flasher which gives you this ability to load the code through a batch file. 

So, I am just wondering if you guys are familiar with such thing other than using IAR or other IDEs?

#command-line #lmgtfy:-stm32-resources #stm32f107
6 REPLIES 6
Posted on May 19, 2016 at 17:53

Both the

http://www.st.com/content/st_com/en/products/embedded-software/development-tool-software/stsw-link004.html

(JTAG/SWD) and

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html

(Serial) come with command line versions, the latter also having source. There are also a number of open source projects supporting the serial protocol, the protocol is well documented, and not inherently complicated.

There is also the

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stvp-stm32.html

.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
henriaghaei
Associate II
Posted on May 19, 2016 at 19:49

But, all I can see is only .exe files and no actual batch file to use!

Posted on May 19, 2016 at 21:18

Ok, but what do you think batch files execute?

Run the command line utilities, learn the usage/parameters suitable for your part and mode of connectivity, and then put that in a .BAT file.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
henriaghaei
Associate II
Posted on May 19, 2016 at 21:26

I got UM0892! But needs HEX file, I have OUT! Any idea to convert it to hex?

Posted on May 20, 2016 at 00:39

Not sure what tool chain you are using.

I'm pretty sure that ST-LINK can take binary files, and that IAR and KEIL can output .HEX using a project output check-box selection.

FromELF or objcopy/objdump type tools can generate .HEX from .ELF/.AXF type files.

For HEX there are also tools like srecords

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
henriaghaei
Associate II
Posted on August 31, 2016 at 15:14

Clive1,

Finally nailed it down! I used J-Link command line programmer.