Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L05I Advanced Debugging on the RX600 Fatih Peksenar.

Slides:



Advertisements
Similar presentations
The 8051 Microcontroller and Embedded Systems
Advertisements

1-1 Embedded Software Development Tools and Processes Hardware & Software Hardware – Host development system Software – Compilers, simulators etc. Target.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L02B Introduction to the RX-Arduino (Lab) Anthony.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Using a Renesas Code Generation Tool for RL78 Devices.
Introduction Purpose Objectives Content Learning Time
Cortex-M3 Debugging System
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Migrating from 8-to-32 bit Processors CC17I Kevin.
ID 413C: Can Touch This: Designing Capacitive-Based Touch Solutions Mark F Rodriguez Senior Engineering 13 October 2010 Version: 1.0 Xaplos Inc.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Debugging on RX with IAR Embedded Workbench.
Renesas Electronics America Inc. ID 311L: PIC to R8C Converter David Hedley Staff AE, Applications Engineering 14 Oct 2010 Version: 1.1.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Increase the Dynamic Range and Precision of Digital Filters.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. An Introduction to e 2 studio.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Know your Precise Position with RX600 MCU.
Slides created by: Professor Ian G. Harris Test and Debugging  Controllability and observability are required Controllability Ability to control sources.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Sensorless Vector Control with RL78G14.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: “Living in a Virtual World” – Microcontroller and.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A15C: Application Code Reprogramming Using Different Serial.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 320L: Rapid RX600 System Development Using the RPDL and.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L13B David Hedley, Applications Engineer Advanced.
Renesas Electronics America Inc. “© 2010 Renesas Electronics America Inc. All rights reserved ID 220L: Hands-on Embedded Ethernet Design with an Open Source.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 431L: Using a Graphics API to Create User Interface Components—Advanced.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 9L02I Software Development with an Open Source.
Renesas Electronics America Inc. ID 322C:Using HEW's Many Capabilities to Boost Software Development Productivity Axel Wolf Marketing Manager, Development.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Migrating from CubeSuite+ to Eclipse.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 2L03I RL78 Bluetooth Connectivity Anthony Harris,
Introduction Purpose This training course covers debugging an application on an SH target in the Renesas HEW (High-performance Embedded Workshop) development.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. e 2 Studio – Getting Started.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Know your Precise Position with RX600 MCU Huangsheng.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Debugging on RX with IAR Embedded Workbench Micael.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. 113C: Migration to the RX600 Made Easy Life in the fast lane.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID630L: Becoming Familiar with Sensorless Vector Control.
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
UBI >> Contents Chapter 2 Software Development tools Code Composer Essentials v3: Code Debugging Texas Instruments Incorporated University of Beira Interior.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Virtual EEPROM and Flash API for.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 011C: VELOCITY LAB TM Embedded Development Ecosystem Amrit.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. QuantiPhi for RH850 and RL78 - The Fastest Path from Idea.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Increase the Dynamic Range and Precision of Digital.
IAR Systems, Inc. ID 323C:A High Performance Compiler Solution for the RX Platform Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Implementing Bootloaders on Renesas MCUs.
2L01I Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 2L02I CAN In A Day Carl Stenquist, Staff.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 434L: Incorporating a Capacitive Touch Interface into.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Audio Solutions on the RX MCU Family Mitch Ferguson,
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced Debugging on the RX600.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training module provides an overview of debugging features.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced E 2 Studio Topics.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: CC05B RX Project Configuration Tips John Breitenbach,
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Low Power Design Michael Thomas, Applications Engineer.
ID 222L: Get Connected with USB on RX62N
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L08I Migrating from CubeSuite+ to Eclipse Neelima.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 5L08I Using the Renesas Graphics API to Create.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications.
IAR Systems, Inc. ID 324C:Introducing the Embedded Workbench for the Renesas SH Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course explains how to use section setting and memory.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 421L: R8C Segment-LCD API Lab Bob Proctor Staff Engineer.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A10L:A Flexible Flash Rewrite Application Brandon Hussey.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: QuantiPhi for RH850 and RL78 - The Fastest Path.
ID 021L: Model Based Control Design and Auto-Code Generation using the R8C Christopher Myers Director of Software Development 12 October 2010 Version:
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course describes Coverage, a utility that is used.
HCS12 Technical Training Module 15 – Break Module Slide 1 MOTOROLA and the Stylized M Logo are registered in the US Patent & Trademark Office. All other.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the Project Generator function.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Software Building Blocks for Faster.
e2Studio – Getting Started
David Hedley Staff AE, Applications Engineering 12 Oct 2010
The 8051 Microcontroller and Embedded Systems
RX 8-Bit Timer (TMR) 4/20/2011 Rev. 1.00
David Hedley Staff AE, Applications Engineering 13 October 2010
ID 325L: Getting Started with CubeSuite
Presentation transcript:

Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 3L05I Advanced Debugging on the RX600 Fatih Peksenar - Sr. Manager, Application Engineering

