Eclipse-Based CodeWarrior Debugger

Similar documents
AIOP Task Aware Debug

CodeWarrior Development Studio for Power Architecture Processors Version 10.x Quick Start

Reference Manual , 01/2016. CodeWarrior Development Studio for Power Architecture Processors Targeting Manual

QorIQ P4080 Software Development Kit

Debugging Linux With LinuxScope-JTD

CodeWarrior Development Studio for StarCore DSP SC3900FP Architectures Quick Start for the Windows Edition

Tutorial Introduction

U-Boot and Linux Kernel Debug using CCSv5

Resource 2 Embedded computer and development environment

PathFinder-XD for MIPS Powered Devices. Simulator

Migration from HEW to e 2 studio Development Tools > IDEs

Application Note: AN00193 Getting Started with Debugging in xtimecomposer

Lab 3-2: Exploring the Heap

On-Chip Debugging of Multicore Systems

Laboratory Assignment #4 Debugging in Eclipse CDT 1

Early Software Development Through Emulation for a Complex SoC

A Tutorial for ECE 175

CodeWarrior Development Studio for Power Architecture Processors Getting Started Guide

Introducing HP NonStop Development Environment Version 2.0 for Eclipse (NSDEE 2.0)

IBM i Debugger. Overview Service Entry Points Debugger Functions Attach to an IBM i Job Launch Configurations and Settings

for StarCore DSP Architectures Quick Start for the Windows Edition

At the shell prompt, enter idlde

NonStop Development Environment for Eclipse 4.0 Debugging Supplement

10 Steps to Virtualization

Heterogeneous multi-processing with Linux and the CMSIS-DSP library

Debugging Multicore StarCore DSP Applications with Eclipse

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

Rapid SQL Developer Debugger 2.1 User Guide

Rapid SQL Developer Debugger 2.0 User Guide

As CCS starts up, a splash screen similar to one shown below will appear.

Using a debugger. Segmentation fault? GDB to the rescue!

Software Installation Guide for S32 Design Studio IDE (S32DS): FRDM-KEAZ128Q80 FRDM-KEAZ64Q64 FRDM-KEAZN32Q64

CodeWarrior U-Boot Debugging

Quick Reference Guide. For CodeWarrior Suites. freescale.com/codewarrior

CodeWarrior Development Studio for StarCore 3850 DSP v SP1

As CCS starts up, a splash screen similar to one shown below will appear.

Collecting Linux Trace without using CodeWarrior

Performance Optimization for an ARM Cortex-A53 System Using Software Workloads and Cycle Accurate Models. Jason Andrews

LinuxScope-JTD Installation Guide. Version 4.0.0

Eclipse Tutorial. For Introduction to Java Programming By Y. Daniel Liang

Quick Start Guide TWR-S08DC-PT60. Tower System Daughter Card for the 5-Volt 8-bit MC9S08P Family TOWER SYSTEM

A brief intro to MQX Lite. Real work: hands-on labs. Overview, Main features and Code Size

Reference Manual , 01/2016. CodeWarrior for ARMv7 Tracing and Analysis User Guide

Mobile Programming Lecture 4. Debugging

Parallel Debugging. ª Objective. ª Contents. ª Learn the basics of debugging parallel programs

Simics Feature List. Simics Version 4.2. Revision 3030 Date

NADK Reflector Application Debug

Section Objective: Acquaint with specifications of Launchpad Acquaint with location of switches, LEDs, power-on switch, powering the board.

Performance Analysis with Hybrid Simulation

NSIGHT ECLIPSE EDITION

Eclipse Quick Reference Windows Hosted

NEW CEIBO DEBUGGER. Menus and Commands

NetBeans Tutorial. For Introduction to Java Programming By Y. Daniel Liang. This tutorial applies to NetBeans 6, 7, or a higher version.

Before you start with this tutorial, you need to know basic Java programming.

COBOL-IT Compiler Suite

System Debug. This material exempt per Department of Commerce license exception TSU Xilinx, Inc. All Rights Reserved

CUDA Development Using NVIDIA Nsight, Eclipse Edition. David Goodwin

CodeWarrior Development Studio for Power Architecture Processors FAQ Guide

LLDB for your hardware: Remote Debugging the Hexagon DSP

DOMAIN TECHNOLOGIES. Getting Started Guide Version 1.1. BoxView IDE. Integrated Development Environment

Figure 1. Simplicity Studio

Quick Start Guide. TWR-P1025 QorIQ Processor with Networking and Industrial Connectivity and Protocol Offload Engine TOWER SYSTEM

Installing and using CW 10.x for TPMS applications. Revision 5

Getting Started with the LabWindows /CVI Real-Time Module

Supplement: Visual C++ Debugging

Hands-on CUDA exercises

CodeWarrior Development Studio for Advanced Packet Processing v10.3.1

APPENDIX A. CODE COMPOSER STUDIO (CCS) v5: A BRIEF TUTORIAL FOR THE DSK6713

NEWS 2018 CONTENTS SOURCE CODE COVERAGE WORKS WITHOUT CODE INSTRUMENTATION. English Edition

Installing and using CW 10.6 for TPMS applications. Revision 4

Developing i.mx Multimedia Applications Processors with Windows Embedded CE 6.0 WinCE 6.0 on the i.mx25 and i.mx35 PDK s

CodeWarrior Development Studio for Power Architecture Processors V10.X FAQ Guide

Addressing the Increasing Challenges of Debugging on Accelerated HPC Systems. Ed Hinkel Senior Sales Engineer

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

Quick Start Guide TWR-S08PT60. 5-Volt S08P Family of 8-bit MCUs for Industrial and Appliance Applications TOWER SYSTEM

