Debugging an Application Lab. Build/Debug Process A start Load Closest Sample “debug” into MULTI editor Cut and Paste Changes into Sample Build Modified.

Slides:



Advertisements
Similar presentations
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Introduction to HT-IDE3000 Micro-C development System Department.
Code Composer Department of Electrical and Computer Engineering
Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
Net+OS Initialization Initialization Sequence Initialization Routine Roles ROM Image Compression/Decompression.
Slides created by: Professor Ian G. Harris PIC Development Environment MPLAB IDE integrates all of the tools that we will use 1.Project Manager -Groups.
FIR TYPE-I Lowpass Filtering using TMS320C6711 Floating Point Processor DEMO Presentation Prepared by: Bashir SADEGHI Supervised by: Dr. Erhan A. INCE.
E.1 Eclipse. e.2 Installing Eclipse Download the eclipse.installation.exe from the course web site to your computer and execute it. Keep the destination.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Using PDG with e2studio: Example
OllyDbg Debuger.
1 Introduction to Programming Environment Using MetroWerks CodeWarrior and Palm Emulator.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 1 Introduction.
M16C/Tiny SKP Tutorial 1 Software Development Process using HEW4
Introduction Purpose Objectives Content Learning Time
Silicon Labs ToolStick Development Platform
NET+OS 6.1 Training. BSP NET+OS 6.1 BSP Initialization Memory map New features Debugging Porting Issues.
CHAPTER 1 XNA Game Studio 4.0. Your First Project A computer game is not just a program—it is also lots of other bits and pieces that make playing the.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
The GreenHills Tool Chain
Getting Started Installing GreenHills and Net+OS Setting up the Development Board Building the Sample Application.
SQL Maestro Hello World IQ Associates. Contents Initial setup Hello World.
P.1ECE 331, Prof. A. Mason Professor Andrew Mason Michigan State University Spring 2013 ECE 331: PC Lab 1: Using HC12 ASM Simulators.
CCS APPS CODE COVERAGE. CCS APPS Code Coverage Definition: –The amount of code within a program that is exercised Uses: –Important for discovering code.
Introduction Purpose This course describes the process of installing the KPIT GNU toolchain on your PC. Objective Learn how easy it is to get information.
Scalable Game Development William Roberts Senior Game Engineer
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Developing C/C++ applications with the Eclipse CDT David Gallardo.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Active-HDL Interfaces Debugging C Code Course 10.
Active-HDL Interfaces Building VHPI Applications C Compilation Course 9.
Lab 10 Department of Computer Science and Information Engineering National Taiwan University Lab10 – Debugging II 2014/12/2 1 /16.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
® Tivoli Directory Integrator IBM Software Group Tivoli Directory Integrator Using the AssemblyLine Debugger in TDI 6.1 Eddie Hartman
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
NETBEANS DEBUGGER.  To create a breakpoint place the cursor at the desired location.  Go to the Run -> toogle line Breakpoint or Ctrl +F8. It creates.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
EPM-Series Power Meter(N1913/14A) Firmware Upgrade Process.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
Lab 9 Department of Computer Science and Information Engineering National Taiwan University Lab9 - Debugging I 2014/11/4/ 28 1.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Exercise 5: Developing an Embedded Application Write a software application to run on the system that we built in the previous exercise Compile the code.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
 Wind River Systems, Inc Chapter - 4 CrossWind.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
Lab (6) Introduction to Assembly Language 1. Introduction Objectives : Learn EMU8086 installation EMU8086 environment Learn how to: Assemble instructions.
Workshop Setup The software/hardware used in this workshop are:
Computer System Laboratory
Lab 1: Using NIOS II processor for code execution on FPGA
Debugging with gdb gdb is the GNU debugger on our CS machines.
PRU-ICSS Programming with CCS
CSC235 - Visual Studio Tutorial
Our Environment We will exercise on Microsoft Visual C++ v.6
Code Composer Essentials 3.0
Presentation transcript:

Debugging an Application Lab

Build/Debug Process A start Load Closest Sample “debug” into MULTI editor Cut and Paste Changes into Sample Build Modified Sample Syntax Errs? Correct Syntax y Connect to Target Board Start Debugger Download Application Set Needed Breakpoints B n

Build/Debug Process (2) B Run Application (F5) Inject Test Input Ran OK? y Locate Problem Modify Problem Code A n Covered Test Cases? n Build ROM Version y Re-Test Release Party

PEEK/POKE Lab

This is the main builder window Building the Project

Once all files are present in project workspace, building is readily done Building the Project

The Baseline Application Project Configuration Files (*.bld); Source path, System include directories, etc. Included Libraries; ThreadX, TCP/IP Stack, Drivers, BSP Integration C and Assembly Source Files; Common to all Projects Linker File (*.lx); Map the Software to the Hardware Memory Map

Perform Final Initializations Spawn all BSP Threads Path to Application Entry Point BSPROOT.C Creates Root Thread tx_thread_create() netosStartup() applicationStart() In root.c Contains main()

“Hello World” From root.c…

Connecting to Target (1of 3) In the Builder, choose Remote > Connect to Target.

Connecting to Target (2 of 3) Enter OCDSERV command line.

Connecting to Target (3 of 3) Two new windows »IN/OUT –Displays Printf’s »TARGET—can read/write to Memory/CPU

Starting Debugger In the Builder select Debug > debug

Debugger Features Set Break Points-Software and Hardware Step through code Examine C-code Examine Interlaced Assembly Examine values of variables, registers, memory

Debugger Windows Interlaced Assembler displayed Color enhanced buttons

Download code to Target Click “play” button or (F5)

Run Program Program is Running Use breakpoints or step through code

“PEEK/POKEing” variables Globals –Use “Browse/Globals” –Double-click the variable of interest to see contents –Address will appear in command window –If structure, click to display members, double click to see contents –Right-click the popup box to change value Local variables –Use View/Local Variables –Works similar to “Browse/Globals” above Double click a variable name from debugger C listing to get a watch popup box

“PEEK/POKEing” Memory Click “View/Memory” Enter address of interest in popup box Select radix using button Click on a row to change the contents Explore other options of the popup box

“PEEK/POKEing” registers Remember, most registers of interest on Net+ARM are memory- mapped. Consult your Hardware Reference Guide. For ARM processor registers: –Use “View/Registers” –In the popup box, right-click a register number to change it. CAREFUL!