Fix compilation error for MKS Robin (#13506)

This commit is contained in:
Alexander Gavrilenko
2019-03-29 20:40:24 +03:00
committed by Scott Lahteine
parent c6dbe6e9d6
commit 6d9aaca082
6 changed files with 26 additions and 7 deletions

View File

@ -1,7 +1,9 @@
Import("env")
# Relocate firmware from 0x08000000 to 0x08007000
env['CPPDEFINES'].remove(("VECT_TAB_ADDR", 134217728))
for define in env['CPPDEFINES']:
if define[0] == "VECT_TAB_ADDR":
env['CPPDEFINES'].remove(define)
env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08007000"))
env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/mks_robin.ld")