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 :(
Have you added the generic flash packet?
ecosconfig add flash
The flash code in eCos is split into two part. There is the hardware
specific part, which you have already found for the AT91. There is
also a generic part which is hardware independent. You will find this
in packages/io/flash.
Andrew