This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
comments on flash2.c testcase
- From: "Martin Laabs" <martin dot laabs at mailbox dot tu-dresden dot de>
- To: "ecos-discuss at ecos dot sourceware dot org" <ecos-discuss at ecos dot sourceware dot org>
- Date: Mon, 24 Nov 2008 20:39:10 +0100
- Subject: [ECOS] comments on flash2.c testcase
Hi,
the testprogram flash2.c in packages/devs/flash/synth/current/tests/flash2.c
reports false fails when there is no x8-bit flash.
This happens because some (most/all?) flash chips with a 16 bit interface
(32bit are rare) do only support 16bit writes.
The flash2.c program acts on bytes and might "hit" (un)fortunately an odd
flash address. Since the driver is unable to write only a single byte
it has to fill the other byte with some stuff.
This means that the program might "detects" errors at the boundaries of
the written testdata.
Greetings,
Martin L.
PS: Yes - I know this test is for the synth target - but it is also usefull
to test real devices.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss