Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications.

Slides:



Advertisements
Similar presentations
Renesas Electronics America Inc. ID A19C: Soup to Nuts with Free Software Innovation:New business models mean new opportunities DJ Delorie Senior Engineer,
Advertisements

ID 311C:Utilizing JTAG / boundary scan and JTAG emulation for board and system level test and design verification Get the total Coverage ! GOEPEL Electronics.
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
ID 020C: Hardware-in-Loop: System Testing Without the System Marcella Haghgooie Sr. Field Applications Engineer Version: 1.2 Applied Dynamics International.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A13C: Performing Digital Filtering on an MCU Kevin P King.
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. © 2010 Renesas Electronics America Inc. All rights reserved. ID B32L: Graphical Application Development under Linux/Implementing.
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. An Introduction to e 2 studio.
422L:Introduction to the.NET Micro Framework Julie Trygstad Vice President and Principal Engineer Version: 1.1 TrygTech 13 October 2010.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Know your Precise Position with RX600 MCU.
Renesas Electronics America Inc. “© 2010 Renesas Electronics America Inc. All rights reserved.” ID 720L: Software Development with an Open Source Real-Time.
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. © 2010 Renesas Electronics America Inc. All rights reserved. 020L: Superior SH2A Design Process using Model Based Design.
An Introduction to OSEK l JRD l ETAS-STV/PRM-E l 2010 © ETAS GmbH All rights reserved. The names and designations used in this document are trademarks.
© 2010 Renesas Electronics America Inc. All rights reserved. ID 411C: Capacitive Touch User Interfaces and Hardware- based Solutions Renesas Electronics.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 115C: Low Pin Count V850: Small but Powerful MCU for portable.
Renesas Electronics America Inc. ID 322C:Using HEW's Many Capabilities to Boost Software Development Productivity Axel Wolf Marketing Manager, Development.
© 2010 Renesas Electronics America Inc. All rights reserved. 131L: Optimizing RX Performance John Breitenbach President, Atlantex Corp. 14 October 2010.
ID 310C:Run-Time Visualization on Renesas MCUs Matt Gordon Sr. Applications Engineer Version: 1.2 Micriµm 12 October 2010.
Renesas Electronics America Inc. Jeremy Brodt
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Migrating from CubeSuite+ to Eclipse.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A12C:Noise Fundamentals and Techniques for Minimizing.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 930L: Board ID Embedded Security Lab Shotaro Saito Application.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 410L: Low cost audio in 8/16 bit applications using ADPCM.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A11L: 78K0R Low Power MCU Hands-On Lab Bob Proctor Staff.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. A30L: Increase the Dynamic Range and Precision of Digital.
ID A16C: Outfitting Embedded Devices with Low Power Wireless Communications Design considerations for adding wireless communications to low power embedded.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Know your Precise Position with RX600 MCU Huangsheng.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A11C: Hardware Design Fundamentals for MCU-based Embedded.
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.
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.
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.
ID 415:Drive a Color TFT-LCD panel with Low-cost Flash MCUs Sridhar Lingam Product Marketing Manager 12 October 2010 Version: 06.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced Debugging on the RX600.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Advanced E 2 Studio Topics.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 411L:A Direct Drive LCD Software Solution for Driving.
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
ID 024C: Auto Code Generation: The Shortest Distance From Idea to Implementation Christopher Myers Director of Software Development 12 October 2010 Version:
Global Edge Ian Carvalho Architect 14 October 2010 Copyright © 2010, Global Edge Software Ltd., Bangalore, India Version 1.0 ID 730L: Getting Started with.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 230L: Simplify your Networked Application with CAN and.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 416C:SH-2A Graphics for Low- to Mid-level Graphics Applications.
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: 3L05I Advanced Debugging on the RX600 Fatih Peksenar.
Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: 5L08I Using the Renesas Graphics API to Create.
IAR Systems, Inc. ID 324C:Introducing the Embedded Workbench for the Renesas SH Shawn A. Prestridge Senior Field Applications Engineer 12 October 2010.
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.
ID 721C: Using an RTOS in SH Based Product Development John Carbone VP, Marketing 13 October 2010 Version: 3.2 Express Logic, Inc.
ID 021L: Model Based Control Design and Auto-Code Generation using the R8C Christopher Myers Director of Software Development 12 October 2010 Version:
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 130L: Optimizing your SH2A Application Kevin P King Senior.
© 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.
David Hedley Staff AE, Applications Engineering 12 Oct 2010
RX Watchdog Timer (WDT)
David Hedley Staff AE, Applications Engineering 13 October 2010
ID 325L: Getting Started with CubeSuite
Presentation transcript:

Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 322L:Advanced Debugging on the RX600 Brandon Hussey Applications Engineer Version: & 13 October 2010

