About DM_LOG, DM_ERR, I define ENABLE_DEBUG_LOG_SUPPORT in Options for Target->C/C++->Define, the "string" will be sent over UART. But ADV_LOG still does not work,How should I configure and use it when debugging?
About DM_LOG, DM_ERR, I define ENABLE_DEBUG_LOG_SUPPORT in Options for Target->C/C++->Define, the "string" will be sent over UART. But ADV_LOG still does not work,How should I configure and use it when debugging?
Hi,
The ADV_LOG macro in ble_advertising.c is empty. If you need the ADV_LOG, you should point it to app_trace_log.
Code snippet:
#include "app_trace.h"
#define ADV_LOG app_trace_log
Hi,
The ADV_LOG macro in ble_advertising.c is empty. If you need the ADV_LOG, you should point it to app_trace_log.
Code snippet:
#include "app_trace.h"
#define ADV_LOG app_trace_log
Do I need to configure the serial port if I use ADV_LOG? PC-side serial port receiving tool baud rate and other parameters how to set?
If you are using the UART, then yes, you need a terminal program on the PC. E.g. Termite . In "Settings" in Termite you can set the correct Port, baudrate, etc
According to your meaning,there are other ways to show the contents of ADV_LOG?
Yes, you can also use Segger RTT. Here the log will be printed on the SWD pins. If you use Segger RTT you can use e.g. J-Link RTT Viewer on your PC to see the log.
Great, I found that using Segger RTT debugging much better than the serial port!