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

Stop of the program at presence of the functions printf().

Hi !
Have ULINK and MCB2100 with processor LPC2119.
In an effort insert in any project function printf() , program in step of execution stops in file "STARTUP.S" on operator:

 PAbt_Handler B PAbt_Handler


Compiler and linker give 0 errors, 0 warning. Such problem so appears while working with simulator.
The Port UART1 is initialized in accordance with your example: "Hello.Uv2". The File "stdio.h" is connected.

Alex.

Parents
  • I have the same problem, but I use RTX...
    So, I create my own project, add few my file.
    Compile... And I have a small problem:
    Error: L6200E: Symbol __stdout multiply defined (by retarget.o and stdio.o).
    I remove from file Retarget.c:
    //FILE __stdout;
    All is work, tasks is runing. But, when I want use my function I have linker error:
    L6915E: Library reports error: __use_no_semihosting_swi was requested, but _sys_open was referenced
    I don't understand why. May be it's the same problem?

Reply
  • I have the same problem, but I use RTX...
    So, I create my own project, add few my file.
    Compile... And I have a small problem:
    Error: L6200E: Symbol __stdout multiply defined (by retarget.o and stdio.o).
    I remove from file Retarget.c:
    //FILE __stdout;
    All is work, tasks is runing. But, when I want use my function I have linker error:
    L6915E: Library reports error: __use_no_semihosting_swi was requested, but _sys_open was referenced
    I don't understand why. May be it's the same problem?

Children
No data