Getting Started with MCUXpresso SDK

Welcome to the Software Overview section of the MIPS Software Training course. In this section I will discuss software and software tools you can use

DS-5 ARM. Getting Started with DS-5. Version 5.6. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0478F (ID071411)

ECE QNX Real-time Lab

CodeWarrior for QorIQ LS Series, ARMv8 ISA v11.2

Starting Embedded C Programming CM0506 Small Embedded Systems

HPE NonStop Development Environment for Eclipse 6.0 Debugging Supplement

CodeWarrior Development Studio for Freescale 68HC12/HCS12/HCS12X/XGATE Microcontrollers Quick Start SYSTEM REQUIREMENTS Hardware Operating System 200

Pengwyn Documentation

Wind River Workbench (VxWorks Version) User's Guide, 3.0. Wind River Workbench USER S GUIDE 3.0. VxWorks Version

Profiling and Debugging OpenCL Applications with ARM Development Tools. October 2014

Quick Start Guide for TWR-S08LL64 TOWER SYSTEM MC9S08LL64. S08 ultra-low-power LCD segment MCU

NSIGHT ECLIPSE EDITION

CLASS AGENDA. 9:00 9:15 a.m. 9:15 10:00 a.m. 10:00 12:00 p.m. 12:00 1:00 p.m. 1:00 3:00 p.m. 3:00 5:00 p.m.

CodeWarrior Development Studio for Power Architecture Processors Getting Started Guide

egui Eclipse User Guide

PetaLinux SDK User Guide. Eclipse Plugin Guide

Overview Job Management OpenVZ Conclusions. XtreemOS. Surbhi Chitre. IRISA, Rennes, France. July 7, Surbhi Chitre XtreemOS 1 / 55

QCVS Hardware Device Tree Editor User Guide

Getting the Most out of Advanced ARM IP. ARM Technology Symposia November 2013

Converting Earlier Versions of CodeWarrior for StarCore DSPs Projects to Version

We are built to make mistakes, coded for error. Lewis Thomas

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

Wai Chee Wong Sr.Member of Technical Staff Freescale Semiconductor. Raghu Binnamangalam Sr.Technical Marketing Engineer Cadence Design Systems

Zend Studio has the reputation of being one of the most mature and powerful

Transcription:

July 14-16, 2009 Eclipse-Based CodeWarrior Debugger QorIQ Multicore Linux Kernel Debug Bogdan Irimia CodeWarrior Software Engineer

Tool used to develop software running on Freescale Power Architecture processors Bare board applications Embedded Linux operating systems Capability to proceed through all the development stages familiar to software developers Creating projects and writing code Compiling and linking Debugging CodeWarrior Development Studio 2

CodeWarrior Debugger Support for debugging singlecore and multicore applications Bare board applications Boot loaders AMP and SMP Embedded Linux Kernels User space applications running on Embedded Linux Kernels Possibility to use the tool with : QorIQ P4080 Virtutech Simics Simulator P4080 Palladium Emulator QorIQ P2020 processor Other Freescale Power Architecture processors 3

Launch configurations Create, manage and run different debug configurations: Attach debug an application that is already running on a target Connect debug a target without an application Download download an application to a target, then debug or run the application 4

Debug Perspective Registers Variables Breakpoints Source and Disassembly views Memory System Browser 5

Debugging an 8 cores SMP Linux Kernel Debugging the kernel from the very first instruction Attach to u-boot and boot the kernel Start debugging the kernel from 0x0 until the final prompt and further Possibility to debug each core as it is being enabled by the kernel Debugging the kernel after boot Attach to the running kernel and inspect each core stack, registers, tasks, etc Ability to debug a Simulator (Simics) or Emulator (Palladium) kernel checkpoint or saved state 6

How do I debug the kernel early boot stage? Attach to the boot loader that will start the kernel Use a Hardware breakpoint at 0x0 to stop the debugger at entry point Boot the kernel and check the debugger after it stops at 0x0 7

How do I debug the kernel early boot stage? Possibility to debug the kernel before and after MMU initialization Each core will be targeted by the debugger when the kernel will start every second core Each core debug process can continue in parallel for the whole 8 cores 8

How do I inspect a core status? Find the core I m interested in and inspect the stack Check this core registers Check the tasks associated with this core 9

Every core can be individually suspended for inspecting its state or resumed to perform the next action or reach another point Cores can be grouped for multicore operations and breakpoint halt groups Possibility to inspect every task associated with a core Stack Variables Registers How do I control the cores behavior? 10

Set a breakpoint at the desired function and issue the kernel command from the prompt Check the core and the task which is processing this kernel action Inspect the stack and different function variables Continue debugging with breakpoints and stepping How do I debug a kernel command? 11

Possibility to debug the whole command execution even if the kernel will switch its execution to another core How do I debug a kernel command? Using Hardware breakpoints the user can check if a specific core will execute a function or not 12

How do I debug a kernel module? Set a breakpoint in the kernel modules loading function and insmod the kernel module Check the core and the task on which the module is being loaded Inspect the stack and different function variables Identify the debugged module in the System Browser modules view and load the symbolics 13

How do I debug a kernel module? Set some breakpoints in the modules functions and resume the kernel Inspect the different debug views for checking the registers, variables, data or instruction cache, etc Continue with different functions or go directly to the module cleanup function and kernel delete one 14

Possibility to debug the whole module even if the loading it s being made on one core and the unloading on another core How do I debug a kernel module? By using stepping and breakpoints the user can easily follow the execution path of its module from the kernel into the module and backwards on every core from the whole 8 ones 15

Q&A Thank you for attending this presentation. We ll now take a few moments for the audience s questions and then we ll begin the question and answer session. 16