Sign in

username:

password:



Not a member?

Search c54x



Search tips

Subscribe to c54x



c54x by Keywords

5409 | 5416 | AD5 | ADC | BIOS | Boot | Booting | Bootloader | C540 | C5402 | C5409 | C5416 | CCS | Codec | DMA | Dmad | DSK | DSKPlus | Dsplib | EVM | FFT | FIR | Flash | GPIO | HPI | Initialization | Interrupt | JTAG | LOG_printf | MCBSP | RFFT | RTDX | Sampling | STLM | UART | VC540

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C54x | Re: looking for a library which has code for _printf() function

Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).

  

Post a new Thread

Re: looking for a library which has code for _printf() function - Jeff Brower - Jan 12 13:46:01 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...@yahoogroups.com
>      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 <j...@signalogic.com> 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
>



(You need to be a member of c54x -- send a blank email to c54x-subscribe@yahoogroups.com )