Hi,
I am working on MCB 2300 kit (NXP2378 Processor). My application requires to pass an image as input to the program and I need to open that image in write mode. I have tried using fopen (filename,"w") but it throws me the following error
Test.axf: Error: L6200E: Symbol __stdout multiply defined (by stdio_streams.o and retarget.o).
Please let me know how I can open some files for processing them in Keil uVison4.
Thanks in advance
Regards, Pavan
Thanks for your reply. I have understood that _stdout has multiple definitions in retarget.o and stdio_streams.o
When I tried to compile by removing one of the definition in retarget file it is giving compilation error as:
Test.axf: Error: L6915E: Library reports error: __use_no_semihosting_swi was requested, but _sys_open was referenced
My requirement here is to take an image as input and read the data in that image pixel by pixel and then process it.
I have realised that I have to write file system in the stack if I have to use file operations like fopen(), fclose() etc., But I am not sure how to go ahead
Please let me know how to take things further.
Hold on. Depending on what packages you have bought licenses for, Keil have support for flash file systems.
If you are going to store the file on the stack - this implies RAM - then you can drop the file system and just reserve a RAM buffer for the data.