User`s guide

Architecture
AT85C51SND3Bx Firmware User’s Guide 5-43
7691A–MP3–08/07
5.7 Debug trace text
The TEXT TRACE feature is available only in OCD mode because the text trace is sent
to KEIL IDE via OCD dongle.
To use it, you must:
uncomment line 14 "#define _TRACE_ (ENABLE)" in debug.c
include following lines in C file to debug
#include "config.h"
#define _TRACE_ (ENABLE)
#include "lib_mcu\debug.h"
use debug routines provide in debug.c, e.g. :
trace("u8_toto=");
trace_hex( u8_toto );
trace("\n");
in case of code commun too large, you can comment the debug routines not use in
debug.c , e.g. :
/*
void trace_u32( )
{...}
*/
When you execute the firmware in OCD mode on KEIL, the trace are displayed in the
tab "Command" from "Output Window".