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

RVDS on ADuC7026 - Totally Confused printf/putchar RV compiler

Note: This was originally posted on 11th January 2012 at http://forums.arm.com

I have recompiled working code with the RV compiler...

My putchar routine drives the COMTX directly and works.fine with..my printf's seems prinf calls putchar

NOW

with this RV compiler printf does not work

I noticed that the retarget.c file has sendchar but no putchar, the stdio.h refers to putchar but no sendchar.

I modified the sendchar routine to look like my putchar but still no output

i comented out all references to putchar but did not get any linker errors because printf could not find it.

How do i get printf's to work with my own output routine (putchar or sendchar...neither seem to work)
Parents
  • Note: This was originally posted on 11th January 2012 at http://forums.arm.com


    Do you mean the RVDS example?

    If so, looking over it again - sendchar() is not a retargeted function.  It's _called_ by the re-targeted fputc() function.


    Thanks, I ment the REALVIEW, for ADuC7026, the retarget file refers to sendchar whereas my origingal with old compiler used putchar.
Reply
  • Note: This was originally posted on 11th January 2012 at http://forums.arm.com


    Do you mean the RVDS example?

    If so, looking over it again - sendchar() is not a retargeted function.  It's _called_ by the re-targeted fputc() function.


    Thanks, I ment the REALVIEW, for ADuC7026, the retarget file refers to sendchar whereas my origingal with old compiler used putchar.
Children
No data