Interrupt-driven LED control with SEGGER RTT debugging. No UART pin conflicts.
Button debounce • Real-time debug • Integrated LED/Button
Firmware for RSL10 that controls the onboard LED via button interrupts. Uses SEGGER RTT for debugging to avoid UART/GPIO pin conflicts common on the RSL10 EVB.
| Feature | Description |
|---|---|
| 💡 LED Control | Interrupt-driven on DIO6 |
| 🔘 Button Input | SW2 on DIO5 with debounce |
| 🔌 RTT Debug | No UART pin conflicts |
| ⚡ Low Overhead | Interrupt-based, not polling |
| Component | Pin | Function |
|---|---|---|
| LED | DIO6 | Green LED (integrated) |
| Button | DIO5 | SW2 (integrated) |
| Debug | - | J-Link via USB |
git clone https://github.com/surbalo1/rsl10-blinky-rtt-debug.git
# Import in onsemi IDE → Build → Flash
# Open J-Link RTT Viewer (Device: RSL10, SWD, 4000 kHz)===================================
DEVICE INITIALIZED
Press button (SW2) to
toggle LED on/off
===================================
[INITIAL STATE] LED: OFF
>>> BUTTON PRESSED: LED ON <<<
>>> BUTTON PRESSED: LED OFF <<<
MIT License - Based on ON Semiconductor example code.