Skip to content

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.

Terminal window
# nRF52840 DK
west build -b nrf52840dk/nrf52840 samples/zephyr-generic-demo -p
west flash
# nRF54L15 DK
west build -b nrf54l15dk/nrf54l15/cpuapp samples/zephyr-generic-demo -p
west flash
# STM32 Nucleo
west build -b nucleo_f401re samples/zephyr-generic-demo -p
west flash

Uses standard Zephyr GPIO with sw0-sw3 devicetree aliases. Boards without buttons still run all periodic events automatically.

ButtonAction
sw0Sensor anomaly sequence
sw1Flash corruption sequence
sw2Stress burst (50 messages)
sw3Reserved

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.

FeatureGeneric DemoBLE HCI Demo
RTT loggingYesYes
Button triggersYes (standard GPIO)Yes (Nordic DK library)
Bluetooth LENoYes
HCI packet decodingNoYes
Board supportAny Zephyr boardnRF54L15 DK only
Nordic SDK requiredNoYes (NCS v3.2.0)
"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" }
]