This package allows you to flash your STM32/stlink V2 device from within Atom using stlink. It is meant as an extension to the build-med to allow flashing the results from the mbed-cli
build process.
stlink_settings.json
)..hex
or .bin
fileTo use stlink, make sure you installed the st-flash
and st-info
binaries on your system. See instructions here on how to get the binaries.
To install this package from the package repository:
apm install stlink
Or install from git:
cd $HOME/$MY_GIT_REPOS
git clone https://github.com/wendlers/atom-stlink
Change into the newly cloned directory and link the package into your atom install:
cd atom-stlink
apm link
Next, install required node packages:
apm install
Now, when you start your atom next time, you might be asked to install the some dependencies.
.hex
or .bin
file (if you use mbed-cli and like to compile directly from Atom, you might want to try the build-med package).shift+alt+p
(or from right click menu and selecting stlink: toggle
).file
to flash (and a address
if a .bin file is used).flash
or press shift-alt-s
to flash your board.The following could be set in the stlink panel:
board serial
which is only needed if you have more than one board connected.file
to flash. Could be a .bin or .hex file.reset
switch is turned on, the board will be reset after flashing is done.In the package settings the following could be configured:
st-flash binary
: name and optional path for the st-flash tool which comes with stlink.st-info binary
: name and optional path for the st-info tool which comes with stlink.The following functions could be performed (from the stlink panel,the menu, the context-menu or by keyboard shortcut):
shift+alt+p
): open the stlink panelshift-alt-s
): flash specified fileshift-alt-e
): erase chipGood catch. Let us know what about this package looks wrong to you, and we'll investigate right away.