Fix Fysetc SD FW bootloader addr / size requirement (#18246)

This commit is contained in:
ModMike 2020-06-16 03:39:53 -04:00 committed by GitHub
parent c4b11e03b9
commit 749589b088
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
MEMORY MEMORY
{ {
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K
rom (rx) : ORIGIN = 0x08010000, LENGTH = 256K - 64K rom (rx) : ORIGIN = 0x08008000, LENGTH = 256K - 32K
} }
/* Provide memory region aliases for common.inc */ /* Provide memory region aliases for common.inc */

View file

@ -3,11 +3,11 @@ from os.path import join
from os.path import expandvars from os.path import expandvars
Import("env") Import("env")
# Relocate firmware from 0x08000000 to 0x08010000 # Relocate firmware from 0x08000000 to 0x08008000
#for define in env['CPPDEFINES']: #for define in env['CPPDEFINES']:
# if define[0] == "VECT_TAB_ADDR": # if define[0] == "VECT_TAB_ADDR":
# env['CPPDEFINES'].remove(define) # env['CPPDEFINES'].remove(define)
#env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08010000")) #env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08008000"))
#custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld") #custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld")
#for i, flag in enumerate(env["LINKFLAGS"]): #for i, flag in enumerate(env["LINKFLAGS"]):