Problem:
float r = sin (0.5);
GT_1trace(curTrace, GT_1CLASS, "DSP:==> %f \n", r);
the output is “DSP:==> f”
---- Solution:
GT_trace does not support the %f because the printf comes from DSP/BIOS SYS_printf which only supports floating point format on native floating point devices like C67x, C674x etc. So print out a string is the best solution:
char buffer[10];
float r = sin (0.5);
sprintf (buffer, "%f", r);
GT_1trace(curTrace, GT_1CLASS, "DSP:==> %s\n", buffer );
DM6446 Reference Design provides full manufacturing and design source code:
ReplyDeleteBoard Schematics and Board PCB Layouts with Linux 2.6 and TI DaVinci™ Board Support Package Source Code