© 2012 Renesas Electronics America Inc. All rights reserved.2 Mr. Fatih Peksenar Manager, Applications Engineering Responsible for Custom Projects and RX code development. Key member of RX Technical Support Center PREVIOUS EXPERIENCE: Lead software engineer for telecom companies where used various debugging tools including: In-circuit emulators (ICE) JTAG debuggers, and logic analyzers. MSEE from the University of Minnesota

© 2012 Renesas Electronics America Inc. All rights reserved.3 Renesas Technology & Solution Portfolio

© 2012 Renesas Electronics America Inc. All rights reserved.4 Microcontroller and Microprocessor Line-up Wide Format LCDs  Industrial & Automotive, 130nm  350µA/MHz, 1µA standby 44 DMIPS, True Low Power Embedded Security, ASSP 165 DMIPS, FPU, DSC 1200 DMIPS, Performance 1200 DMIPS, Superscalar 500 DMIPS, Low Power 165 DMIPS, FPU, DSC 25 DMIPS, Low Power 10 DMIPS, Capacitive Touch  Industrial & Automotive, 150nm  190µA/MHz, 0.3µA standby  Industrial, 90nm  200µA/MHz, 1.6µA deep standby  Automotive & Industrial, 90nm  600µA/MHz, 1.5µA standby  Automotive & Industrial, 65nm  600µA/MHz, 1.5µA standby  Automotive, 40nm  500µA/MHz, 35µA deep standby  Industrial, 40nm  200µA/MHz, 0.3µA deep standby  Industrial, 90nm  1mA/MHz, 100µA standby  Industrial & Automotive, 130nm  144µA/MHz, 0.2µA standby bit 8/16-bit

© 2012 Renesas Electronics America Inc. All rights reserved.5 ‘Enabling The Smart Society’ FeatureFull ICEOn Chip Address Breakpoints   Data Breakpoints   Trace   Time Measurement   MCU

© 2012 Renesas Electronics America Inc. All rights reserved.6 Agenda Debugging features of the RX600 Complex Breakpoints Branch & Data Trace Performance Counters (HEW) RAM Monitor (E20) E1 & E20 RX Simulator E100 Lab

© 2012 Renesas Electronics America Inc. All rights reserved.7 Debugging Features of the RX600

© 2012 Renesas Electronics America Inc. All rights reserved.8 Debugging Features – Complex Breakpoints Breakpoints can monitor either: Execution Address Data Access Execution Address is used for standard ‘Before PC’ breaks Data Access breakpoints can monitor reads and writes Flash AddressAssembly Code FFFF8B15MOV.L # H,[R14]

© 2012 Renesas Electronics America Inc. All rights reserved.9 Debugging Features – Breakpoint Extras Other features that are used along with breakpoints Masking – Look for a range of values Combine Breakpoints – AND – OR – Sequential Data 0x1234Data 0x1200 Event #1 Event #2 Break Event #1 Event #2 BreakEvent #1Event #2Break >>= Mask 0xFF00

© 2012 Renesas Electronics America Inc. All rights reserved.10 Debugging Features – Trace Branch Trace Tracks branch sources and destinations Can fill in instructions in between destination and next branch Data Access Trace Where to store the data? Internal buffer Stream to PC Flash AddressInstruction FFFF0000BRANCH #FFFF0008 FFFF0004ADD R1, R2, R3 FFFF0008MOV R4, R5 FFFF000CSUB R3, R2, R1 FFFF0010BRANCH #FFFF0200 Trace Buffer

© 2012 Renesas Electronics America Inc. All rights reserved.11 Debugging Features – Performance Counters RX600 has two dedicated 32-bit counters Used to measure CPU cycles between triggers Can filter cycles – All cycles – Cycles spent in interrupt – Number of interrupts Can cascade counters for 64-bit operation + Instruction Stream Count Start Trigger Count Stop Trigger

