Browse Source

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

ModMike 4 years ago
parent
commit
749589b088
No account linked to committer's email address

+ 1
- 1
buildroot/share/PlatformIO/ldscripts/fysetc_stm32f103rc.ld View File

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

+ 2
- 2
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py View File

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

Loading…
Cancel
Save