Embedded C code review and reasoning
Review unfamiliar code for assumptions, lifetime errors, synchronization and undefined behavior rather than relying on happy-path tests.
View lesson accessAll lessonsWhat the lesson covers
The course lesson is called The code you did not write. A pull request arrives with a clean diff, tidy names and passing happy-path tests. It was written in ten minutes, by a person or by a model. It will run on a device nobody can reach. Your job is to know what is wrong with it before the field does.
- code review
- interrupt races
- undefined behaviour
- register semantics
- explaining a bug
Before you start
Question to think about: What evidence would support a claim that a patch is safe within its documented constraints?
Preparation exercise: Create a review checklist for a small fictional C module, including boundary tests and the assumptions that must be verified.
This is an original public study prompt, not the paid lesson or its solution. The interactive course contains the walkthroughs, labs, exercises and recaps.
Related free reading
Test your understanding
Practice free firmware interview questions and mock interviews · Assess your readiness