µTasker Forum
µTasker Forum => µTasker general => Topic started by: tr111 on September 17, 2007, 09:01:56 AM
-
hello:
I have #define FLASH_FILE_SYSTEM,but I don't know how to write data to the FLASH!
look like I have a file asc16.bin ,how can I write asc16.bin to the FLASH!
I find the #ifdef _WINDOWS at the fnWriteLongWordFlash(); what the #ifdef _WINDOWS 's function!
In the vxworks' tffs file system I can send FILE to the flash by ftp client and I can use the FILE by use the FOPEN(); Now I have #define USE_FTP,
and do this: ftp://ADMIN:uTasker@192.168.0.3 ,but I can't send file to the flash in Utasker ,how can I use the file!
WHY!??
-
Hi
Please see the following document for full details of how the uFileSystem operates and how it is used in a project:
http://www.utasker.com/docs/uTasker/uTaskerFileSystem.PDF
For transfering files to the target using FTP, see the guide in the uTasker tutorial (page 5/34):
http://www.utasker.com/docs/M5223X/uTaskerV1.3-Tutorial-M5223X_003.PDF
Depending on the browser you are using you may have to enable passive FTP support (FTP_PASV_SUPPORT). For a full discussion of configuring and using FTP with common browsers see:
http://www.utasker.com/docs/uTasker/uTaskerFTP.PDF
Unless you have enabled authentication when logging in, you can also simply connect using ftp://192.168.0.3
File transfer with IE6.0 is the easiest because it allows simple drag-and-drop to the window.
All of the user commands such as uOpenFile(), uGetFileLength(), uGetFileData(), uFileWrite(), uFileErase() etc. are discussed in the uFileSystem document.
You will find that the uFileSystem is a very small and highly efficient method of working with files on a small footprint embedded system (it occupies about 2..3k of program space, including parameter system support) so can not be compared or used exactly like VxWorks TFFS!! However it allows a high level of comfort for typical file requirements in the type of projects the uTasker is intended for.
Good luck
Regards
Mark
-
thank you!