6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

10
6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey

Transcript of 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

Page 1: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

6: It Doesn’t Work!

CET360Microprocessor Engineering

J. Sumey

Page 2: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

2

Stuck in the mud…

“I’ve built and programmed my prototype, but it doesn’t work!”

Now What???

Page 3: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

3

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

Page 4: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

4

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!

Page 5: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

5

Divide and Conquer!

is the problem: hardware? software? or both!?

Page 6: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

6

Hardware Problems breadboard / wiring errors power supply errors dead batteries shorts faulty components

always be aware! look – smell – touch

Page 7: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

7

Hardware Troubleshooting

schematic power supply ammeter oscilloscope DSO / logic analyzer LEDs datasheets

Page 8: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

8

Software Problems

semantic/logic errors data representation errors operator mis-precedence side effects ISR issues I/O register configuration errors

Page 9: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

9

Software Troubleshooting

breakpoints/single-stepping register/memory display &

manipulation software triggers linker map “heartbeat” debug pulses back-ups!

Page 10: 6: It Doesn’t Work! CET360 Microprocessor Engineering J. Sumey.

10

Other Tips

SEE (Someone Else’s Eyes) document everything (lab journal) re-read datasheets design reviews