Run Mode Debugging Manual Symbian

Similar documents
RTOS Debugger for QNX - Run Mode

RTOS Debugger for Linux - Run Mode

Native Process Debugger

OS Awareness Manual Sciopta

Training Linux Debugging

OS Awareness Manual OSE Delta

RTOS Debugger for RTX-ARM

Training Android Debugging

TRACE32 Getting Started... ICD In-Circuit Debugger Getting Started... ICD Introduction... 1

RTOS Debugger for ChibiOS/RT

Hypervisor Awareness for Wind River Hypervisor

Tracking the Virtual World

RTOS Debugger for FreeRTOS

RTOS Debugger for Windows Standard

RTOS Debugger for ThreadX

OS Awareness Manual OSE Epsilon

RTOS Debugger for CMX

OS Awareness Manual OSEK/ORTI

RTOS Debugger for MicroC/OS-III

RTOS Debugger for RTX51 tiny

RTOS Debugger for MicroC/OS-II

Integration for exdi2 on Windows CE Platform Builder

Training Linux Debugging for Intel x86/x64

RTOS Debugger for MQX

RTOS Debugger for OS-9

Support for RISC-V. Lauterbach GmbH. Bob Kupyn Lauterbach Markus Goehrle - Lauterbach GmbH

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... TriCore... TriCore Monitor... 1

Rudi Dienstbeck June 07, ARM TrustZone and Hypervisor Debugging

Application Note for the SNOOPer Trace

OS Awareness Manual uclinux

Designing with ALTERA SoC Hardware

What s New in Platform Builder 7

TRACE32 Debugger Getting Started... ICD Tutorial About the Tutorial... 2

Debugging Linux With LinuxScope-JTD

UCD3138. JTAG Configuration. Using CCS 6

Eclipse-Based CodeWarrior Debugger

REAL TIME OPERATING SYSTEM PROGRAMMING-I: VxWorks

RTOS Debugger for RTXC Quadros

TRACE32 Glossary Terms, Abbreviations, and Definitions... 2

RTOS Debugger for LynxOS

ARM Processors for Embedded Applications

TRACE32 Documents... TRACE32 Instruction Set Simulators... Simulator for Z TRACE32 Simulator License Quick Start of the Simulator...

emmc FLASH Programming User s Guide

Embest IDE Pro for ARM 2005

NEWS 2017 CONTENTS HYPERVISOR. Seamless debugging through all software layers. English Edition

Implementing debug. and trace access. through functional I/O. Alvin Yang Staff FAE. Arm Tech Symposia Arm Limited

Designing with Nios II Processor for Hardware Engineers

Multi-core microcontroller design with Cortex-M processors and CoreSight SoC

Chapter 12 Visual Program Debugger

10 Steps to Virtualization

Contents of this presentation: Some words about the ARM company

Checking out" the hypervisor

Debugging code snippets in IDA Pro 5.6 using QEMU emulator Copyright 2010 Hex-Rays SA

A Tutorial for ECE 175

Application Note Debug Cable XC800

U-Boot and Linux Kernel Debug using CCSv5

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.0 Revision: 0 Date: September 18, 2017

Chapter 2 Operating-System Structures

Integration for Xilinx Vivado

Simulator for H8/300, H8/300H and H8S

Software Design Challenges for heterogenic SOC's

LTC Data Converter Board For The Arrow SoCKit Linux Application User s Guide

RTOS Debugger for RTXC Quadros

Overview of Development Tools for the ARM Cortex -A8 Processor George Milne March 2006

Integration for CodeWright

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals XC... R8051XC Debugger General Note...

ARM CORTEX-R52. Target Audience: Engineers and technicians who develop SoCs and systems based on the ARM Cortex-R52 architecture.

Embedded Systems Programming

TRACE32 Documents... ICD In-Circuit Debugger... Processor Architecture Manuals... Blackfin... Blackfin Debugger General Note...

Designing with ALTERA SoC

SimXMD Simulation-based HW/SW Co-debugging for field-programmable Systems-on-Chip

EMUL-ARM. Board Support: Atmel EB55 February 25, Nohau Corporation. All rights reserved worldwide.

