Jon Dubovsky is a user on mastodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

i've discovered the best way to profile stuff in hardware is to toggle GPIOs in "breakpoints". It has almost no overhead and doesn't interfere with timing-critical operations. Then just watch the GPIOs with your oscilloscope

Jon Dubovsky @jond

@MightyPork Agreed. We have a lot of execution flag toggles (inline function calls that to empty functions in release).

The ARM ETM is extremely good for complex things where you'd need 20 GPIOs to build a flame chart, but requires $$$ trace pods.

· Web · 0 · 0

@jond and even if i had one it's gonna be windows only most likely

@MightyPork Segger's Ozone runs on Mac, Win, Linux and seems to be well-liked. But, again, gotta have the $$ pod.

(We use IAR's debugger for most things but with Segger pod hardware and support software. I'm contemplating switching back to Ozone because IAR has had some Problems shipping working scripts for some of ST's new silicon.)

@jond (ST has the same problems with their own silicon ...)