100 likes | 241 Views
6: It Doesn’t Work!. CET360 Microprocessor Engineering by J. Sumey. Stuck in the mud…. “I’ve built and programmed my prototype, but it doesn’t work!” Now What???. Wrong Reactions. throw things and curse stomp around awhile and leave haphazardly change wires
E N D
6: It Doesn’t Work! CET360Microprocessor Engineeringby J. Sumey
Stuck in the mud… “I’ve built and programmed my prototype, but it doesn’t work!” Now What???
Wrong Reactions • throw things and curse • stomp around awhile and leave • haphazardly change wires • start taking pot shots at the software • wait for instructor to fix it
Right Reactions • apply a logical methodology to identifying and correcting the problem • backtrack: • when did it last work? • what changes were made since then? • consult journal!
Divide and Conquer! • is the problem: • hardware? • software? • or both!?
Hardware Problems • breadboard / wiring errors • power supply errors • dead batteries • shorts • faulty components • always be aware! • look – smell – touch
Hardware Troubleshooting • schematic • power supply ammeter • oscilloscope • DSO / logic analyzer • LEDs • datasheets
Software Problems • semantic/logic errors • data representation errors • operator mis-precedence • side effects • ISR issues • I/O register configuration errors
Software Troubleshooting • breakpoints/single-stepping • register/memory display & manipulation • software triggers • linker map • “heartbeat” debug pulses • back-ups!
Other Tips • SEE (Someone Else’s Eyes) • document everything (lab journal) • re-read datasheets • design reviews