sp-1 emulator for renode
- emulates the sp-1's nrf52840, leds, buttons
- shows a virtual device window with clickable buttons and live led feedback
- can be used for easier debugging custom firmware
# i use arch so this is a guide for arch-based
yay -S renode-bin # or your favorite aur helperpip3 install tkintercd spire
./run.sh [path/to/firmware.elf]this opens renode with the sp-1 platform and the virtual device gui with your firmware booting.
| component | emulated? | notes |
|---|---|---|
| nrf52840 cpu | full | cortex-m4, 1mb flash, 256kb ram |
| gpio / leds | visual | 4 playback + 4 track leds |
| function button | clickable | p0.27, active low with pull-up |
| play/track buttons | clickable | resistor ladder via adc |
| i2c bus | stub | cs42l42 at 0x48, tas2505 at 0x18 |
| i2s audio | stub | 48khz 24-bit output captured |
| emmc storage | stub | 4gb block device |
| wdt | full | nrf52840 hardware model |
| power / system_off | full | power peripheral model |
spire/
├── sp1.repl # renode platform description
├── sp1.resc # renode script (load + start)
├── run.sh # launcher (renode + gui)
├── peripherals/
│ └── sp1_gui.py # virtual device gui
└── README.md
MIT