Generic Zephyr Demo
The generic Zephyr demo works on any board with a J-Link debug probe. No Nordic-specific dependencies, no Bluetooth LE required. Use it to try LogScope on your own hardware.
Quick Start
Section titled “Quick Start”# nRF52840 DKwest build -b nrf52840dk/nrf52840 samples/zephyr-generic-demo -pwest flash
# nRF54L15 DKwest build -b nrf54l15dk/nrf54l15/cpuapp samples/zephyr-generic-demo -pwest flash
# STM32 Nucleowest build -b nucleo_f401re samples/zephyr-generic-demo -pwest flashButtons
Section titled “Buttons”Uses standard Zephyr GPIO with sw0-sw3 devicetree aliases. Boards without buttons still run all periodic events automatically.
| Button | Action |
|---|---|
| sw0 | Sensor anomaly sequence |
| sw1 | Flash corruption sequence |
| sw2 | Stress burst (50 messages) |
| sw3 | Reserved |
Recurring Events
Section titled “Recurring Events”Same timing as the BLE HCI demo (heartbeat every 5s, sensor reads every 2s, retransmission warnings every ~8-12s, etc.) but without Bluetooth LE events.
Differences from BLE HCI Demo
Section titled “Differences from BLE HCI Demo”| Feature | Generic Demo | BLE HCI Demo |
|---|---|---|
| RTT logging | Yes | Yes |
| Button triggers | Yes (standard GPIO) | Yes (Nordic DK library) |
| Bluetooth LE | No | Yes |
| HCI packet decoding | No | Yes |
| Board support | Any Zephyr board | nRF54L15 DK only |
| Nordic SDK required | No | Yes (NCS v3.2.0) |
Suggested Watch Patterns
Section titled “Suggested Watch Patterns”"logscope.watchPatterns": [ { "name": "Errors", "pattern": "failed|error|fault|CRC|timeout", "regex": true, "color": "#f44336" }, { "name": "Retransmission", "pattern": "Retransmission", "color": "#ff9800" }, { "name": "Heartbeat", "pattern": "Heartbeat", "color": "#4caf50" }]