Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.

Slides:



Advertisements
Similar presentations
Renesas Technology America Inc. 1 SKP8CMINI-15,17 Tutorial 2 Creating A New Project Using HEW4.
Advertisements

Introduction to HT-IDE3000 Micro-C development System Department.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Code Composer Department of Electrical and Computer Engineering
Program Development Tools The GNU (GNU’s Not Unix) Toolchain The GNU toolchain has played a vital role in the development of the Linux kernel, BSD, and.
Using Macros and Visual Basic for Applications (VBA) with Excel
Debugging What can debuggers do? Run programs Make the program stops on specified places or on specified conditions Give information about current variables’
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Software Development and Software Loading in Embedded Systems.
SKP8CMINI-15,17 Tutorial 1 Software Development Process using HEW4
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
Access Tutorial 10 Automating Tasks with Macros
Digital Image Processing Lecture3: Introduction to MATLAB.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Renesas Technology America Inc. 1 M16C/Tiny SKP Tutorial 2 Creating A New Project Using HEW4.
Introduction Purpose This training course introduces the free GNU tools that can be used for debugging embedded system application software in the Renesas.
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course provides an overview of the installation and.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training course describes how to configure the the C/C++ compiler options.
P.1ECE 331, Prof. A. Mason Professor Andrew Mason Michigan State University Spring 2013 ECE 331: PC Lab 1: Using HC12 ASM Simulators.
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.
IT 211 Project Integration and Deployment Lab #11.
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
IE 411/511: Visual Programming for Industrial Applications
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Purpose  This training module provides an overview of optimization techniques used in.
ADAM2 Single Remocon MCU IDE User’s Manual S/W Integrated Development Environment - Assembler - Simulator - Code Wizard V1.0 Technical Sales Team, ETA.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  The course describes the performance analysis and profiling tools.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. e 2 Studio – Getting Started.
Debugging an Application Lab. Build/Debug Process A start Load Closest Sample “debug” into MULTI editor Cut and Paste Changes into Sample Build Modified.
Active-HDL Interfaces Debugging C Code Course 10.
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.
VistA Imaging Workstation Configuration. October The information in this documentation includes functionality of the software after the installation.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training module provides an overview of debugging features.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course gives an overview of the Toolchain feature of the High.
Bit-DSP-MicrocontrollerTMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Renesas Technology America Inc. 1 M16C Seminars Lab 3 Creating Projects Using HEW4 14 March 2005 M16C Seminars Lab 3 Creating Projects Using HEW4 Last.
Renesas Technology America Inc. 1 SKP8CMINI Tutorial 2 Creating A New Project Using HEW.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
1 Introduction Purpose  This course gives an overview of assembler settings of the High-performance Embedded Workshop (HEW), used for developing software.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This course explains how to use Mapview, a utility program for the.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
Introduction Purpose Objectives Content Learning Time
Introduction Purpose Objectives Content Learning Time
PRU-ICSS Programming with CCS
Software Development with uMPS
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Presentation transcript:

Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development environment using the KPIT GNU toolchain and the Renesas SH simulator. Objectives Learn how to create a new project and what the compiler, assembler, and linker settings are and what they do. Understand how to configure the debug platform and allocate memory resources. Learn the process of downloading a module and debugging the source code with the SH Simulator. Content 41 pages 3 questions Learning Time 70 minutes

SH Simulator* KPIT GNU toolchain for SH target (integrated with HEW 4) Renesas HEW 4 IDE Prerequisites for Debugging HEW should be installed first, before the GNU toolchain Click each oval for more information

About the HEW IDE A powerful, yet easy-to-use software development solution that shortens system development time - Offers a familiar Graphical User Interface (GUI) that simplifies operations - Eliminates the need to switch environments between coding and debugging operations, or between target devices - Allows users to select right tool for each process and fully exploit the tool’s capabilities - Provides many essential functions, including: Project manager Setup “Wizard” Compiler interface Configurable build engine Editor Debugger and more Free HEW courses are available at Renesas Interactive SH Simulator KPIT GNU toolchain HEW Click each oval for more information

About the GNU Toolchain Proven, pre-built, binary tools that allow more time for application development - Compiler source code, Binutils, Newlib, and a GDB source-level debugger that shows what is happening inside program as it executes Tested and optimized for Renesas targets Free and easy to use Available for Windows and Linux platforms Easy download and installation Integrated with Renesas’ proprietary tools Free technical support at dedicated web portal - GDB stubs, monitor programs, tutorials, documentation, FAQs, and discussion forum SH Simulator KPIT GNU toolchain HEW Click each oval for more information

About the SH Simulator A simulator for SuperH RISC Engine family devices that enables the evaluation of software modules even without a hardware target - Uses HEW as the builder and debugger, for a consistent development environment - Provides extensive breakpoint functions (pseudo interrupt is available) - Supports ELF/DWARF object format, offers virtual interrupt and stack trace functions, and can optimize objects using information output by a profile function. Its - Implements debug function in helpful visual displays with images and waveforms. SH Simulator KPIT GNU toolchain HEW Click each oval for more information

Getting Started Click to launch HEW HEW Features: Configurable build engine - Set up compiler, assembler and linker options Integrated text editor - Customize syntax coloring for improved legibility Build capabilities - Run tools directly within environment Integrated debugger - Build and debug in same application Version control To launch HEW: Click on HEW icon on desktop Navigate from Start menu

Creating a Workspace Click OK Create a new project workspace

