Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID A10L:A Flexible Flash Rewrite Application Brandon Hussey.

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.
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 911C: Case studies for Embedded Security
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. Increase the Dynamic Range and Precision of Digital Filters.
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.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
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. © 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.
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. 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.
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: 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.
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.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. ID 421L: R8C Segment-LCD API Lab Bob Proctor Staff Engineer.
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.
Class ID: Renesas Electronics America Inc. © 2012 Renesas Electronics America Inc. All rights reserved. Class ID: Using Software Building Blocks for Faster.
Bootloaders Many embedded processors have flash memory. This allows us to alter a product even though it is in the users hands: -fix bugs -upgrade or enhance.
Bootloaders Many embedded processors have flash memory. This allows us to alter a product even though it is in the users hands: -fix bugs -upgrade or.
David Hedley Staff AE, Applications Engineering 12 Oct 2010
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
ID 023C: Model-Based Control Design
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 A10L:A Flexible Flash Rewrite Application Brandon Hussey Applications Engineer Version: October 2010

2 © 2010 Renesas Electronics America Inc. All rights reserved. Brandon Hussey Applications Engineer RX support – Flash API & FlashLoader RPDL & PDG Compiler License Support 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

7 © 2010 Renesas Electronics America Inc. All rights reserved. Firmware v1.2 Innovation ??? Firmware v3.0 v4.0v1.3 Added Multitasking Fixed focusing bug

8 © 2010 Renesas Electronics America Inc. All rights reserved. Renesas Gets You There Quicker Project Timeline Starting from scratch Start with a Renesas project Finished Your Project Empty Renesas FlashLoader

9 © 2010 Renesas Electronics America Inc. All rights reserved. Agenda Overview of the FlashLoader Project 1: Using FlashLoader With Your Project 2: Making a Load Image 3: Obtaining the Load Image 4: Using the Load Image Lab

© 2010 Renesas Electronics America Inc. All rights reserved. 10 Overview of the FlashLoader Project

11 © 2010 Renesas Electronics America Inc. All rights reserved. What is the FlashLoader Project? Flexible system for implementing in-field-reprogramming in your own project Communications medium agnostic Modify to fit your system Retries & error checking built in Does not interfere with User Application

12 © 2010 Renesas Electronics America Inc. All rights reserved. Terms Device Storage v4.2 Host Load Image

13 © 2010 Renesas Electronics America Inc. All rights reserved. Checking…Downloading … Storing … Reprogramming … Parts of the FlashLoader Project? Flexible system that can be split into 2 parts: Downloader Bootloader Host Device Storage

14 © 2010 Renesas Electronics America Inc. All rights reserved. Which of the following communication methods can work with the FlashLoader project? 1.RS232 2.Ethernet 3.USB 4.WiFi 5.IrDA 6.ZigBee 7.All of the above ?

© 2010 Renesas Electronics America Inc. All rights reserved. 15 1: Using FlashLoader With Your Project

16 © 2010 Renesas Electronics America Inc. All rights reserved. Add FlashLoader to your HEW Project Add FlashLoader project files Enables future updates FlashLoader Bootloader is separate workspace Project Workspace User Application FlashLoader +

17 © 2010 Renesas Electronics America Inc. All rights reserved. Configure FlashLoader for Your System  FL_AppHeader.c  FL_Communications.c  FL_Downloader.c  FL_StoreManager.c  FL_Memory.c  FL_Utilities.c Host Device Storage v4.2 = Edit for your configuration

18 © 2010 Renesas Electronics America Inc. All rights reserved. FlashLoader Bootloader Separate workspace Separate memory areas Can use same or different communications as FL Downloader User Boot is special User Application & FlashLoader Downloader FlashLoader Bootloader MCUMCU User ROMUser Boot Area

19 © 2010 Renesas Electronics America Inc. All rights reserved. Why is User Boot special? Can jump to on reset Cannot accidentally erase Should have ‘one and done’ attitude Single-Chip Mode Reset Vector User Boot Mode Reset Vector

