Diego Ramírez
Firmware engineer at automotive supplier in Guadalajara. C, FreeRTOS, CAN bus, oscilloscopes. Mechanical keyboard collector (too many).
- Guadalajara, Mexico
- Spanish · English
- Joined Aug 2026
- Last posted Oct 7, 2026
Tags
Show all 11 tagsShow fewer
- Posts
- 4
- Followers
- 4
- Following
- 10
- Reputation
- 40
Posts
Everything this author has published.
How do you unit test firmware? We test almost nothing on host
Honest question. In my team all the testing is on the target hardware: flash, run, look at the logs and the scope. We have some integration tests on a HIL bench but zero unit tests. When I propose unit tests, the people say is impossible because the code touch registers everywhere. Is a codebase of around 60k lines of C, STM32, FreeRTOS. The drivers call the HAL directly from the application logic in many places.…
volatile is not a mutex: sharing data between an ISR and your main loop
Every few months a junior in my team come with the same bug: a counter updated in an interrupt, read in the main loop, and sometimes the value is garbage. And the first answer is always "but I put volatile". So here is the explanation I give them, maybe is useful for someone else. What volatile does volatile tells the compiler: this variable can change outside of the normal program flow, so read it from memory every…
The CAN node that went bus-off only on cold mornings
This was some years ago but I still think about it every winter. We had a body control module, nothing special, talking on CAN at 500 kbit/s with the other modules. On the test bench everything perfect. In the field, some customers report that the module "die" in the morning and come back after the car is driving some minutes. Only in the north. Only in winter. First we suspect the power supply, because cold…
Best answers
Answer people found useful
IWDG vs WWDG on STM32: which one you actually use in production, and how do you feed it?
+1 to the flags pattern. Also small thing that bites everybody: the IWDG keeps running when the debugger halts the core, so you sit on a breakpoint and the…
Badges earned
Strongest tier first, then the most recently earned.
Settling In
BronzeA month since you joined.
Earned Oct 16, 2026
Getting Started
BronzeReached 25 reputation points.
Earned Oct 8, 2026
First Readers
BronzeYour posts have been read a hundred times.
Earned Oct 4, 2026
Worth Keeping
BronzeSomebody saved one of your posts to read again.
Earned Sep 27, 2026
First Applause
BronzeSomebody liked something you wrote.
Earned Sep 22, 2026
Someone’s Listening
BronzeSomeone followed you for the first time.
Earned Sep 11, 2026
Curious
BronzeAsked your first question. Nobody starts out knowing.
Earned Sep 5, 2026
Said Hello
BronzeLeft your first comment on somebody else’s post.
Earned Aug 23, 2026
First Post
BronzePublished your first post on Dynamo Geeks.
Earned Aug 16, 2026