[En-Nut-Discussion] Question about the xflash-driver

0 views
Skip to first unread message

eisen...@suomi24.fi

unread,
Jan 4, 2006, 8:12:35 AM1/4/06
to en-nut-d...@egnite.de
Is it possible to create a file in the code while using the Xflash
driver?
To be more precise, is it possible to use standard c I/O functions to
create a file in the program code or is the Xflash just limited to use
the tftp to upload files? I have understood that the peanut-filesystem
works with standard functions(?). I'm using ethernut board 2.1.

Thank you.

Sakari Liedes
_______________________________________________
En-Nut-Discussion mailing list
En-Nut-D...@egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

Michael Fischer

unread,
Jan 5, 2006, 4:45:35 AM1/5/06
to en-nut-d...@egnite.de
Hello Sakari,

the driver provide the standard c I/O functions like Init, Read, Write,
Open...
but it is NOT possible with this version to create other files.

Take a look in the xflash.c:

- XflashOpen is limmited to "xflash.bin"
- The start address in flash is always 0 (wStartPage = 0)

You can using this driver as a starting point for your own application.
Take a look at the low level function:

XflashInit, PageRead, PageWrite

Regards,

Michael

Reply all
Reply to author
Forward
0 new messages