20 © 2010 Renesas Electronics America Inc. All rights reserved. The FlashLoader Bootloader has to reside in the User Boot Area? 1.True 2.False ?

© 2010 Renesas Electronics America Inc. All rights reserved. 21 2: Making a Load Image

22 © 2010 Renesas Electronics America Inc. All rights reserved. Making a Load Image S-Record files are inefficient S-Record Converter Load Image information: Binary Starts with header Has N blocks Load Image HeaderBlock 1 Block 2Block N... MOT S-Record Converter Load Image 60KB 20KB

© 2010 Renesas Electronics America Inc. All rights reserved. 23 3: Obtaining the Load Image

24 © 2010 Renesas Electronics America Inc. All rights reserved. Transferring the Load Image FlashLoader is medium agnostic Communications protocol is supplied Supported commands Information Request Erase Image from Storage Load Image Download Host Device Storage

25 © 2010 Renesas Electronics America Inc. All rights reserved. Storing the Load Image As Load Blocks come in: Check for errors Store Storage area partitioned for Load Images If error occurs, retry is possible Host Device Storage Load Block

26 © 2010 Renesas Electronics America Inc. All rights reserved. Storage What the Storage Area Looks Like Load Images are in different ‘partitions’ Load Image #1 – Address 0x HeaderBlock 1Block 2Block 3 Block 512 … Load Image #2 – Address 0x HeaderBlock 1Block 2Block 3 Block 656 … Load Image #3 – Address 0x EMPTY

© 2010 Renesas Electronics America Inc. All rights reserved. 27 4: Using the Load Image

28 © 2010 Renesas Electronics America Inc. All rights reserved. Reboot & Flash Reboot when convenient Check for new Load Image If valid, reflash MCU Simple Flash API for RX Jump to user application Host Device Storage Load Image

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

30 © 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!

31 © 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.

32 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 1 Question: How many times will the FlashLoader state machine be called in 1 second with the code from above? Answer: At ‘FL_TIMER_FREQUENCY’ or 50Hz since ‘#define FL_TIMER_FREQUENCY (50)’ ?

33 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 2 Question: How big is a Load File Header? Answer: 23 Bytes ? Structure of a Load File Header: | Valid Mask | 1 Byte | Always 0xAA, marks valid Load File Header | Image ID | 1 Byte | Identifies application | Version # | 1 Byte | Identifies version of application | Size of Load Image | 4 Bytes | Size of image as in external memory | Max Block Size | 4 Bytes | Max size of block | Image CRC | 2 Bytes | CRC of data as in ext memory, CCITT | Raw CRC | 2 Bytes | CRC of image as in MCU flash, CCITT | 1st Block Header Addr | 4 Bytes | Location of first block header in ext memory | Successfully Stored | 4 Bytes | Identifies successfully downloaded image

34 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Question 3 Question: What byte mask is used to distinguish a valid Block Header? Answer: 0xBB ? Structure of a Block Header: | Valid Mask | 1 Byte | Always 0xBB, marks new block header | Sequence ID | 2 Bytes | Identifier for this block | Flash Address | 2-4 Bytes | The starting address for the data | Size of Data | 4 Bytes | Number of bytes of Data | CRC-16 | 2 Bytes | CRC of Data, CCITT - x^16 + x^12 + x^5 +1 | Next Header Address | 4 Bytes | Address of next block header in external memory | Data | 0-4 GBytes| Data

35 © 2010 Renesas Electronics America Inc. All rights reserved. Lab Questions 4 & 5 Question 4: How many bytes was the original MOT file? Answer: 63,174 Bytes Question 5: How many bytes is the Load Image file? Answer: 21,268 Bytes ?

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

37 © 2010 Renesas Electronics America Inc. All rights reserved. Firmware v1.2 Innovation ??? Firmware v3.0 v4.0v1.3 Added Multitasking Fixed focusing bug

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

Renesas Electronics America Inc.