This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] AEB-1C memory SFR settings...


Hi All,

Maybe I missed some obvious way of doing this, but after checking out
the memory SFR settings on the AEB-1C I have, the board is configured
to use only 128 kB of the available RAM...

So this patch fixes that problem right at startup, and makes the full
256 kB RAM available.

If there's a better way of doing this please let me know- but this works
for me.

Srdjan

(this is for $(BASEPATH)/packages/hal/arm/arch/current/src/vectors.S)

--- vectors.S~	Wed Dec  1 13:33:38 1999
+++ vectors.S	Wed Dec  8 14:50:26 1999
@@ -142,6 +142,18 @@
         // Come here to reset board
 warm_reset:                 
 
+#ifndef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
+	// Added to have 256 kB RAM available on AEB-1C with weird Flash
+	mvn r3, #24320
+	sub r3, r3, #243
+	mov r2, #294912
+	str r2, [r3] // set 0xFFFFA00C (Start3) to 0x48000
+	mvn r3, #24320
+	sub r3, r3, #215
+	mov r2, #294912
+	str r2, [r3] // set 0xFFFFA028 (Stop 2) to 0x48000
+#endif
+	
 #if defined(CYG_HAL_STARTUP_RAM) && \
     !defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
 	mrs	r7,cpsr			// move back to IRQ mode

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]