|
@@ -1,6 +1,8 @@
|
1
|
1
|
from os.path import join
|
2
|
2
|
Import("env", "projenv")
|
3
|
3
|
|
|
4
|
+platform = env.PioPlatform()
|
|
5
|
+
|
4
|
6
|
# Relocate firmware from 0x08000000 to 0x08002000
|
5
|
7
|
#env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
|
6
|
8
|
#env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000"))
|
|
@@ -27,7 +29,8 @@ env.AddPostAction(
|
27
|
29
|
|
28
|
30
|
# In-line command with arguments
|
29
|
31
|
env.Replace(
|
30
|
|
- UPLOADCMD="stm32flash -v -i rts,-dtr,dtr " + '$UPLOAD_PORT' + " -R -w $BUILD_DIR/${PROGNAME}.hex"
|
|
32
|
+ UPLOADER=platform.get_package_dir("tool-stm32duino") + '/stm32flash/stm32flash',
|
|
33
|
+ UPLOADCMD='"${UPLOADER}" -v -i rts,-dtr,dtr,-rts -R -b 115200 -g 0x8000000 -w "${BUILD_DIR}/${PROGNAME}.hex" ${UPLOAD_PORT}'
|
31
|
34
|
)
|
32
|
35
|
|
33
|
36
|
|