Ar mulator & arm debug architecture

13
“WHEN YOU ARE WILLING TO MAKE SACRIFICES FOR A GREAT CAUSE, YOU WILL NEVER BE ALONE.” ARMulator & ARM Debug Architecture Sumanth T PRESENTED TO: 148W1D8314 Sunitha Madam

Transcript of Ar mulator & arm debug architecture

When you are willing to make sacrifices for a great cause, you will never be alone.ARMulator & ARM Debug ArchitectureSumanth TPRESENTED TO:148W1D8314Sunitha Madam

1

ARMulator is part of the cross-development toolkitIt is a software emulator of the ARM processor which supports the debugging.Evaluation of ARM code without requiring an ARM processor chip.ARMulator

It supports the high-level prototypingVarious parts of the system to support the development of software.four components:The processor core model, which can emulate any current ARM core, including the Thumb instruction set.A memory interface which allows the characteristics of the target memory system to be modelled. Various models are supplied to support rapid prototyping, but the interface is fully customizable to incorporate the level of detail required. A coprocessor interface that supports custom coprocessor models.An operating system interface that allows individual system calls to be handled by the host or emulated on the ARM model.

Contd

ARMulator Instruction Set Simulator

ARM, the ARM Powered logo, Thumb and StrongARM are registered trademarks of ARM Limited.The ARM logo, AMBA, Angel, ARMulator, EmbeddedICE, ModelGen, Multi-ICE, ARM7TDMI, ARM9TDMI, TDMI, STRONG and RealView are trademarks of ARM Limited.All other products, or services, mentioned herein may be trademarks of their respective owners.

Contd..

Debugging any computer system can be a complex task.Two basic approaches to debuggingTest equipment such as a logic analyserThe setting of breakpoints,Inside with tools that support single steppingall the user interface components are readily available and the debuggerMay itself simply be another piece of software running on the same machineThe ARM debug architecture

This typical system has several parts: Debug host Protocol converter Debug target The debug unit.C program is corrupted data caused by an errant pointer in some unrelated part of the program

Contd

The Embedded lCE module consists of two watch point registers and ControlStatus registerswatch point register can be configured to operate as a breakpoint register capable of halting the processor

Embedded-ICE

RegistersEmbedded lCE registers are programmed by scan chainThe scan chain is 38 bits long, with 32 data bits, 5 address bits and a r/w bit which controls whether the register is read or writtenChainingwatchpoint can look for a particular combination of values on the ARMaddress bus data bus, trans, ope, mo?r/w control signalsContd

Register address

Debug commsthe EmbeddedlCE module also includes a debug comms.6-bit control register and 32-bit data read and write registers which are accessed using MRC and MCR instructions to coprocessor 14.DebuggingThe Embedded lCE module connects to a host computer.This configuration supports the normal breakpoint, watch point and processor and system state access.The mechanism employed to access the processor state is to halt the processor.Then clocks are applied to the processor, again via the scan chain, causing it to write the registers out through its data portContd

Queries ?

Thank you