Monthly Archives: January 2014

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 .

BLE DEV.N R2, Updated User Manual (Bluetooth Low Energy)

We updated User Manual for the BLE DEV.N R2 Board with more detailed explanation about change which is needed because of the crystal we use on the board. When you try to run all Nordic Bluetooth Low Energy examples (ble_…) with our board, you need to change clock source to NRF_CLOCK_LFCLKSRC_SYNTH_250_PP in SOFTDEVICE_HANDLER_INIT macro like this SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM...

It will make initialisation of the SoftDevice to pass successfully and your example with not hang anymore.

Namaste!

Bluetooth SensorTag(CC2541) Mac OS X sample application (Bluetooth Low Energy)

Just uploaded sample application, which can connect to the Bluetooth SensorTag (CC2541) and display ambient and IR temperature. In order to run it is good to have Apple machine with Bluetooth 4.0 (Bluetooth Low Energy support).

Connected SensorTag

Connected SensorTag

Disconnected SensorTag

Disconnected SensorTag


It supports connection to multiple Bluetooth SensorTags (CC2541) but is not tested. Sorry I have just one!

Namaste!

BLE DEV.N with ST-LINK/V2 (Bluetooth Low Energy)

Today we experimented to program BLE DEV.N R2 ST-LINK/V2 from STM32F3DISCOVERY and “hourra”(hurray)! It was possible to program it and debug it step by step directly from IDE.

BLE DEV.N with ST-LINK/V2

BLE DEV.N with ST-LINK/V2


BLE DEV.N R2, ST-LINK/V2, Keil IDE

BLE DEV.N R2, ST-LINK/V2, Keil IDE


We expect that probably will be possible even to use the cheapest board from ST 32F0308DISCOVERY and tomorrow we will test with it too.
So one more option to program and make fun!