aboutsummaryrefslogtreecommitdiffstats
path: root/stm32conf
diff options
context:
space:
mode:
Diffstat (limited to 'stm32conf')
-rw-r--r--stm32conf/lanchon-stm32-user-rom.ld8
1 files changed, 8 insertions, 0 deletions
diff --git a/stm32conf/lanchon-stm32-user-rom.ld b/stm32conf/lanchon-stm32-user-rom.ld
index e6825e5..8fbf4b7 100644
--- a/stm32conf/lanchon-stm32-user-rom.ld
+++ b/stm32conf/lanchon-stm32-user-rom.ld
@@ -134,6 +134,14 @@ SECTIONS
. = ALIGN(8);
_etext = .;
} >rom
+
+/* expose a custom rom only section */
+ .USER_FLASH :
+ {
+ *(.USER_FLASH)
+ } >rom
+
+
/* __cs3_region_end_rom is deprecated */
__cs3_region_end_rom = __cs3_region_start_rom + LENGTH(rom);
__cs3_region_size_rom = LENGTH(rom);