https://github.com/kklobe/ble_app_hrs_freertos_mmd
Example FreeRTOS project demonstrating SEGGER thread awareness scripts and monitor mode debugging for the Nordic nRF52840 DK
https://github.com/kklobe/ble_app_hrs_freertos_mmd
freertos nrf52840-dk segger
Last synced: 6 days ago
JSON representation
Example FreeRTOS project demonstrating SEGGER thread awareness scripts and monitor mode debugging for the Nordic nRF52840 DK
- Host: GitHub
- URL: https://github.com/kklobe/ble_app_hrs_freertos_mmd
- Owner: kklobe
- Created: 2020-09-29T21:22:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-30T01:47:02.000Z (almost 6 years ago)
- Last Synced: 2025-11-01T07:05:20.972Z (9 months ago)
- Topics: freertos, nrf52840-dk, segger
- Language: C
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nordic FreeRTOS SEGGER Example
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.
## Requirements
- Nordic nRF52840 DK
- SEGGER Embedded Studio 5.10b
- Nordic SDK 17.0.2
## Installation
- 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.
## Usage
- 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.