DSPRelated.com
Forums

LOG_printf and printf

Started by goelhss March 17, 2003
Hi,

I am using EVM 6201, with CCS 2.0
Problem I am facing is related to printf.
My code uses printf and FILE I/O.
Mostly it is working perfectly, but then some times
the printf in the begining do not print result properly,
looks like it's having problem in using buffers, as
the successive printf calls are affected by previous
calls ( data repeatedly printed some times, and some times
it prints garbage data).

I was suggested to use DSP/BIOS, and hence LGO_printf.
I used that, and it works fine. But then in some calls, it
prints odd error some what like
"Error 0x80001233(0x5)."
where 0x80001233 is address of string to print, with valid string message data.

I want to use printf in separate code as well.
Please please suggest me what can be the problem with these printf's.

regards,
Vishal.



Hi there,

Have you manually set your .sysmem size? default is only 0x400. You might want
to try to make it bigger.
Build options, Linker tab, heap size.

regards,

Jonathan

-----Original Message-----
From: goelhss [mailto:]
Sent: Mon 3/17/2003 11:42 PM
To:
Cc:
Subject: [c6x] LOG_printf and printf
Hi,

I am using EVM 6201, with CCS 2.0
Problem I am facing is related to printf.
My code uses printf and FILE I/O.
Mostly it is working perfectly, but then some times
the printf in the begining do not print result properly,
looks like it's having problem in using buffers, as
the successive printf calls are affected by previous
calls ( data repeatedly printed some times, and some times
it prints garbage data).

I was suggested to use DSP/BIOS, and hence LGO_printf.
I used that, and it works fine. But then in some calls, it
prints odd error some what like
"Error 0x80001233(0x5)."
where 0x80001233 is address of string to print, with valid string message data. I want to use printf in separate code as well.
Please please suggest me what can be the problem with these printf's.

regards,
Vishal.
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you want
your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.yahoogroups.com/group/c6x

Other Groups: http://www.dsprelated.com ">http://docs.yahoo.com/info/terms/


Hi Goel
We too faced the problem with printf function. its
behavior is very unpredictable.
i suggest u to use puts() function which seems to be
better than the printf() function. this prints only
strings.
But we never faced any problem with the LOG_printf()
function. And one more thing Log_printf function only
displays in the messagelog windows.
one thing u can look into the where memory is
allocated for the LOG_printf() Objects in the memory
Manager of Gconf window. Just see is there enough
memory is avialable for the LOG_printf objects. u can
increase the size little bit more and try it. Hope
this helps u.
There are many routines in the RTS.lib which are not
reliable. Ex atoi()... etc

regards
Amaresh Patil

--- goelhss <> wrote:
> Hi,
>
> I am using EVM 6201, with CCS 2.0
> Problem I am facing is related to printf.
> My code uses printf and FILE I/O.
> Mostly it is working perfectly, but then some times
> the printf in the begining do not print result
> properly,
> looks like it's having problem in using buffers, as
> the successive printf calls are affected by previous
>
> calls ( data repeatedly printed some times, and some
> times
> it prints garbage data).
>
> I was suggested to use DSP/BIOS, and hence
> LGO_printf.
> I used that, and it works fine. But then in some
> calls, it
> prints odd error some what like
> "Error 0x80001233(0x5)."
> where 0x80001233 is address of string to print, with
> valid string message data.
>
> I want to use printf in separate code as well.
> Please please suggest me what can be the problem
> with these printf's.
>
> regards,
> Vishal. >
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c6x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


__________________________________________________