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

FILE operations for MCB 2300

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

Parents
  • 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.

    Regards,
    Pavan

Reply
  • 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.

    Regards,
    Pavan

Children