DOC PREVIEW
UNCC ECGR 4101 - M16C Tools Introduction

This preview shows page 1-2-3-22-23-24-44-45-46 out of 46 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 46 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

M16C HEW4 Lab 2: M16C Tools Introduction (Version 5) Last Updated: 27 July 2005OverviewThe HEW / ICD Development ProcessM16C/Tiny SKP ConnectivityM16C/Tiny SKP Board FeaturesICD (RTA-FoUSB-MON)Development ToolsHEW IDE OverviewLab 2 Hands on SectionStart HEWOpen a HEW WorkspaceOpen a HEW Workspace (cont.)Auto-RecoveryThe HEW WorkspaceWorkspace WindowSlide 16M16C Linkage OrderLink Order (M16C Toolchain Version 5.30.02 and later)HEW TipEditor (Source) WindowHEW ToolbarsStandard ToolbarBuild (re-build) Tutor1Output WindowHEW Debugging: OverviewHEW Debugger ExerciseConnect HardwareHEW debugging exampleRUN Mode (Just Some Notes)Debug Init Window (cont.)HEW Debug SessionDownload the executable file (with debugging information into the M16C/Tiny SKP Board)Slide 33HEW Advanced Breakpoint OptionsRunning Downloaded ProgramSlide 36RAM Monitor WindowSlide 38Memory WindowC Watch WindowI/O WindowSlide 42Modifying the ProgramLoad (re-load) Modified ProgramSave the SessionEnd of Lab 2Renesas Technology America Inc.M16C HEW4M16C HEW4 Lab 2: Lab 2:M16C Tools IntroductionM16C Tools Introduction(Version 5)Last Updated: 27 July 20052HEW4 M16C/Tiny Tutorial 127 July 2005OverviewOverviewThe following is a brief introduction on how to develop and debug M16C programs using HEW4 (High- performance Embedded Workshop) and other Renesas software and hardware tools. The Lab is based on the M16C/Tiny family of Starter Kits. These kits include SKP16C26A, SKP16C28 and SKP16C29-CL.3HEW4 M16C/Tiny Tutorial 127 July 2005The HEW / ICD Development ProcessThe HEW / ICD Development ProcessNC30 CompilerNC30 CompilerAbsolute file “.x30”Absolute file “.x30”Workspaceand Source windowsWorkspaceand Source windowsAS30 AssemblerAS30 AssemblerHEW Editor windowHEW Editor windowLN30 LinkerLN30 LinkerProject filesOptions and SettingsHEWBuild commandDebugSymbolsDebugSymbolsMachineCodeMachineCodeHEW DebuggerBuilder: Error reportingBuilder: Error reporting.r30files.c.h.a30.incCorrect ErrorsUART1RAMFlashMonitor FlashUser FlashMonitor RAMUser RAMM16C/Tiny MCU3. HEW sends the machine code to the M16C/Tiny SKP during downloads and uses the symbols for source level debugging1. Write programs using text editor5. Correct errors& repeat processHost PC2. HEW automates compile & linkI/O ConnectorICDUSB4. Debugging info sent back & forthSIOSKP16C/TinyBoard4HEW4 M16C/Tiny Tutorial 127 July 2005M16C/Tiny SKP ConnectivityM16C/Tiny SKP Connectivity5HEW4 M16C/Tiny Tutorial 127 July 2005M16C/Tiny SKP Board FeaturesM16C/Tiny SKP Board FeaturesM16C/Tiny MCU’s•20MHz Operating Frequency at 3.0V – 5V, 10MHz Operating Frequency at 2.7V – 5V•32~96kB Flash ROM, 2kB x 2 Virtual EEPROM, and 2~8kB RAM•Up to 71 GPIO with 4 Key-on Wakeup Inputs•Up to 8 Timers plus a Watchdog Timer•Up to 24-channel 10-bit ADC•2 DMAC•Up to 5 Serial IO’s (SIO’s) (supports I2C and SPI)•Voltage and Oscillation Failure Detection •Clock sources: Main (Xin), Sub (XCin), Internal R/C (ring)Onboard Features•LED’s (3 User, 1 Power)•Removable 2-line x 8-character LCD•Pushbutton Switches (3 User, 1 Reset)•Thermistor and potentiometer on two A/D inputs•I/O available on Expansion Ports6HEW4 M16C/Tiny Tutorial 127 July 2005ICD (RTA-FoUSB-MON)ICD (RTA-FoUSB-MON)The ICD (In-Circuit Debugger) provides power and a USB interface to the Host PC and communicates commands and data to and from the M16C/Tiny SKP board via a synchronous serial interface. As a debugging tool (during program debug), the ICD + HEW downloads a small kernel (or ROM Monitor) program with the user program to the M16C/Tiny SKP Board . This kernel provides a communication interface between the M16C/Tiny MCU and the ICD + HEW Debugger application on MCU status. While the kernel uses some resources of the M16C/Tiny, the operation of the ICD is transparent to the user’s program.As a programming tool, the ICD + Flash-over-USBTM(FoUSB) Programmer can be used to download user programs to the M16C/Tiny MCU on the SKP Board and many other Renesas’ flash MCU’s (the ICD will support other Renesas flash MCU’s by downloading an MCU Monitor Image (MMI) file for a particular MCU thru HEW or FoUSB Programmer).The ICD can be used with user’s target hardware providing the proper interface (details in RTA-FoUSB-MON manual, see www.renesas.com/skp ) NOTE: The kernel is only downloaded with the user program when Debugging but NOT when using the FoUSB Programmer.7HEW4 M16C/Tiny Tutorial 127 July 2005Development ToolsDevelopment ToolsHEW4An Integrated Development Environment (IDE) that invokes all necessary software for building your project. Also communicates with the ROM Monitor Program (in flash on the MCU) for program debugNC30, NC30WAC-compiler. Conforms to ANSI C standards. If not registered within 60days, limits code size to 64k bytes and no support. AS30Relocatable AssemblerSupports structured assembly language and a wide variety of macro instructions. Included with NC30WAFlash-over-USB ProgrammerFlash programming software for Renesas Flash MCU’s.8HEW4 M16C/Tiny Tutorial 127 July 2005HEW IDE OverviewHEW IDE OverviewHEW is an acronym for High-performance Embedded Workshop.When writing a microcontroller (or any computer) program, the program is usually split into multiple files to make it easier to read and understand.While exactly how the files are organized is up to the programmer, typically, the code is split up in a logical manner into various files (e.g. math functions in one file, serial port code in another, etc). After all the files in a project are compiled and assembled, a linker resolves the final address of the code within a single file. These steps can be tedious and repetitive. To make the process simple, we use an Integrated Development Environment (IDE) called HEW.9HEW4 M16C/Tiny Tutorial 127 July 2005Lab 2 Hands on SectionLab 2 Hands on SectionIn this lab you will:•Open and build a project in HEW•Launch a Debug session and:•download your program into the SKP hardware,•set breakpoints,•Step through your code, and•open various debug windows.•Edit a project file, re-build, download, and run the program10HEW4 M16C/Tiny Tutorial 127 July 2005Start HEWStart HEW1. From the Windows Start menu, click onPrograms > Renesas > High-performance Embedded Workshop > High-performance Embedded Workshop11HEW4 M16C/Tiny Tutorial 127 July 2005Open a HEW WorkspaceOpen a HEW Workspace1. Select ‘Browse to another project workspace’ when the


View Full Document

UNCC ECGR 4101 - M16C Tools Introduction

Documents in this Course
Load more
Download M16C Tools Introduction
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view M16C Tools Introduction and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view M16C Tools Introduction 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?