This project is a copy of ble_app_hrs_freertos with the addition of monitor mode debugging and thread awareness scripts for use with SEGGER Embedded Studio.
- Nordic nRF52840 DK
- SEGGER Embedded Studio 5.10b
- Nordic SDK 17.0.2
- Install SEGGER Embedded Studio 5.10b.
- Download the Nordic SDK 17.0.2 and uncompress it somewhere.
- Clone this project to $NORDICSDKROOT/examples/ble_peripheral.
- Open ble_app_hrs_freertos_pca10056_s140.emProject in SEGGER Embedded Studio.
- Ensure your DK is connected.
- Open the Threads window from the menu View / More Debug Windows / Threads.
- Run the project.
- Use your favorite Bluetooth utility (LightBlue, nRF Connect, etc.) from another device (iOS or Android) to connect to the running Nordic_HRM peripheral.
- Enable Notifications on the Heart Rate Service.
- Verify HRS notifications are being received.
- Set a breakpoint in a thread, for example the NRF_LOG_FLUSH() in logger_thread().
- When the breakpoint is hit, verify that your Bluetooth utility stays connected, and that you can see four threads in the Threads window: LOG, IDL, Tmr, and BLE.
- Disable the breakpoint and resume the app. Everything should continue working and HRS notifications should resume.