This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: how to measure time from within flash_program_buf
- From: Andrew Lunn <andrew at lunn dot ch>
- To: "Neundorf, Alexander" <Alexander dot Neundorf at jenoptik dot com>
- Cc: eCos Disuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 23 May 2006 11:35:23 +0200
- Subject: Re: [ECOS] how to measure time from within flash_program_buf
- References: <5A8A17126B73AC4C83968F6C4505E3C50431601D@JO-EX01.JENOPTIK.NET>
> These are all the issues we also thought about but didn't come to a
> nice solution. While making the loop count a CDL value is better
> than hardcoding it, it is still not really good.
Implementing a time based solution is also not really good since it
adds bloat.
99% of hardware will always run at the same speed and have the same
flash access speed. You only once need to calibrate the loop and then
it is fixed for the hardware. So there is no real need to dynamically
calibrate your delay loop.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss