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!
Hello Pete (and future readers),
These articles may be useful for you:
ARMLINK: ERROR: L6200E: SYMBOL __STDOUT MULTIPLY DEFINED http://www.keil.com/support/docs/3279.htm
ARM: Application Builds Without Error, But Does Not Run http://www.keil.com/support/docs/3614.htm
The 2nd article has several retarget.c examples attached. It does a good job of troubleshooting issues with semihosting, microlib, retarget.c and heap.