To use stlink, make sure you installed the
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:
Now, when you start your atom next time, you might be asked to install the some dependencies.
.binfile (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
fileto flash (and a
addressif a .bin file is used).
shift-alt-sto flash your board.
The following could be set in the stlink panel:
board serialwhich is only needed if you have more than one board connected.
fileto flash. Could be a .bin or .hex file.
resetswitch 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 panel
shift-alt-s): flash specified file
shift-alt-e): erase chip
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.