2 © 2010 Renesas Electronics America Inc. All rights reserved. Brandon Hussey Applications Engineer E1 & E20 RX support – Flash API & FlashLoader RPDL & PDG PREVIOUS EXPERIENCE: Interned at Renesas for 3 years Joined on full-time after graduation I hold an MSCPE from North Carolina State University

3 © 2010 Renesas Electronics America Inc. All rights reserved. Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** Solutions for Innovation ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis).

4 © 2010 Renesas Electronics America Inc. All rights reserved. 4 Renesas Technology and Solution Portfolio Microcontrollers & Microprocessors #1 Market share worldwide * Analog and Power Devices #1 Market share in low-voltage MOSFET** ASIC, ASSP & Memory Advanced and proven technologies * MCU: 31% revenue basis from Gartner "Semiconductor Applications Worldwide Annual Market Share: Database" 25 March 2010 **Power MOSFET: 17.1% on unit basis from Marketing Eye 2009 (17.1% on unit basis). Solutions for Innovation

5 © 2010 Renesas Electronics America Inc. All rights reserved. 5 Microcontroller and Microprocessor Line-up Superscalar, MMU, Multimedia  Up to 1200 DMIPS, 45, 65 & 90nm process  Video and audio processing on Linux  Server, Industrial & Automotive  Up to 500 DMIPS, 150 & 90nm process  600uA/MHz, 1.5 uA standby  Medical, Automotive & Industrial  Legacy Cores  Next-generation migration to RX High Performance CPU, FPU, DSC Embedded Security  Up to 10 DMIPS, 130nm process  350 uA/MHz, 1uA standby  Capacitive touch  Up to 25 DMIPS, 150nm process  190 uA/MHz, 0.3uA standby  Application-specific integration  Up to 25 DMIPS, 180, 90nm process  1mA/MHz, 100uA standby  Crypto engine, Hardware security  Up to 165 DMIPS, 90nm process  500uA/MHz, 2.5 uA standby  Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, Low Power Ultra Low Power General Purpose

6 © 2010 Renesas Electronics America Inc. All rights reserved. 6 Microcontroller and Microprocessor Line-up Superscalar, MMU, Multimedia  Up to 1200 DMIPS, 45, 65 & 90nm process  Video and audio processing on Linux  Server, Industrial & Automotive  Up to 500 DMIPS, 150 & 90nm process  600uA/MHz, 1.5 uA standby  Medical, Automotive & Industrial  Legacy Cores  Next-generation migration to RX High Performance CPU, FPU, DSC Embedded Security  Up to 10 DMIPS, 130nm process  350 uA/MHz, 1uA standby  Capacitive touch  Up to 25 DMIPS, 150nm process  190 uA/MHz, 0.3uA standby  Application-specific integration  Up to 25 DMIPS, 180, 90nm process  1mA/MHz, 100uA standby  Crypto engine, Hardware security  Up to 165 DMIPS, 90nm process  500uA/MHz, 2.5 uA standby  Ethernet, CAN, USB, Motor Control, TFT Display High Performance CPU, Low Power Ultra Low Power General Purpose RX Ethernet, CAN, USB, UART, SPI, IIC

