Hello, I'm having some issues with printf on the DSP. I'm not clear
on how it is supposed to function and where the output is supposed to
go. Section 8.2 of the c6x compiler user's guide (SPRU187O) seems to
indicate that it should go to the console of the host (it also
indicates that the library source is in a file called rtssrc.zip which
I can't seem to find). According to the DSP/BIOS user's guide
(SPRU303B), LOG_printf output is sent to the trace manager, however
this seems to require CCS.
Interestingly, if I embed printfs in my DSP side code and time the
execution, it seem to take an order of magnitude longer to run, which
seems to imply it's trying to do something printfish. My current
setup is as follows:
Board rev C3
2.6.29-omap1
dsplink 1.61.03
code gen tools 6.0.16
bios 5.33.02
compiler 6.0.16
I've looked into using some of the various dsplink trace features, but
have generally found them lacking, although I'm aware that they are
designed to have minimal performance impact on the code. As an
alternative to printf, I'm considering writing a notification based
module that implements printf-like functionality using shared memory.
Obviously I'd rather not reinvent the wheel so it would be great if
someone could steer me in the right direction.
Thank you.
- Eric