Live peripheral registers from an SVD

Read every register of a peripheral through the probe and decode its fields and enumerations from the SVD, live; write a field.

How to use it

  1. Connect the probe and open the chip’s SVD (from the vendor’s device pack). The SVD viewer and this view share it.
  2. Pick a peripheral: every readable register is read and its fields decoded, live.
  3. Click a register’s name to write a field: the register is read, the field changed and the register written back.

Questions

Why are some registers not read?

Write-only registers have nothing to read, and registers the SVD marks with a readAction (status flags that clear when read, data registers that pop a FIFO) are skipped unless you allow them, so looking does not change the program’s behaviour.

Why does a register read zero?

Most chips keep a peripheral’s registers at zero while its clock is off. Check the clock enable bit in the RCC (or equivalent) first.

Related tools

  • Cortex-M debugger in the browser (ST-LINK, CMSIS-DAP): Halt, step and reset an Arm Cortex-M; watch and write global variables from the ELF live with plots; SEGGER RTT terminal; live SVD peripheral registers; breakpoints, watchpoints and HardFault capture. Over WebUSB, nothing to install.
  • Live variable watch and plot from an ELF: Pick global variables from the ELF and read them through ST-LINK or CMSIS-DAP while the firmware runs: values, min/max, writes, strip-chart plots and CSV recording.
  • SEGGER RTT viewer in the browser: Find the RTT control block in RAM and read every up channel while the core runs; send input to the down buffer. Works with ST-LINK and CMSIS-DAP, not only J-Link.
  • Catch a Cortex-M HardFault on the target: Stop the core when it faults (vector catch), read CFSR, HFSR and the fault address, unwind the stacked frame and name the faulting function from the ELF.
  • Microcontroller memory viewer and editor: Read RAM, flash or peripheral space through the probe as a hex dump that highlights what changed; write 8, 16 or 32-bit values; save a dump.
  • Flash STM32, ESP32 and RP2040 from the browser: Program HEX/S19/BIN/UF2 into an STM32 (UART bootloader, USB DFU, ST-LINK or CMSIS-DAP), an ESP32 or ESP8266 (ROM loader) or an RP2040/RP2350 (PICOBOOT or UF2); verify and read back.
  • Register viewer (SVD): CMSIS-SVD peripherals, registers and bit fields; decode a value; find the register at an address; C defines.

Also useful for: svd live, register view, sfr view, stm32 registers live, peripheral viewer.