API for Auxiliary Processing Unit

Efficient and Large Scale Program Flow Tracing in Linux. Alexander Shishkin, Intel

Application Note Debug Cable C166

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Introduction to Embedded Systems

Advanced Embedded Systems

Chapter 4. Enhancing ARM7 architecture by embedding RTOS

Intro to MS Visual C++ Debugging

H-JTAG USER MANUAL

Debugging NMF Applications with TRACE32

Cortex-A9 MPCore Software Development

ICE/FIRE Analyzer Programming Dialog

SimXMD Co-Debugging Software and Hardware in FPGA Embedded Systems

ADS MultiTrace Tutorial v2.0

CS420: Operating Systems. OS Services & System Calls

ARM. Architecture, Programming and Development Tools

SimXMD: Simulation-based HW/SW Co-Debugging for FPGA Embedded Systems

Contents. Cortex M On-Chip Emulation. Technical Notes V

Esto. An Eclipse-Based Embedded S/W Development Tool. Heung-Nam Kim Director of Embedded S/W Technology Center

Installation and Quick Start of isystem s winidea Open in DAVE. Tutorial Version 1.0, May, 2014

Simplifying the Development and Debug of 8572-Based SMP Embedded Systems. Wind River Workbench Development Tools

Technology In Action, Complete, 14e (Evans et al.) Chapter 5 System Software: The Operating System, Utility Programs, and File Management

ARM DS-5. Using the Debugger. Copyright 2010 ARM. All rights reserved. ARM DUI 0446A (ID070310)

embos Real-Time Operating System embos plug-in for IAR C-Spy Debugger Document: UM01025 Software Version: 3.1 Revision: 0 Date: May 3, 2018

Intel Parallel Studio XE 2017 Composer Edition BETA C++ - Debug Solutions Release Notes

ARM Security Solutions and Numonyx Authenticated Flash

CMPE3D02/SMD02 Embedded Systems

Controlling TRACE32 via Python 3

Transcription:

Run Mode Debugging Manual Symbian TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents... OS Awareness Manuals... OS Awareness and Run Mode Debugging for Symbian... Run Mode Debugging Manual Symbian... 1 History... 2 Basic Concepts... 2 TRK Monitor 2 The Debug Communications Channel (DCC) 2 Switching to Run Mode Debugging 2 Process Debugging 4 Quick Start Example... 5 Switching between Run & Stop Mode... 6 Commands for Run Mode Debugging... 9 Breakpoint Conventions... 10 Frequently-Asked Questions... 10 Run Mode Debugging Manual Symbian 1

Run Mode Debugging Manual Symbian Version 16-Nov-2018 History 28-Aug-18 The title of the manual was changed from RTOS Debugger for <x> - Run Mode to Run Mode Debugging Manual <x>. Basic Concepts For Integrated Run & Stop Mode Debugging, Stop Mode Debugging via the JTAG interface is extended by a DCC communication interface between TRACE32 and the debug agent. TRK Monitor The TRK application is the debug agent on the target. The Debug Communications Channel (DCC) The JTAG interface of the ARM architecture includes a so-called Debug Communications Channel (DCC). Information exchange via DCC is possible between the TRACE32 software running on the host and the TRK application running as symbian process on the target For details about DCC refer to your ARM Technical Reference Manual. Switching to Run Mode Debugging After TRACE32 was started and configured for Stop Mode Debugging switching to Run Mode debugging is performed as follows: SYStem.MemAccess TrkMON Go.MONitor Run Mode Debugging Manual Symbian 2

SYStem.MemAccess TrkMON Go.MONitor Select TRK as monitor Switch to Run Mode Debugging After the communication is configured, debugging can be performed completely via the TRACE32 GUI. Run Mode Debugging Manual Symbian 3

