Easy tracing and debugging with BLE DEV.N (Bluetooth Low Energy)

For embedded hardware tracing and debuting is a vital step to a stable product. Unfortunately it is not all the time a easy task. Luckily BLE DEV.N board has an option to trance and debug via serial port.

You need to:

  •  add #include “mk_trace.h”
  • initialise the mk_trace service with: mk_trace_init(256,256);
  • add trace messages like: mk_trace(“ADV START: %d\n\r”, m_advertising_mode); or mk_trace(“ERROR code: %d, line: %d file:%s….)
  • run some terminal software like putty with com port number(using Device Manager) and speed: 921600
Device Manager

Device Manager

PuTTY MCP2200

PuTTY MCP2200

  • watch the output
PuTTY MCP2200

PuTTY MCP2200

Namaste!

P.S. You can find the service code and sample at github .