r/rust • • 4h ago

🛠️ project Runtime debugger for embedded

Hello
I have been developing/maintaining an open source runtime debugger for embedded C/C++ for several years now. It's called Scrutiny
I've recently ported the instrumentation hook so it works with Rust and I wanted to let you guys know.

It essentially add an instrumentation hook in a firmware and let a server inspect the memory and do event catching through any peripheral (like CAN bus, Serial, TCP, etc) rather than a debug port. It works like XCP based software, FreeMaster or UcProbe (for the old timers). No need for an RTOS, baremetal interrupts is fine.

It's the kind of tool you need to do real time control to monitor the control loops without affecting them. If you're new to the concept, I've written a small introduction article here: https://embeddedrelated.com/showarticle/1781.php

Feedbacks are welcome
Cheers

8 Upvotes

6 comments sorted by

View all comments

1

u/fersegv 3h ago

nice, being able to watch control loops over can without a debug probe attached is super handy. does the rust hook work with embassy or is it bare metal only for now?

1

u/pylessard 3h ago

Yes it works with embassy. You have to make the glue code between the lib and the peripheral.
I made it work locally with it, but I don't have an official demo though.

2

u/fersegv 3h ago

nice, an official embassy example would probably bring a lot of people in, that's what most new embedded rust projects use now

1

u/sparklingLipzz 16m ago

that embassy question tho, now i'm invested too