This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C retarget file I/O

I am using uVision 5.11.1.0 with projects based on LPCOpen examples.
My application uses C++ and C routines.

I have managed to send printf() output to UART using by implementing fputc().
I now want to direct file access to different devices.
I have followed:
www.keil.com/.../armlib_chr1358938932518.htm
and have added _sys_open() etc but on linking get many Error L6200E _sys_write multiply defined.

Ticking project options Code Generation 'Use MicroLIB' allows a successful build but my functions are not included (cannot set a break point).

I am new to uVision and could not find where the stdio_streams.o etc files get pulled in.
There is nothing under options Linker AFAIK.
The redirecting advice is not clear. An example would be helpful!