Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Ads

Discussion Groups

Discussion Groups | TMS320C6x | view LOG_printf in a host

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

view LOG_printf in a host - Alexandre Freire da Silva Osorio - Jul 1 19:44:00 2004



Hi,

I'm looking for a way to get the contents of the log buffer filled by LOG_printf
in a host processor. Please, anyone knows a way to do this? I think that it
would be a kind of library that contains functions to read the log buffer from
DSP via, for example, XBUS port.

Thanks in advance.

Alexandre





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

Simulator Cache Analysis - Amrut Kunte - Jul 2 0:18:00 2004

The Simulator Analysis tool shows the L1 and L2 Cache R /W misses.
Has anyone used this tool and found true to hardware performance.

Thanks,
Amrut

===== ________________________________________________________________________
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/





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

Re: Simulator Cache Analysis - piyush kaul - Jul 2 3:54:00 2004

Hi Amrut,

I used this tool and found it useful. It doesn't give
any other performance figures,except for the
time-based cache hits/misses for any memory addresses.
I think it is accurate enough to the hardware, if you
use the same linker command file. IMHO, the
inaccuracies of simulator vs. hardware have mostly to
do with memory access times/wait states. And the cache
analysis too doesn't give you data about that.
You can certainly improve the time resolution by
editing the simulator config.

Regards
Piyush
--- Amrut Kunte <> wrote:
> The Simulator Analysis tool shows the L1 and L2
> Cache R /W misses.
> Has anyone used this tool and found true to hardware
> performance.
>
> Thanks,
> Amrut
>
> ===== >
________________________________________________________________________
> Yahoo! India Careers: Over 50,000 jobs online
> Go to: http://yahoo.naukri.com/ >
> _____________________________________ > Yahoo! Groups Links
=====
**************************************
And---"A blind Understanding!" Heav'n replied.

Piyush Kaul
http://www.geocities.com/piyushkaul
__________________________________




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

Re: view LOG_printf in a host - Tarang Dadia - Jul 2 5:45:00 2004

Alexandre-

I dont have straight solution.. but you may want to
look at audio.pjt file in ur ti directory (its an
example project.. sitting at
\\ti\examples\dsk6711\bios\audio\audio.pjt )

this project has used LOG_printf also look it up on
help section of CCS.

and if you written the code and just want to view it
on the host then go to DSP/BIOS menu and then click on
message log and u will see the log.

Hope this helps
-Tarang

--- Alexandre Freire da Silva Osorio
<> wrote:
> Hi,
>
> I'm looking for a way to get the contents of the log
> buffer filled by LOG_printf in a host processor.
> Please, anyone knows a way to do this? I think that
> it would be a kind of library that contains
> functions to read the log buffer from DSP via, for
> example, XBUS port.
>
> Thanks in advance.
>
> Alexandre >
> _____________________________________ > Yahoo! Groups Links
__________________________________




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

RE: view LOG_printf in a host - Alexandre Freire da Silva Osorio - Jul 2 11:16:00 2004

Tarang,

Thanks for your help, but our host processor doesn't run Code Composer. In fact
it doesn't even run Windows, it's a Motorola Power PC. So what we need would a
library containing functions to deal with the log buffer in DSP.

Regards,
Alexandre

-----Original Message-----
From: Tarang Dadia [mailto:]
Sent: Friday, July 02, 2004 2:46 AM
To: Alexandre Freire da Silva Osorio;
Subject: Re: [c6x] view LOG_printf in a host Alexandre-

I dont have straight solution.. but you may want to
look at audio.pjt file in ur ti directory (its an
example project.. sitting at
\\ti\examples\dsk6711\bios\audio\audio.pjt )

this project has used LOG_printf also look it up on
help section of CCS.

and if you written the code and just want to view it
on the host then go to DSP/BIOS menu and then click on
message log and u will see the log.

Hope this helps
-Tarang

--- Alexandre Freire da Silva Osorio
<> wrote:
> Hi,
>
> I'm looking for a way to get the contents of the log
> buffer filled by LOG_printf in a host processor.
> Please, anyone knows a way to do this? I think that
> it would be a kind of library that contains
> functions to read the log buffer from DSP via, for
> example, XBUS port.
>
> Thanks in advance.
>
> Alexandre >
> _____________________________________ > Yahoo! Groups Links
__________________________________
_____________________________________ Yahoo! Groups Links





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

Re: view LOG_printf in a host - Jeff Brower - Jul 2 16:50:00 2004

Alexandre-

> Thanks for your help, but our host processor doesn't run Code Composer.
> In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> we need would a library containing functions to deal with the log
> buffer in DSP.

How does your host processor normally talk to the DSP? Via HPI? If you are
still in
design phase, I might mention that XBus makes HPI look like kintergarden :-)

Whatever method you end up with, then you tranfer data from the starting memory
address log buffer, which can be determined from .map file.

-Jeff

