This is the mail archive of the ecos-discuss@sources.redhat.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]
Other format: [Raw text]

16bit RAM


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


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