Page 1 of 1

Load firmware with st-link Linux

Posted: Thu Mar 29, 2012 4:36 pm
by PavloT
My 2-cents about STM32 under Linux:
Today I notice that st-link implementation from Texane has flash utility.
Usage is the following (tested on STM32VL-Discovery):

Code: Select all

st-flash write v1 demos/ARMCM3-STM32F100-DISCOVERY/build/ch.bin 0x8000000


Quite useful to use in make files when you don't need a debug session.

Re: Load firmware with st-link Linux

Posted: Thu Mar 29, 2012 5:56 pm
by Giovanni
Thanks for sharing :-)

Giovanni

Re: Load firmware with st-link Linux

Posted: Thu Mar 29, 2012 6:25 pm
by Badger
here's the command for using dfu-util with the device in boot loader mode and connected via usb:

Code: Select all

dfu-util -a 0 --dfuse-address 0x08000000 -D build/ch.bin

Re: Load firmware with st-link Linux

Posted: Sat Mar 31, 2012 12:46 pm
by mobyfab

Re: Load firmware with st-link Linux

Posted: Mon Apr 02, 2012 9:46 pm
by PavloT

It is really nice tool (at least for my Windows friends who hate CLI), but seems it is not usable for STM32VLDiscovery

Does qstlink2 support Stlink v1?
I saw this message in 49-stlinkv2.rules

Code: Select all

# stm32 discovery boards, with onboard st/linkv2
# ie, STM32L, STM32F4.
# STM32VL has st/linkv1, which is quite different

Re: Load firmware with st-link Linux

Posted: Wed Apr 04, 2012 4:09 pm
by mobyfab
It only supports stlink V2. it does GUI and CLI.