Skip to content

Commit

Permalink
Fix FYSETC stm32flash usage (MarlinFirmware#14703)
Browse files Browse the repository at this point in the history
  • Loading branch information
trouch authored and thinkyhead committed Jul 22, 2019
1 parent 5c3ec63 commit a6bec53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from os.path import join
Import("env", "projenv")

platform = env.PioPlatform()

# Relocate firmware from 0x08000000 to 0x08002000
#env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
#env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000"))
Expand All @@ -27,7 +29,8 @@

# In-line command with arguments
env.Replace(
UPLOADCMD="stm32flash -v -i rts,-dtr,dtr " + '$UPLOAD_PORT' + " -R -w $BUILD_DIR/${PROGNAME}.hex"
UPLOADER=platform.get_package_dir("tool-stm32duino") + '/stm32flash/stm32flash',
UPLOADCMD='"${UPLOADER}" -v -i rts,-dtr,dtr,-rts -R -b 115200 -g 0x8000000 -w "${BUILD_DIR}/${PROGNAME}.hex" ${UPLOAD_PORT}'
)


Expand Down

0 comments on commit a6bec53

Please sign in to comment.