DSPRelated.com
Forums

Re: looking for a library which has code for _printf() function

Started by Jeff Brower January 12, 2007
Shyam Sundar Prasad-
> hi all
> i'm working on ccs v3.1 with TI5416. I want to know about the
> ompatible command for scanf(). another query is how we can handle
> string & characters.

Just use scanf(). Check this document (pg 53):

http://www.kanecomputing.co.uk/pdfs/ccs_getting_started_guide.pdf

You need to include rts.lib in the project.

-Jeff
> ----- Original Message -----
> From:Jeff Brower
> To: Harshitkumar Parmar
> Cc: c...
> Sent: Monday, January 08, 2007 10:18 AM
> Subject: Re: [c54x] looking for a library which has code for _printf()
> function
> HarshitKumar-
>
> > Actually i want to print messages in the stdout.And my purpose is only
> to take judgement about execution of certain
> > code.
> >
> > Does rts contains code for printf() function.Is it compitible to
> c?Means for c code we can access? or also
> > competible with asm function call?
>
> Suggest to use LOG_printf() function, which is intended for debug and
> status print-out during real-time operation.
> Yes it is accessible from C code.
>
> Any function can also be accessed from asm code, but this is more
> difficult and not recommended unless you have a
> specific reason and you are an advanced, experienced DSP developer.
>
> -Jeff
>
> > Jeff Brower wrote:
> > Harshit Kumar-
> >
> >> I am Harshitkumar.I am working on tms320c54cst.For debuging purpose i
> am looking for a library which has code for
> >> _printf function.I have tried rts.lib but i didnt get success.I am
> using CCS 2.0. And my emulator is XDS510.
> >
> > When you say "didn't get success", what happens? A linker error? If so,
> what specific error message do you get?
> >
> > "_printf" should be referenced from asm code, "printf" from C code. It
> sounds like you are trying to call pintf()
> > from asm code -- is that what you really want?
> >
> > -Jeff
>