© 2012 Renesas Electronics America Inc. All rights reserved.12 Debugging Features – Real-Time Memory Expression view/Real-time memory - What is the difference? Uses Debug DMAC to remove burden from MCU Same as RAM Monitor in HEW

© 2012 Renesas Electronics America Inc. All rights reserved.13 E1 & E20

© 2012 Renesas Electronics America Inc. All rights reserved.14 E1 & E20 Supports the RX family E1 supports V850, RL78, R8C, 78K The features do not come from the debuggers! E1 has 14 pin JTAG connection E20 has 38 pin JTAG + Trace connection

© 2012 Renesas Electronics America Inc. All rights reserved.15 The E20 Debugger Allows any Renesas MCU to use Data Access Breakpoints. 1.True 2.False ?

© 2012 Renesas Electronics America Inc. All rights reserved.16 RX Simulator

© 2012 Renesas Electronics America Inc. All rights reserved.17 RX Simulator GDB simulator in e 2 studio RX600 simulator in HEW Software algorithm development Cycle accurate simulation Has performance analysis built in Can trigger interrupts Great for testing software routines

© 2012 Renesas Electronics America Inc. All rights reserved.18 E100

© 2012 Renesas Electronics America Inc. All rights reserved.19 How many of you know what Code Coverage is?? char foo(x) { x = y + z; return x; } void bar(y) { y = a + b; }      

© 2012 Renesas Electronics America Inc. All rights reserved.20 How many of you know the Difference Between C0, C1, and C2 Code Coverage? CombinationC0C1C2 function1 >> function3    function1 >> function4    function2 >> function3    function2 >> function4    ? if(x) { function1(); } else { function2(); } if(y) { function3(); } else { function4(); }

© 2012 Renesas Electronics America Inc. All rights reserved.21 E100 Above and beyond E1 & E20 Full trace Code coverage and profiling Stack overflow detection

© 2012 Renesas Electronics America Inc. All rights reserved.22 Questions?

© 2012 Renesas Electronics America Inc. All rights reserved.23 Lab Exercises

© 2012 Renesas Electronics America Inc. All rights reserved.24 Start the Lab There are 6 lab sections Please complete them in sequence Please answer the questions in the lab We will cover them at the end Let us know if you have any questions during the lab Please refer to the Lab Handout and let’s get started!

© 2012 Renesas Electronics America Inc. All rights reserved.25 Lab Questions

© 2012 Renesas Electronics America Inc. All rights reserved.26 Lab Question 1 Question: Why does the linker give an error while building the project when the compiler is configured to output preprocessed source files (*.p files)? Answer: Because object files are not generated and therefore the linker has no input files. ?

© 2012 Renesas Electronics America Inc. All rights reserved.27 Lab Question 2 Question: Which data block was being processed when the error occurred? Answer: 5 ?

© 2012 Renesas Electronics America Inc. All rights reserved.28 Lab Question 3 and 4 ? Question: What is the address of the CurrentState? Answer: 0x199C Question: What is the value of the CurrentState? Answer: SM_ERROR or 3

© 2012 Renesas Electronics America Inc. All rights reserved.29 Lab Question 5 Question: If you wanted to break when a variable is set to a value between 0x80 and 0x87 or 0x90 and 0x97 (break on 0x80 <= x <= 0x87 or 0x90 <= x <= 0x97) what would your Compare and Mask Value fields be in the Add Eventpoint window? Answer: Compare= 0x80, Mask Value = 0xE8 ?

© 2012 Renesas Electronics America Inc. All rights reserved.30 Lab Question 6 Question: Why data compare value is set to 0x80? Answer: Since we are worried about the variable index rolling over and becoming negative we only need watch the high bit of a signed variable. ?

© 2012 Renesas Electronics America Inc. All rights reserved.31 Questions?

© 2012 Renesas Electronics America Inc. All rights reserved.32 ‘Enabling The Smart Society’ FeatureFull ICEOn Chip Address Breakpoints   Data Breakpoints   Trace   Time Measurement   MCU

© 2012 Renesas Electronics America Inc. All rights reserved.33 Please utilize the ‘Guidebook’ application to leave feedback or Ask me for the paper feedback form for you to use… Please Provide Your Feedback…

Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved.