[ECOS] eb40a

Christian Pellegrin chri@infis.univ.trieste.it
Tue Dec 10 01:20:00 GMT 2002


Hi, sorry for the bad reply but I read the list in digested mode. To
make angel and redboot/my ecos hello world app to live happly
toghether with just 256k internal SRAM I changed the eb40 target in
the following files (disclaimer I'm just starting with ecos
developement so what I'm saying can be higly inelegant altough
working, I hope to make a nice working eb40a target (with all the
diffs from this ml integrated) when I understand all the configuration
system (BTW: any suggestion on this will be appreciated :-)):

- Changed the clock speed in hal_arm_at91.cdl

- The right memory map with the following diff (first 128K ecos,
second Angel. I used the later to do the download in ram via gdb rdi):

--------8<--------------
--- oldy/mlt_arm_at91_eb40_ram.h	2002-11-17 11:51:11.000000000 
+0000
+++ mlt_arm_at91_eb40_ram.h	2002-11-17 12:24:07.000000000 +0000
@@ -10,11 +10,11 @@
 #define CYGMEM_REGION_sram (0)
 #define CYGMEM_REGION_sram_SIZE (0x1000)
 #define CYGMEM_REGION_sram_ATTR (CYGMEM_REGION_ATTR_R | 
CYGMEM_REGION_ATTR_W)
-#define CYGMEM_REGION_ram (0x2000000)
-#define CYGMEM_REGION_ram_SIZE (0x80000)
+#define CYGMEM_REGION_ram (0x2000)
+#define CYGMEM_REGION_ram_SIZE (0x1e000)
 #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | 
CYGMEM_REGION_ATTR_W)
 #ifndef __ASSEMBLER__
 extern char CYG_LABEL_NAME (__heap1) [];
 #endif
 #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1))
-#define CYGMEM_SECTION_heap1_SIZE (0x2080000 - (size_t) CYG_LABEL_NAME 
(__heap1))
+#define CYGMEM_SECTION_heap1_SIZE (0x20000 - (size_t) CYG_LABEL_NAME 
(__heap1))
--- oldy/mlt_arm_at91_eb40_ram.ldi	2002-11-17 11:51:11.000000000 
+0000
+++ mlt_arm_at91_eb40_ram.ldi	2002-11-17 12:25:44.000000000 +0000
@@ -7,14 +7,14 @@
 MEMORY
 {
     sram : ORIGIN = 0, LENGTH = 0x1000
-    ram : ORIGIN = 0x2000000, LENGTH = 0x80000
+    ram : ORIGIN = 0x2000, LENGTH = 0x1e000
 }
 
 SECTIONS
 {
     SECTIONS_BEGIN
     SECTION_fixed_vectors (sram, 0x20, LMA_EQ_VMA)
-    SECTION_rom_vectors (ram, 0x2020000, LMA_EQ_VMA)
+    SECTION_rom_vectors (ram, 0x2000, LMA_EQ_VMA)
     SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
     SECTION_rodata (ram, ALIGN (0x4), LMA_EQ_VMA)
--- oldy/mlt_arm_at91_eb40_ram.mlt	2002-11-17 11:51:11.000000000 
+0000
+++ mlt_arm_at91_eb40_ram.mlt	2002-11-17 12:24:42.000000000 +0000
@@ -1,8 +1,8 @@
 version 0
 region sram 0 1000 0 !On-chip SRAM
-region ram 2000000 80000 0 !
+region ram 2000 1e000 0 !
 section fixed_vectors 0 1 0 1 1 0 1 0 20 20 !
-section rom_vectors 0 1 0 1 1 1 1 1 2020000 2020000 text text !
+section rom_vectors 0 1 0 1 1 1 1 1 2000 2000 text text !
 section text 0 4 0 1 0 1 0 1 fini fini !
 section fini 0 4 0 1 0 1 0 1 rodata rodata !
 section rodata 0 4 0 1 0 1 0 1 rodata1 rodata1 !
--------8<--------------


Bye!






-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list