This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
16bit RAM
- From: Sven Rehfuss <sven dot rehfuss at b2motion dot de>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 31 May 2004 17:48:10 +0200
- Subject: [ECOS] 16bit RAM
- Organization: B2motion GmbH
Hello,
again a problem using 16bit RAM.
The RAM is connected to an ARM7 (AT91R40008) and is working.
The RAM is addressed as a 16bit memory without byte select lines (the
flash is connected the same way). I can read and write but if I do a
strcpy(a,"/dev/ser0");
the string in "a" is "/dev/ser".
The next thing is reading from the serial port. With another board I get
one byte by
int read ;
len = 1 ;
cyg_io_read(handleComPort, &read, &len);
and e.g. read = 0x24 ("$").
With the new board I get
read = 0x2424 ("$$").
How can I tell eCos that the memory is a 16bit RAM (e.g. a char maybe
16bit wide)?
Regards,
Sven Rehfuß
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss