BigTreeTech SKR Mini v1.1 (#14041)
This commit is contained in:
committed by
Scott Lahteine
parent
f30b89953d
commit
b0a4ea79b8
14
buildroot/share/PlatformIO/ldscripts/STM32F1_SKR_MINI.ld
Normal file
14
buildroot/share/PlatformIO/ldscripts/STM32F1_SKR_MINI.ld
Normal file
@ -0,0 +1,14 @@
|
||||
MEMORY
|
||||
{
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 48K - 40
|
||||
rom (rx) : ORIGIN = 0x08007000, LENGTH = 256K - 28K
|
||||
}
|
||||
|
||||
/* Provide memory region aliases for common.inc */
|
||||
REGION_ALIAS("REGION_TEXT", rom);
|
||||
REGION_ALIAS("REGION_DATA", ram);
|
||||
REGION_ALIAS("REGION_BSS", ram);
|
||||
REGION_ALIAS("REGION_RODATA", rom);
|
||||
|
||||
/* Let common.inc handle the real work. */
|
||||
INCLUDE common.inc
|
8
buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
Normal file
8
buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
Normal file
@ -0,0 +1,8 @@
|
||||
Import("env")
|
||||
|
||||
# Relocate firmware from 0x08000000 to 0x08007000
|
||||
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/STM32F1_SKR_MINI.ld")
|
Reference in New Issue
Block a user