Hello
Support for file I/O functions like fopen, frpintf requires a file system to be available on the target (or simulated target).
When you are using CodeWarrior on a bare board, there is no file system available, so there is no support for file operation in the library.
If you have an operating system available, you can create stubs for the file I/O functions to link to the OS file system primitives.
This is explained in the manual {Install}\Help\PDF\MSL_C_Reference.pdf manual.
take a look at chapter "Configuring MSL C" section "Configuring File I/O".
CrasyCat
Thank you CrasyCat. I read the document and some code from your reference.
If I want to avoid writing the platform specific routines for file I/O, is there a way for me to feed test data from my PC to the running code in the simulator? I saw there's an item of "Debug->ColdFile->fill memory" in the IDE, but not sure if I can do it in an automatic way to continuously fill a buffer for data input.
I'm using a simulator only. Thanks.
King