Hi,
I’m a new wavecom developer.
which is the best method to write debug message on uart1?
is correct via adl_atSendResponse?
in adl_main: s = adl_memGet(128);
everywhere: PrintDebug(“var=xxx”);
PrintDebug function:
void PrintDebug(ascii *str)
{
sprintf(s,"\r\n%s\r\n", str);
adl_atSendResponse(ADL_AT_UNS, s);
}
[/code]
Depends on what you want to do!
If you want to just use a terminal for debugging, then you’ll have to use AT responses.
But if you use the Target Monitoring Tool, you can use TRACE.
See the “Tutorial for Open-AT” and “Tools Manual for Open-AT” documents…
yes, i want to use a terminal for debugging…
is correct the sequence?
jan
May 2, 2007, 8:09pm
4
I think it should work like that.
However, I have found that sprintf() caused some problems in specific parts of our application. In a simple case like this, I would prefer to use strcpy() and strcat() instead of sprintf().
Best Regards,
Jan