Initial commit

This commit is contained in:
Martin Jäger
2016-08-02 14:05:23 +02:00
parent 6bf5d8e490
commit 663f15a9b2
16 changed files with 2309 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
from SCons.Script import DefaultEnvironment
from os.path import join
env = DefaultEnvironment()
env.Replace(
UPLOADER=join("$PIOPACKAGES_DIR", "tool-stlink", "st-flash"),
MYUPLOADERFLAGS=[
"--reset", # reset board before and after flashing
"write", # write in flash
"$SOURCES", # firmware path to flash
"0x08000000" # flash start adress
],
UPLOADCMD='$UPLOADER $MYUPLOADERFLAGS',
)