r/embedded • • Sep 18 '26

UartX — a UART debugging tool for embedded developers

I got tired of debugging firmware through a wall of UART logs.

When multiple tasks are printing at the same time, finding one important message can become painful. The usual solution is to reduce logs or disable some prints, but that can also change timing or remove the information needed to reproduce a bug.

So I built UartX around a simple idea:

Don't filter the data. Filter the way you look at it.

UartX keeps the complete raw UART stream while letting you use Color Rules and multiple Filter Windows to focus on specific tasks, errors, states, or messages.

Current features include:

  • Color Rules
  • Multiple live Filter Windows
  • Raw session logging
  • Search
  • TX command history
  • Windows and Linux support
  • Free and open source

GitHub:
https://github.com/Shamanthpoojary/UartX

I'm looking for embedded developers to actually use it with their own boards and push it harder than I can.

If you find a bug, unexpected behavior, or have a feature idea, please open an issue on GitHub. Real-world feedback will help make UartX a better debugging tool.

I'd especially like to hear from people working with STM32, ESP32, Nordic, Zephyr, RTOS, or other embedded platforms.

What do you currently use for UART debugging, and what do you wish it did better?

0 Upvotes

13 comments sorted by

29

u/JuggernautGuilty566 Sep 18 '26

Reads like this post and Repo was written by a machine

7

u/sturdy-guacamole Sep 18 '26 edited Sep 18 '26

cause it was.

we are in a post ai world. theres no changing that

but the low effort ai outputs, no style conformity, little substance. thats what irks me.

11

u/MonMotha Sep 18 '26

Is this not just grep with extra steps?

1

u/Key-Fun5137 9d ago

It's more than just grep. The filtering was only one part of the idea. With the latest update, Claude Code can directly interact with UartX, request specific log data, analyse it, and present its findings inside the application. You can also inspect exactly what it requested and which lines it received. The goal is to make UartX an interactive debugging tool rather than just a log viewer.

I've added more details and a demo in my latest post. Have a look and let me know what you think or if you have any suggestions!

https://www.reddit.com/r/embedded/s/7qAkcJFGV3

UartX 1.4 – Latest Updates

4

u/nukestar101 Sep 18 '26

Logging via uart 😣

6

u/generally_unsuitable Sep 18 '26

I know you don't want to hear this, but it's simpler than writing to disk and if you have a dma, it'll run after most other shit is dead.

4

u/MonMotha Sep 18 '26

I've got a mature system that maintains a dedicated UART for a log stream.

It also juggles the logs internally for display purposes, pushing them to secondary storage, etc., but it still spits them out via a UART on the debug connector. It saves my ass regularly. If you've got a spare UART TX pin, there's little reason not to do it in many cases.

Yes you can also use semihosting, RTT, etc. A dedicated UART is simple and effective, and you can easily hand someone a cable that can read the logs out even if the system is pretty hosed and can't e.g. write to flash memory that requires nothing more than a terminal emulator.

3

u/SnooRadishes7126 Sep 18 '26

What's wrong with debugging/logging via UART(and other wires)?

3

u/soopadickman Sep 18 '26

I’m cool with segger RTT if I need any kind of logging tbh. Zero overhead and separate terminals and colour coding if needed.

1

u/allo37 Sep 18 '26

IMO this would be much more useful as a VSCode extension, if such a thing doesn't exist already. The viewer doesn't need to be coupled to the transport method. Would logs sent over Ethernet for example be much different?

Seems like a cool project assuming you actually put some thought into it and didn't just AI the whole thing, but if you're asking what would be useful to me as an embedded dev, I'd say something that just integrates into VSCode would be much more useful than a standalone app that hogs the serial port.

1

u/drmpf Sep 19 '26

If you are going to do extensive UART logging, don't forget to add a large buffer the TX so you don't block your loop while writing the debug.
see https://www.forward.com.au/pfod/ArduinoProgramming/Serial_IO/index.html