Process Debugging To debug a process proceed as follows: 1. Check if the process is already running. TASK.List.tasks List all running processes TASK.List.tasks 2. Load the process for debugging or select a process from the list. TASK.RUN <process> TASK.SELect <id> Load a process Select a process from the list If the process is not running, the command TASK.RUN can be used to load the process for debugging. TASK.SELect selects a running process from the list. 3. Load the symbol and debug information for the process. Data.LOAD.<subcommand> <file> /NoCODE /NoClear /NOREG NoCODE - load only symbol information. NoClear - obtain the symbol information loaded for other processes. NOREG - avoid any unintended change to the CPU registers. Run Mode Debugging Manual Symbian 4

Quick Start Example Integrated Run & Stop Mode Debugging requires that Stop Mode Debugging is working properly before Run Mode Debugging can be activated. The following commands represent a basic TRACE32 setup for Stop Mode Debugging. It is assumed that the target setup and symbian booting is performed by the code in the boot FLASH. SYStem.CPU ARM920 TrOnchip.Set DABORT OFF TrOnchip.Set PABORT OFF TrOnchip.Set UNDEF OFF SYStem.Mode Attach TASK.CONFIG symbian2 Data.Load.SYMBIAN symbian.symbol TRANSlation.ON ; Select the target CPU ; Debug mode is not entered at data ; abort exception. ; Debug mode is not entered at ; prefetch abort exception. ; Debug mode is not entered at an ; UNDEF instruction. ; Establish the communication ; between the debugger and the CPU ; Activate OS Awareness and ; menu ; Load the kernel symbols into the ; debugger ; Switch debugger MMU to ON The target setup and the preparations for Linux debugging might be more complex for your system. It is strongly recommanded to refer to ARM Debugger (debugger_arm.pdf) and for details. To configure Run Mode Debugging: 1. Select TrkMON as monitor: SYStem.MemAccess TrkMON 2. Start the TRK application on the target. 3. Then continue to enter the following command in TRACE32: Go.MONitor ; Switch to Run Mode Debugging or Break.SetMONitor ON ; Switch to Run Mode Debugging Run Mode Debugging Manual Symbian 5

Switching between Run & Stop Mode The graphic above shows a simple schema of the switching between Run Mode Debugging and Stop Mode Debugging. The following commands are used to switch between Run & Stop Mode Debugging: Break.MONitor Break.SetMONitor OFF Switch to Stop Mode Debugging and stop the program execution on CPU. Switch to Stop Mode Debugging. If the selected process was running or no process was selected, the CPU stays running in Stop Mode. If the selected process was stopped, the CPU is stopped in Stop Mode. Break.SetMONitor ON Switch to Run Mode Debugging. If the CPU is stopped, the run mode is active with the next Go. Go.MONitor If the CPU is stopped, the program execution is started. Switch to Run Mode Debugging. Run Mode Debugging Manual Symbian 6

If Run Mode Debugging is active, a green M is displayed in the state line of TRACE32. The following states are possible in Run Mode Debugging: 1. Run Mode Debugging active (green M), selected process running Run Mode Debugging Manual Symbian 7

2. Run Mode Debugging active (green M), selected process stopped. Run Mode Debugging Manual Symbian 8

Commands for Run Mode Debugging TASK.COPYDOWN<src> <dest> Copy a file from the host into the target TASK.COPYUP<src> <dest> Copy a file from the target into the host TASK.INSTALL <drive> TASK.KILL <id> Kill the process TASK.List.tasks List all running processes TASK.RUN <process> Load a process for debugging TASK.SELect <id> Select a process for debugging Run Mode Debugging Manual Symbian 9

Breakpoint Conventions For Integrated Run & Stop Mode Debugging please keep the following breakpoint convention: Use on-chip breakpoints only for Stop Mode Debugging If an on-chip breakpoint is hit in Run Mode Debugging, the CPU is stopped in Stop Mode debugging. Use software breakpoints only for Run Mode Debugging Frequently-Asked Questions TASK.CONFIG symbian Errors Ref: 0257 Why does the debugger report errors when executing 'TASK.CONFIG symbian'? This command already checks the target system for the availability of necessary debug information. Symbian OS has to be up and the debugger in stopped mode to get the information. Also, the Symbian internal debug hooks have to be available, and the symbols of ekern.exe have to be loaded. check chapter "Hooks and Internals" in the Symbian OS Awareness Manual. Run Mode Debugging Manual Symbian 10