[rtems commit] bsp/lpc32xx: Fix linker command file

Sebastian Huber sebh at rtems.org
Thu Nov 21 07:05:54 UTC 2019


Module:    rtems
Branch:    master
Commit:    741fe4708895d8289e1ea91d4ffd856d5c725918
Changeset: http://git.rtems.org/rtems/commit/?id=741fe4708895d8289e1ea91d4ffd856d5c725918

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Nov 19 16:02:50 2019 +0100

bsp/lpc32xx: Fix linker command file

---

 bsps/arm/lpc32xx/start/linkcmds.lpc32xx_phycore | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bsps/arm/lpc32xx/start/linkcmds.lpc32xx_phycore b/bsps/arm/lpc32xx/start/linkcmds.lpc32xx_phycore
index b79447f..2459da2 100644
--- a/bsps/arm/lpc32xx/start/linkcmds.lpc32xx_phycore
+++ b/bsps/arm/lpc32xx/start/linkcmds.lpc32xx_phycore
@@ -38,7 +38,8 @@
 MEMORY {
 	RAM_INT : ORIGIN = 0x08000000, LENGTH = 256k
 	RAM_MMU : ORIGIN = 0x80000000, LENGTH = 16k /* SDRAM on DYCS0 */
-	RAM_EXT : ORIGIN = 0x80004000, LENGTH = 64M - 16k /* SDRAM on DYCS0 */
+	RAM_SCRATCH : ORIGIN = 0x80004000, LENGTH = 4k /* SDRAM on DYCS0 */
+	RAM_EXT : ORIGIN = 0x80004000, LENGTH = 64M - 20k /* SDRAM on DYCS0 */
 	ROM_EXT : ORIGIN = 0xe0000000, LENGTH = 2M /* NOR flash on CS0 */
 }
 
@@ -60,6 +61,8 @@ REGION_ALIAS ("REGION_STACK", RAM_INT);
 REGION_ALIAS ("REGION_NOCACHE", RAM_INT);
 REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_INT);
 
+lpc32xx_scratch_area = ORIGIN (RAM_SCRATCH);
+
 bsp_stack_abt_size = DEFINED (bsp_stack_abt_size) ? bsp_stack_abt_size : 1024;
 
 bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M;



More information about the vc mailing list