DSPRelated.com
Forums

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

Started by hars...@yahoo.com January 7, 2007
Hello everybody

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.

Any suggestion or help for the library will be appereciated.

Awaiting for reply.

Harshtikumar
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
Hi jeff

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?

Harshitkumar

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

__________________________________________________
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