TMC serial multiplexer, FYSETC AIO-II (#18080)
This commit is contained in:
@ -2,7 +2,10 @@ from os.path import join
|
||||
from os.path import expandvars
|
||||
Import("env", "projenv")
|
||||
|
||||
# Relocate firmware from 0x08000000 to 0x08002000
|
||||
# Relocate firmware from 0x08000000 to 0x08010000
|
||||
# for define in env['CPPDEFINES']:
|
||||
# if define[0] == "VECT_TAB_ADDR":
|
||||
# env['CPPDEFINES'].remove(define)
|
||||
#env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
|
||||
#env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000"))
|
||||
|
||||
@ -14,14 +17,6 @@ env.AddPostAction(
|
||||
"\"" + join("$BUILD_DIR","${PROGNAME}.hex") + "\"", # Note: $BUILD_DIR is a full path
|
||||
]), "Building $TARGET"))
|
||||
|
||||
# please keep $SOURCE variable, it will be replaced with a path to firmware
|
||||
|
||||
# Generic
|
||||
#env.Replace(
|
||||
# UPLOADER="serial_upload.bat"
|
||||
# UPLOADCMD="$UPLOADER stm32loader.py $SOURCE"
|
||||
#)
|
||||
|
||||
# In-line command with arguments
|
||||
UPLOAD_TOOL="stm32flash"
|
||||
platform = env.PioPlatform()
|
||||
@ -32,12 +27,3 @@ env.Replace(
|
||||
UPLOADER=UPLOAD_TOOL,
|
||||
UPLOADCMD=expandvars(UPLOAD_TOOL + " -v -i rts,-dtr,dtr -R -b 115200 -g 0x8000000 -w \"" + join("$BUILD_DIR","${PROGNAME}.hex")+"\"" + " $UPLOAD_PORT")
|
||||
)
|
||||
|
||||
# Python callback
|
||||
#def on_upload(source, target, env):
|
||||
# print source, target
|
||||
# firmware_path = str(source[0])
|
||||
# # do something
|
||||
# env.Execute(".\serial_upload.bat")
|
||||
|
||||
#env.Replace(UPLOADCMD=on_upload)
|
||||
|
Reference in New Issue
Block a user