
Pivoting into Embedded Systems + Firmware, chasing Edge AI. STM32 • RTOS • TinyML • Automotive / Drones / Robotics. Posting daily on real hardware problems
New Delhi, India
Joined July 2023
- Tweets9
- Following98
- Followers1
- Likes3
Pinned Tweet
Daily posts breaking down real engineering problems — not definitions.
• Real industry failures & how they were actually fixed.
• Firmware, RTOS & STM32 fundamentals
• Edge AI/TinyML on constrained hardware
• EV, drone & robotics systems
Let's dig in.
21
Code works in Debug. Hangs in Release.
Compiler cached data_ready in a register — never re-read memory again.
ISR updated it. Main loop never saw it.
Fix: volatile.
But volatile ≠ atomic. Stops caching. Doesn't make multi-byte access safe.
11
"Just convert FP32 to INT8." Sounds simple.
But quantization maps values using scale + zero point, not just rounding.
Gain: smaller model, less RAM, lower latency.
Lose: precision.
Smaller model ≠ faster system.
Model × Firmware × Memory × Runtime all matter.
13
Firmware works on the bench. Resets randomly in the field. No crash log.
First move: read the reset-cause register (POR/BOR/watchdog/soft) — it tells you why before any debug code.
"Doesn't reproduce on the bench" is a clue, not a dead end.
13
Your TinyML model fits in flash. It still won't run.
Model size = weights (static).
What breaks MCUs = activation memory (dynamic) — feature maps held in RAM between layers.
Early conv layers hit hardest. Profile activation per layer, not file size.
12
BMS firmware: does your fault detection latency hold worst-case, or just on a clean bench?
Hard short → hardware protection IC. Not firmware.
Overvoltage → firmware can own it — but not if CAN logging blocks the check.
That gap is the failure mode.
6






