The frustrating kind of bug is the one where the code compiles, the board powers up, and it still does the wrong thing.
That is what I do. Not a rewrite and not a code review - find the actual cause and tell you what it was.
Where I usually end up looking:
- The boot sequence. Reset timing, clock setup, and whether the thing that runs first is the thing you think runs first.
- Timing. Interrupt priority, what blocks what, and the one delay that is fine on the bench and not in the field.
- Comms. Timeouts, framing, and the retry logic that turns one lost byte into a hang.
- Power. Brownout on transmit, a regulator that droops under load, a watchdog resetting for reasons nobody logged.
- The parts you cannot see from the firmware. A missing pull-up, a shared pin, a level that is marginal.
You get: what was wrong, why, the fix, and where else the same mistake probably lives.
I keep ESP32, STM32 and a Pi 5 on my desk, so for common parts I can often reproduce the problem instead of reasoning from a description. If it needs your hardware I will tell you what to measure.
Send me the symptom, not the theory. "It resets every 40 seconds" beats "I think it is a memory issue".