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
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.
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.