4

Hardware Debug*

Matt saw Cody hunched over a bench as he strolled through the lab. As he approached, he could see a printed circuit board, populated with components, and an oscilloscope on the bench beside it. “How’s it going?” he asked.

“It’s not,” Cody said. “It looks dead. The processor doesn’t even run.”

“What code have you got in the EPROM?”

“What do you mean?”

“Do you have special test code, or your application code?”

“Oh. The application code.”

Matt frowned. “How are you going to tell if your problems are hardware or software?” he asked. “You’ve got unknown software running, or apparently, not running, on untested hardware.”

“What would you suggest?”

“How about testing the hardware in small chunks, then working on your software when ...

Get Debugging Embedded Microprocessor Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.