This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: flash-support on AT91SAM7
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: "Andrew Lunn" <andrew at lunn dot ch>
- Cc: MailingList:ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Mon, 21 Jul 2008 18:25:24 +0200
- Subject: Re: [ECOS] flash-support on AT91SAM7
- References: <op.uef0eit3keg3uf@localhost> <20080717172514.GU4167@lunn.ch>
- Reply-to: Bob dot Brusa at gmail dot com
On Thu, 17 Jul 2008 19:25:14 +0200, Andrew Lunn <andrew@lunn.ch> wrote:
On Thu, Jul 17, 2008 at 05:38:33PM +0200, Robert Brusa wrote:
Hi
How do I access the flash-routine provided in eCOS?
http://ecos.sourceware.org/docs-latest/ref/ecos-flash-library.html
Andrew
Hi Andrew
I have read the documentation you provided the link for - but I still do
not understand how to use these functions. I also have seen the definition
of externC - but I do not understand its meaning or how it works.
Furthermore, I can not locate in my eCOS a file flash.h - all I have is
<pkgconf/devs_flash_at91.h> - and this looks rather empty :(
When I simply use one of those routines, eg. as follows:
flash_erase(EEPromBottom, EEPromArea, &eradr);
I get a warning "implicit declaration of function flash_erase".
When I preceed the statement with externC, the compiler produces an error:
Severity and Description Path Resource Location Creation Time Id
parse error before numeric constant IFW1 EEProm.c line
150 1216656494404 1476
Is there an example anywhere available which could help me (an eCOS-NEWBI)
to grasp the essentials? Thank you.
Robert
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss