This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
eCos Configuration Tool
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] eCos Configuration Tool
- From: diem dot b dot dang at delphiauto dot com
- Date: Thu, 19 Jul 2001 10:25:31 -0500
Hi All;
I'm trying to do the memory test on the board with 256k SRAM; the code is
very simple as start a location write to it and read right out by printf:
....
#define START_RAM_ADD ((volatile U8 *) 0x00000000)
....
U8 *ram_add;
.....
ram_add=START_RAM_ADD; /* assign the pointer to the beginning of add */
for(n=0;n<1000;n++) {
*ram_add = 0xAD; /* Write to the address a hex value
AD */
printf ("%d RAM address %08X %02X \n", n, ram_add, *ram_add);
ram_add++; /* Increase the address
location */
}
The problem is that the output is always stop at 0x340 sometime at 0x345 (around
800 some bytes...)
1/ Is the problem come from my eCos configuration setup limit the amonut of RAM;
if yes, where do I change in the configuration; or what item in configuratool
should be change.
2/ Does eCos has ready code to run for RAM test, If yes please show where can I
get the code.
Any Assistance is Very Appreciated;
Diem