[ECOS] comments on flash2.c testcase
Tue Nov 25 11:49:00 GMT 2008
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.
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
More information about the Ecos-discuss