2007-04-20 10:47 AM
2011-05-17 12:41 AM
Hi all ,
I was added a fopen function in IAP , my board is STR910-EVAL . ex: inFile=fopen(''RTOSDemo.lzma'',''ab+''); but it will cause other function cannot execute successfully . My question is : If there is no filesystem , can I use fopen or fwrite ? Thank you!2011-05-17 12:41 AM
I am using IAR Embedded Workbench .
I can compile and link my code successfully . But it cannot execute normally . Other normal functions will be effected by fopen and cannot execute normally . ( the functions are before fopen ) I don't know what's going on .2011-05-17 12:41 AM
I assume you are using the IAR DLIB-full library when you compile, and you have written your our __open, __write, __read and __close routines to access your ''file system'' (ie serial device, flash device, socket, etc). If so, it should work. I'm using it now to open serial devices, MMC flash card and uIP socket.
The only issue I had was being dumb, and using close() instead of fclose(). This caused fopen to run out of file stream descriptors.