> -----Original Message-----
> From: Tarang Dadia [mailto:]
> Sent: Friday, July 02, 2004 2:46 AM
> To: Alexandre Freire da Silva Osorio;
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> I dont have straight solution.. but you may want to
> look at audio.pjt file in ur ti directory (its an
> example project.. sitting at
> \\ti\examples\dsk6711\bios\audio\audio.pjt )
>
> this project has used LOG_printf also look it up on
> help section of CCS.
>
> and if you written the code and just want to view it
> on the host then go to DSP/BIOS menu and then click on
> message log and u will see the log.
>
> Hope this helps
> -Tarang
>
> --- Alexandre Freire da Silva Osorio
> <> wrote:
> > Hi,
> >
> > I'm looking for a way to get the contents of the log
> > buffer filled by LOG_printf in a host processor.
> > Please, anyone knows a way to do this? I think that
> > it would be a kind of library that contains
> > functions to read the log buffer from DSP via, for
> > example, XBUS port.
> >
> > Thanks in advance.
> >
> > Alexandre





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

RE: view LOG_printf in a host - Alexandre Freire da Silva Osorio - Jul 2 18:01:00 2004

Thanks, Jeff-

Your idea is good, but do you know what is the format of the data structure used
by LOG_printf to store the strings in trace buffer? Moreover I read somewhere
that to save processing time LOG_printf doesn't format the strings it stores,
the formatting work being done by the host. That's why I thought in a lib. Do
you know if it's true?

Regards,
Alexandre

-----Original Message-----
From: Jeff Brower [mailto:]
Sent: Friday, July 02, 2004 1:50 PM
To: Alexandre Freire da Silva Osorio
Cc:
Subject: Re: [c6x] view LOG_printf in a host Alexandre-

> Thanks for your help, but our host processor doesn't run Code Composer.
> In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> we need would a library containing functions to deal with the log
> buffer in DSP.

How does your host processor normally talk to the DSP? Via HPI? If you are
still in
design phase, I might mention that XBus makes HPI look like kintergarden :-)

Whatever method you end up with, then you tranfer data from the starting memory
address log buffer, which can be determined from .map file.

-Jeff

> -----Original Message-----
> From: Tarang Dadia [mailto:]
> Sent: Friday, July 02, 2004 2:46 AM
> To: Alexandre Freire da Silva Osorio;
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> I dont have straight solution.. but you may want to
> look at audio.pjt file in ur ti directory (its an
> example project.. sitting at
> \\ti\examples\dsk6711\bios\audio\audio.pjt )
>
> this project has used LOG_printf also look it up on
> help section of CCS.
>
> and if you written the code and just want to view it
> on the host then go to DSP/BIOS menu and then click on
> message log and u will see the log.
>
> Hope this helps
> -Tarang
>
> --- Alexandre Freire da Silva Osorio
> <> wrote:
> > Hi,
> >
> > I'm looking for a way to get the contents of the log
> > buffer filled by LOG_printf in a host processor.
> > Please, anyone knows a way to do this? I think that
> > it would be a kind of library that contains
> > functions to read the log buffer from DSP via, for
> > example, XBUS port.
> >
> > Thanks in advance.
> >
> > Alexandre




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

Re: view LOG_printf in a host - Jeff Brower - Jul 2 21:32:00 2004

Alexandre-

> Your idea is good, but do you know what is the format of the data
> structure used by LOG_printf to store the strings in trace buffer?
> Moreover I read somewhere that to save processing time LOG_printf
> doesn't format the strings it stores, the formatting work being
> done by the host. That's why I thought in a lib. Do you know if
> it's true?

I don't know the format. But if you call printf() a few times and put some
basic
stuff there like "0123...ABCD...CCS, WHERE IS MY STRING..." you should be able
to
know what it's doing :-)

-Jeff > -----Original Message-----
> From: Jeff Brower [mailto:]
> Sent: Friday, July 02, 2004 1:50 PM
> To: Alexandre Freire da Silva Osorio
> Cc:
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> > Thanks for your help, but our host processor doesn't run Code Composer.
> > In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> > we need would a library containing functions to deal with the log
> > buffer in DSP.
>
> How does your host processor normally talk to the DSP? Via HPI? If you are
still in
> design phase, I might mention that XBus makes HPI look like kintergarden :-)
>
> Whatever method you end up with, then you tranfer data from the starting
memory
> address log buffer, which can be determined from .map file.
>
> -Jeff
>
> > -----Original Message-----
> > From: Tarang Dadia [mailto:]
> > Sent: Friday, July 02, 2004 2:46 AM
> > To: Alexandre Freire da Silva Osorio;
> > Subject: Re: [c6x] view LOG_printf in a host
> >
> > Alexandre-
> >
> > I dont have straight solution.. but you may want to
> > look at audio.pjt file in ur ti directory (its an
> > example project.. sitting at
> > \\ti\examples\dsk6711\bios\audio\audio.pjt )
> >
> > this project has used LOG_printf also look it up on
> > help section of CCS.
> >
> > and if you written the code and just want to view it
> > on the host then go to DSP/BIOS menu and then click on
> > message log and u will see the log.
> >
> > Hope this helps
> > -Tarang
> >
> > --- Alexandre Freire da Silva Osorio
> > <> wrote:
> > > Hi,
> > >
> > > I'm looking for a way to get the contents of the log
> > > buffer filled by LOG_printf in a host processor.
> > > Please, anyone knows a way to do this? I think that
> > > it would be a kind of library that contains
> > > functions to read the log buffer from DSP via, for
> > > example, XBUS port.
> > >
> > > Thanks in advance.
> > >
> > > Alexandre
>
> _____________________________________ > Yahoo! Groups Links





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

