Browse Source

Merge pull request #225 from xobs/fomu-offset-fix

bsp: fomu: fix rom address for example programs
Ha Thach 6 years ago
parent
commit
64b05a1d5f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hw/bsp/fomu/fomu.ld

+ 2 - 2
hw/bsp/fomu/fomu.ld

@@ -7,7 +7,7 @@ MEMORY {
 	csr : ORIGIN = 0x60000000, LENGTH = 0x01000000
 	vexriscv_debug : ORIGIN = 0xf00f0000, LENGTH = 0x00000100
 	ram : ORIGIN = 0x10000000, LENGTH = 0x00020000
-	rom : ORIGIN = 0x2001a000, LENGTH = 0x00200000 - 0x1a000
+	rom : ORIGIN = 0x20040000, LENGTH = 0x00200000 - 0x40000
 }
 
 /* The stack size used by the application. NOTE: you need to adjust according to your application. */
@@ -101,4 +101,4 @@ SECTIONS
 
     . = ALIGN(4);
     _end = . ;
-}
+}