7 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation MCU FeatureFull ICEOn Chip Address Breakpoints   Data Breakpoints   Trace   Time Measurement  

8 © 2010 Renesas Electronics America Inc. All rights reserved. Position Renesas offers full range of debugging options MCU

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

© 2010 Renesas Electronics America Inc. All rights reserved. 10 Debugging Features of the RX600

11 © 2010 Renesas Electronics America Inc. All rights reserved. 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]

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

13 © 2010 Renesas Electronics America Inc. All rights reserved. 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

14 © 2010 Renesas Electronics America Inc. All rights reserved. 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

15 © 2010 Renesas Electronics America Inc. All rights reserved. Debugging Features – RAM Monitor Has 4 x 1kB blocks to setup Uses Debug DMAC to remove burden from MCU Color coded to visualize accesses “Read” “Written” “Unchanged”

© 2010 Renesas Electronics America Inc. All rights reserved. 16 E1 & E20

17 © 2010 Renesas Electronics America Inc. All rights reserved. E1 & E20 Supports the RX family The features do not come from these! E1 has 14 pin JTAG connection E20 has 38 pin JTAG + Trace connection

18 © 2010 Renesas Electronics America Inc. All rights reserved. The E20 debugger allows any Renesas MCU to use Data Access breakpoints. 1.True 2.False ?

© 2010 Renesas Electronics America Inc. All rights reserved. 19 RX Simulator

20 © 2010 Renesas Electronics America Inc. All rights reserved. RX Simulator Comes free with the RX toolchain Cycle accurate simulation Has performance analysis built in Can trigger interrupts Great for testing software routines

© 2010 Renesas Electronics America Inc. All rights reserved. 21 E100

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

23 © 2010 Renesas Electronics America Inc. All rights reserved. How many of you know the difference between C0, C1, and C2 code coverage? ? if(x) { function1(); } { function2(); } if(y) { function3(); } else { function4(); } CombinationC0C1C2 function1 >> function3    function1 >> function4    function2 >> function3    function2 >> function4   

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

25 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

26 © 2010 Renesas Electronics America Inc. All rights reserved. Start the Lab Keep your dice turned to the section of the lab you are on. (Instructions are provided in the lab handout) Please refer to the Lab Handout and let’s get started!

27 © 2010 Renesas Electronics America Inc. All rights reserved. Checking Progress We are using the die to keep track of where everyone is in the lab. Make sure to update it as you change sections. When done with the lab, your die will have the 6 pointing up as shown here.

28 © 2010 Renesas Electronics America Inc. All rights reserved. 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. ?

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

30 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 3 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 ‘Data’ and ‘Mask’ fields be in the Event Setting window (as shown in Figure 4‑4)? Answer: Data = 0x80, Mask = 0xE8 ?

31 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 4 Question: Fill in the numbers for the Order column to have the Sequential breakpoint occur when the events have occurred in the following order: Answer: 1.First, main() function has been encountered 2.SequenceID has been written as 0x34 3.CurrentState has been written as 0x01 4.ValidateData() function has been executed 5.Last, SequenceID has been written as 0x45 ?

32 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Questions 5 & 6 Question 5: How many cycles did it take to perform the CRC calculation using the RX610’s CRC peripheral? Answer: 1,144 Question 6: How much faster is the hardware calculation per byte? Answer: 3.37 times quicker ?

33 © 2010 Renesas Electronics America Inc. All rights reserved. Questions?

34 © 2010 Renesas Electronics America Inc. All rights reserved. Innovation MCU FeatureFull ICEOn Chip Address Breakpoints   Data Breakpoints   Trace   Time Measurement  

© 2010 Renesas Electronics America Inc. All rights reserved. 35 Thank You!

Renesas Electronics America Inc.