Re: view LOG_printf in a host - Mike Dunn - Jul 3 3:00:00 2004

Check the BIOS docs - I know that it is [or used to be??] 4 bytes with the first being a count so that you can unwind the circular buffer intelligently.  Keep in mind that the data will not be formatted - the host formats it.  Since it is unformatted, you might want to look at LOG_event - I remember that it takes more than one var per entry.
 
I think the book, er.. PDF is something like the DSP/BIOS Users Guide.
 
mikedunn

Jeff Brower <j...@signalogic.com> wrote:
Alexandre-

> Your idea is good, but do you know what is the format of the data
> structure used by LOG_printf to store the strings in trace buffer?
> Moreover I read somewhere that to save processing time LOG_printf
> doesn't format the strings it stores, the formatting work being
> done by the host. That's why I thought in a lib. Do you know if
> it's true?

I don't know the format. But if you call printf() a few times and put some basic
stuff there like "0123...ABCD...CCS, WHERE IS MY STRING..." you should be able to
know what it's doing :-)

-Jeff> -----Original Message-----
> From: Jeff Brower [mailto:j...@signalogic.com]
> Sent: Friday, July 02, 2004 1:50 PM
> To: Alexandre Freire da Silva Osorio
> Cc: c...@yahoogroups.com
> Subject: Re: [c6x] view LOG_printf in a host
>
> Alexandre-
>
> > Thanks for your help, but our host processor doesn't run Code Composer.
> > In fact it doesn't even run Windows, it's a Motorola Power PC. So what
> > we need would a library containing functions to deal with the log
> > buffer in DSP.
>
> How does your host processor normally talk to the DSP? Via HPI? If you are still in
> design phase, I might mention that XBus makes HPI look like kintergarden :-)
>
> Whatever method you end up with, then you tranfer data from the starting memory
> address log buffer, which can be determined from .map file.
>
> -Jeff
>
> > -----Original Message-----
> > From: Tarang Dadia [mailto:t...@yahoo.com]
> > Sent: Friday, July 02, 2004 2:46 AM
> > To: Alexandre Freire da Silva Osorio; c...@yahoogroups.com
> > Subject: Re: [c6x] view LOG_printf in a host
> >
> > Alexandre-
> >
> > I dont have straight solution.. but you may want to
> > look at audio.pjt file in ur ti directory (its an
> > example project.. sitting at
> > \\ti\examples\dsk6711\bios\audio\audio.pjt )
> >
> > this project has used LOG_printf also look it up on
> > help section of CCS.
> >
> > and if you written the code and just want to view it
> > on the host then go to DSP/BIOS menu and then click on
> > message log and u will see the log.
> >
> > Hope this helps
> > -Tarang
> >
> > --- Alexandre Freire da Silva Osorio
> > wrote:
> > > Hi,
> > >
> > > I'm looking for a way to get the contents of the log
> > > buffer filled by LOG_printf in a host processor.
> > > Please, anyone knows a way to do this? I think that
> > > it would be a kind of library that contains
> > > functions to read the log buffer from DSP via, for
> > > example, XBUS port.
> > >
> > > Thanks in advance.
> > >
> > > Alexandre
>
> _____________________________________





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

Re: view LOG_printf in a host - Randell Jesup - Jul 19 17:24:00 2004

Mike Dunn <> writes:
>> Your idea is good, but do you know what is the format of the data
>> structure used by LOG_printf to store the strings in trace buffer?
>> Moreover I read somewhere that to save processing time LOG_printf
>> doesn't format the strings it stores, the formatting work being
>> done by the host. That's why I thought in a lib. Do you know if
>> it's true?

Correct.

If you want to process the LOG data without a host, another
solution is to override vfprintf/fprintf/vprintf/printf and
LOG_printf/UTL_error/etc with your own functions. Warning - since you
often won't want to format/transfer the data when the call is made, you'll
need to store the data in a buffer. Note that 'printf' calls assume the
formatting is done immediately; the LOG_* functions generally don't (but
are limited in the number of arguments).

Typical solution: dump the data into a mailbox, and have a task
read and process it. For printf, format into a allocated memory buffer (or
pre-allocated), pass into the mailbox, and free the buffer after the
process task uses it.

Check out the source for all of these; it's included with CCS.

--
Randell Jesup, Worldgate Communications, ex-Scala, ex-Amiga OS team




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