Debug Message On UART1

I’m a new wavecom developer.
which is the best method to write debug message on uart1?

is correct via adl_atSendResponse?

  1. in adl_main: s = adl_memGet(128);
  2. everywhere: PrintDebug(“var=xxx”);
  3. PrintDebug function:
void PrintDebug(ascii *str)
sprintf(s,"\r\n%s\r\n", str);
adl_atSendResponse(ADL_AT_UNS, s);


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?

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,