Here is some timeless advice on debugging software from Sir Arthur Conan Doyle’s fictional detective Sherlock Holmes. “There is nothing as deceptive as an obvious fact”...
When writing code for devices, the programmer will encounter some things that are volatile – variables which must be declared with the volatile keyword. ...