Beetwise

UART debugger in the browser

Beetwise reads a UART stream and shows each value as a register.

Every bit of the register is visible and selectable.

A change to a register value goes back to the device over the same port.

The UART debugger step by step

Debug a UART link:

  1. Select Connect, then select the baud rate of the device.
  2. Send the values as name and value pairs, one line for each sample.
  3. Read the bits of each value in the register view.
  4. Select a bit to change it. The tool writes the new value to the port.

What a broken UART looks like, and where to start

What a broken UART looks like, and where to start
SymptomUsual causeFirst thing to try
Nothing arrivesAnother program holds the portClose the other serial monitor
Every byte is garbageThe baud rate differsMatch the rate of the device
Some bytes are garbageThe clock of the device driftsUse a lower rate
Lines join togetherNo newline at the endEnd every line with a newline
Half a line appearsThe buffer holds the restSend the newline, or flush
No port to selectThe browser has no Web SerialUse Chrome, Edge or Opera
Bytes arrive reversedThe byte order differsSwap the bytes of each value

Where the UART debugger is used

A UART defect is often a wrong baud rate or a wrong bit field, not a wrong program.

A bit view shows a wrong field at once, which a decimal log does not.

A write back to the device tests a register without a new build and flash cycle.

The UART debugger: points to note

  • Both sides must use the same baud rate. A wrong rate gives damaged characters.
  • A write to a read-only hardware register has no effect. Check the data sheet.
  • The expression field cannot change a serial register. Use the register view to change it.
  • The tool needs a Chromium browser and an HTTPS page.

The full bit editor

The full editor holds many values, evaluates expressions across them, and reads live values from a serial port.

Open the full editor

Questions about the UART debugger

Can I write a value back to the device?
Yes. A change of a register value or of a single bit goes to the serial port.
How do I use a serial value in a calculation?
Reference the register as SER0, SER1 and so on in the expression field.
Do I need to install a driver?
No. The Web Serial API works in the browser without an install.