Hello!
I downloaded
Segger Eval Software (emFile, emWin, embOS/IP, embOS, emUSB-Device, emUSB-Host) for Keil MDK (tested with V4.50), install and run examples. I need use emUSBH + emFS + emOS for read and write some information on USB Stick (Mass Storage Device). I runed example OS_USBH_MSD.c and tested functionality this library. Test board KEIL MCB1700(LPC176).
I don't know why, when I write some text information in file TestFile.txt on USB stick it takes a lot time (about 7 seconds for 100 rows - 3kbyte).
Example code
Display All
I think it must be more fast than 7 seconds. How set high speed? What i do incorrect?
I downloaded
Segger Eval Software (emFile, emWin, embOS/IP, embOS, emUSB-Device, emUSB-Host) for Keil MDK (tested with V4.50), install and run examples. I need use emUSBH + emFS + emOS for read and write some information on USB Stick (Mass Storage Device). I runed example OS_USBH_MSD.c and tested functionality this library. Test board KEIL MCB1700(LPC176).
I don't know why, when I write some text information in file TestFile.txt on USB stick it takes a lot time (about 7 seconds for 100 rows - 3kbyte).
Example code
Source Code
- static void _CreateFile(const char * sPath) {
- FS_FILE * pFile;
- char ac[40];
- sprintf(&ac[0], "%s\\TestFile.txt", sPath);
- printf("\nCreating file %s...", ac);
- pFile = FS_FOpen(&ac[0], "w");
- if (pFile) {
- sprintf(ac, "1-2-3-4-5-6-7-8-9-0\r\n");
- for (i=0;i<100;i++) {
- FS_Write(pFile, ac, strlen(ac));
- }
- FS_FClose(pFile);
- printf("Ok\n");
- } else {
- printf("Failed. Could not create file\n");
- }
- }
I think it must be more fast than 7 seconds. How set high speed? What i do incorrect?