Enter Workspace name Creating a New Project (1/11) Use to add pre-compiled functions to the application Select CPU family Select KPIT GNUSH(ELF) toolchain Click OK Select application type Enter Project name 2

Creating a New Project (2/11) Click Next

Creating a New Project (3/11) Click Next Select CPU type Select particular CPU

Creating a New Project (4/11) Click Next to continue Select Endian typeSelect options

Creating a New Project (5/11) Click Finish to complete workspace creation Project Generator adds these files to your project

Creating a New Project (6/11) Click OK

Creating a New Project (7/11) Enter application code hereOutput window Editor window Workspace window

Creating a New Project (8/11) Sample application code was added

Creating a New Project (9/11) Click to Add or Remove Files

Creating a New Project (10/11) Select Configure View Configure how file information is displayed in Workspace window

Creating a New Project (11/11) start.asm Initializes stack pointer Calls hardware initialization routines Initializes the global variables by copying the DATA section from ROM to RAM Zeroes-out the BSS section (Sets uninitialized global variables to zero) Initializes global constructors (if startup program is CPP) Calls main function Startup program: start.asm

Which of these statements correctly describe aspects of creating a new project in HEW using the KPIT GNU toolchain? Select all that apply and then click Done. A.Because HEW is a configurable environment, you can select a GNU toolchain during new project creation and change your selection later in the project. B.The Editor window lets you view code from project files listed in the Workspace Window. C.After opening “main.c” in the Workspace window, you can add application code in the “main” function. D.KPIT Cummins provides free technical support for HEW for KPIT GNU tools. Done Question

Making Compiler Settings (1/3) Click Build Select Compiler Click Add to include directory Click Forward arrow Browse to select Directory Click OK to finish

Making Compiler Settings (2/3) Click Object tab Select Optimization level Select Debug Level Modify Object Directory location Expand tree view, if necessary Select Object Directory

Making Compiler Settings (3/3) Click to generate List file Click List tab Click OK Select options

Making Assembler Settings Click Build Select Assembler Click Object tab Select Debug Format Click OK

Making Linker Settings (1/2) Click Build Select Linker Click List tab By default, Generate map file option is checked

Making Linker Settings (2/2) Sections:.data contains static variables with initial values.bss contains static variables without initial values.rom contains character strings and constants.program contains programs.vector contains variable-vector area.fvector contains fixed-vector area Not generated by Compiler Click Sections tab Click to add new sections Modify addresses to match target memory map Click OK

Is the following statement true or false? Click Done when you are finished. “Object settings for the Compiler — which include the optimization level, debug level, and object directory — can be applied to individual files only.” True False Done Question

Configuring Debug Platform (1/4) Select Debug session to store debug settings Build completed Make sure that there are no errors Select Debug configuration Click Build All

Click Add Configuring Debug Platform (2/4) Click Debug Select Debug Settings Select SH2 Simulator Select Elf\Dwarf2_KPIT Click Add Select Elf\Dwarf2_KPIT Choose download options Browse to find download module

Configuring Debug Platform (3/4) Click OK

Configuring Debug Platform (4/4) Click Options tab Click OK Click Yes Select Download modules after build

Assigning Memory Resources (1/2) Click Build Select Linker Debug toolbar is added after connection to simulator Click OK Note address range for each section

Assigning Memory Resources (2/2) Click Options Select Memory Resource Enter the address range as per linker section settings Click OK

Downloading the Module (1/2) Select Debug > Download Module > sample.x These three operations download the “.x” file “Download Module” group only appears in Workspace window when a connection to a target has been established

Downloading the Module (2/2) Software Breakpoint area Source address column Line number View Source View Mixed Mode View Disassembly

Simulator Toolbar Reset CPU Go Go to cursor Reset Go Step In Step Over Step Out Halt Set PC to cursor Display PC Memory Resource Simulator System Debug Toolbar Function Keys Example: Press F5 key to execute user program from “reset vector” address Press F11 to step through the lines of the code Press F10 to step over a function

Debugging the Source Code (1/7) Click View Five categories for monitoring progress of debugging Choose desired window from list provided by selected category

Debugging the Source Code (2/7) Register window Output Window Memory Window I/O Window Editor WindowWorkspace Window

Debugging the Source Code (3/7) Click View Click Symbol Select Watch to view variable contents Watch Window

Debugging the Source Code (4/7) Double-click to insert Breakpoint

Debugging the Source Code (5/7) After Reset, press Go Click on Reset CPU

Debugging the Source Code (6/7) Click Step Execution halts at Breakpoint

Debugging the Source Code (7/7) Click View > Code > Event points Click to Add events PC breakpoints as events Event-point window Select break conditions

Redirecting Output Download sample tutorial at: Click View > CPU > Simulated I/O Simulated I/O window

Match each debug feature to the most appropriate explanation by dragging the letters on the left to the correct locations on the right. Click Done when you are finished. Debug object files Memory window B C Done Reset Show Solution A Displays the current value of the memory and allows you to modify memory address and data fields. B C Register window Displays the modified values of the CPU registers after an instruction has been executed. A Contain all the information needed by the debugger for debugging your C/C++ code. D F10 key command D Allows you to step over a function when you are debugging a program. Question

Creating a new project Making Compiler, Assembler and Linker settings Configuring the debug platform Allocating memory resources Downloading a module Debugging an application using HEW, the KPIT GNU toolchain, and the SH simulator Course Summary For more information, please visit our Web site: