I would like to see app_trace_log messages on a terminal window on my PC.
I did the following things:
- Added the define ENABLE_DEBUG_LOG_SUPPORT to my project in the C/C++ tab.
- Added a call to app_trace_init() in my main where all the other inits are called.
- Added the line app_trace_log("Connected\n\r") in the on_ble_evt() function in response to a connect (BLE_GAP_EVT_CONNECTED) event.
- I notice that app_trace_log is macro-defined to be replaced by printf.
- Rebuilt the project
- In J-Link Configurator, I enabled the virtual com port and cycled the power on the PCA10028.
- At this point I can see a new com port 3 in the device manager on my Win7 machine with the correct J-Link name.
- Fired up a tera term serial session with the following parameters: 38400 baud, 8-bit, no parity, no flow control, 1-bit stop.
- Started a debugging session and used nRF MCP to connect to the target.
- At this point I can see the connect event arrive and see app_trace_log get called.
- Nothing comes out on the terminal, though this might be because I'm single-stepping in the debugger.
- Stopped the debugger and reset the PCA10028.
- Reconnected to the PCA10028 using nRF MCP.
- Nothing comes out on the terminal.
Are there more steps I need to take to get this working?