Lec21Debug

Lec21Debug - Debugging Tools-Remote Debuggers Functionality...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
ECE 471 21-Debug-1 Lecture 21 Embedded System Debugging Outline Debugging Tools Debugging Interrupts Debugging Timing Issues Debugging Program Flow Problems Debugging Compiler Errors
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 471 21-Debug-2 Debugging Tools-Remote Debuggers Functionality can vary from minimal machine level debugging capability to high-level language source level debugging. Use either a debug port or target resources for communication and control. If a processor does not have a debug port, some target resources such as a serial port, interrupt, and timer are typically used to control and communicate with the target processor. If the target processor does not have standard peripheral devices available for a debugger, a custom setup may be required.
Background image of page 2
ECE 471 21-Debug-3 Debugging Tools-Remote Debuggers Remote debuggers typically have the following functions: Stop at a breakpoint. Momentarily pause at a stop-point and update variable displays. Processors with debug ports are usually capable of breaking on data accesses.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 471 21-Debug-4 Debugging Tools-In-Circuit Emulators An In-Circuit Emulator (ICE) allows the user to examine the state of the processor on which the code is running. These devices can perform real-time monitoring. Can break on many types of events. Can save execution traces in real-time with data filters. No target resources are used by ICE units.
Background image of page 4
ECE 471 21-Debug-5 Debugging Tools-In-Circuit Emulators ICE units typically offer many real-time trace options for execution and data triggering. Triggers need to be set and further adjusted to focus on the relevant code to provide the best insight into the problem and yet limit collected data. Data can be collected around trigger points without slowing or stopping the target processor. Many ICE units are capable of saving data for several instructions around a trigger point.
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
ECE 471 21-Debug-6 Debugging Tools-ROM Emulators Emulates a read-only memory device. Target connection is through the ROM socket and communicates with a host. Looks like a debug monitor to the user. Supplies its own serial or network connection to the host. Relies on the hardware working properly, so is less useful in the early stages of debugging.
Background image of page 6
ECE 471 21-Debug-7 Debugging Tools-Logic Analyzer A logic analyzer is capable of examining many I/O lines in response to a trigger. It is
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 23

Lec21Debug - Debugging Tools-Remote Debuggers Functionality...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online