Testing, Simulation and Debugging Techniques and Tools: Lesson-5 Monitor

2008

Chapter-14L05: "Embedded Systems - Architecture, Programming and Design" , Raj Kamal, Publs.: McGraw-Hill, Inc.

1

2 . Publs. Programming and Design" .Architecture.Target Target system keyboard Target system driver circuit Monitor codes 2008 Chapter-14L05: "Embedded Systems . Raj Kamal. Inc.: McGraw-Hill.

Programming and Design" . Development processes using Monitor 2008 Chapter-14L05: "Embedded Systems . 3 .Architecture.: McGraw-Hill.1. Publs. Raj Kamal. Inc.

Programming and Design" .Target debugging Simulation Use emulator Use target monitor A ROM resident program at the target board or ROM emulator connected to ICE. runs for different hardware architecture. 4 . used for debugging 2008 Chapter-14L05: "Embedded Systems . Monitors the device applications. Inc. Publs.: McGraw-Hill.Architecture. Raj Kamal.

Architecture.Target Monitor • Computer (PC) interface commands • Command interpreter • Application codes down loaded from PC • Data 2008 Chapter-14L05: "Embedded Systems .: McGraw-Hill. Inc. Programming and Design" . Raj Kamal. Publs. 5 .

A command for download can download a new application codes into the monitor. Raj Kamal. 6 . 2008 Chapter-14L05: "Embedded Systems . A command for reset the program restarts the program. Programming and Design" .: McGraw-Hill. Inc.Architecture. Publs. Monitor loads the application (in hex-file) from developing system (at host) that can also be modified later to correct the codes.System Monitor functions Monitor loads the application codes. also used for corrections in codes and then test the system.

Inc.: McGraw-Hill. Programming and Design" .Architecture. 7 .System Monitor functions… A part of the monitor runs on host system. Publs. A write and a read command is used to correct or examine the codes at the memory addresses of the system 2008 Chapter-14L05: "Embedded Systems . Raj Kamal. Debug monitor codes are downloaded along with the locator binary image.

When a program segment runs. modifies) breakpoints as per command from debugger.System Monitor functions… Monitor controls (inserts.: McGraw-Hill. removes. 2008 Chapter-14L05: "Embedded Systems . 8 . Raj Kamal.Architecture. Publs. Breakpoints enable program test running between the different program segments. A breakpoint partitions the program into separate segments. Inc. then there is pause at breakpoint. and then next segment is run. then test the result observed after the run and examined. Programming and Design" .

Inc. Chapter-14L05: "Embedded Systems . Programming and Design" . 2008 9 . Publs. as well as by single stepping during debug phase. application loading and codes correction Monitor controls (as per command from debugger) the execution of application at full speed.: McGraw-Hill. Raj Kamal.Architecture.System Monitor functions… • To have controlled execution of instructions.

Inc. 10 2008 . Programming and Design" . Publs.Target Commands • • • • • • • Download into monitor Define Execution start address Define Single step execute Define Full speed execute Set breakpoints Reset breakpoints Send selected codes/ IOs info for computer display Chapter-14L05: "Embedded Systems .Architecture. Raj Kamal.: McGraw-Hill.

2. Use of System Monitor Codes for Debugging 2008 Chapter-14L05: "Embedded Systems . 11 .Architecture.: McGraw-Hill. Raj Kamal. Publs. Programming and Design" . Inc.

2008 Chapter-14L05: "Embedded Systems .Use of System Monitor Codes for Debugging • Downloaded codes in ICE may run a 'Power On Self Test' (POST) program on bootstrapping. Programming and Design" .Architecture. 12 . Inc. • A ROM may also have a debug monitor. Publs.: McGraw-Hill. Raj Kamal.

Architecture. Publs. 13 .Use of System Monitor Codes for Debugging • GNU debugger gdb. Raj Kamal. Programming and Design" . Inc.a downloadable freeware . .may also provide the debug monitor codes for the system 2008 Chapter-14L05: "Embedded Systems .: McGraw-Hill.

Summary 2008 Chapter-14L05: "Embedded Systems . Inc. Raj Kamal. Programming and Design" .Architecture.: McGraw-Hill. Publs. 14 .

Raj Kamal. Publs.We learnt • Monitor used to debug software and hardware for the given target processor or microcontroller. 15 . 2008 Chapter-14L05: "Embedded Systems . Programming and Design" .Architecture.: McGraw-Hill. Inc.

Publs.Architecture. 16 .: McGraw-Hill. Inc. Programming and Design" .End of Lesson-5 of chapter 14 on Monitor 2008 Chapter-14L05: "Embedded Systems . Raj Kamal.

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer: Get 4 months of Scribd and The New York Times for just $1.87 per week!

Master Your Semester with a Special Offer from Scribd & The New York Times