Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for embedded systems that use microcontrollers (MCUs) from Renesas Technology Corp. Objectives Take a quick tour of the multiple-window HEW user interface. Become familiar with the basic steps involved in starting a project, editing and compiling the code, and running a simulation in order to debug the code. Content 24 pages 0 questions Learning Time 15 minutes 1
Scope of This Demonstration Project Generation Compiling Simulation 2
Project Generation: Getting Started Project Generation Compiling Simulation To begin: Invoke HEW from the Start menu or double-click on HEW2.exe 1. Select the desired option 2. Click OK 3
New Project Workspace Project Generation Compiling Simulation 1. Select the project type 2. Enter project name 3. Select CPU family 4. Select toolchain 5. Click OK 4
Setting Up Project Generation Compiling Simulation 1. Enter version of toolchain you are using 2. You can select CPU series and CPU type 3. Click Next 5
Choosing Options Project Generation Compiling Simulation 1. Specify the global options that you want to use 6 2. Click Next
Defining Initialization Project Generation Compiling Simulation 1. Choose the initialization routine you want to use 7 2. Click Next
Setting the Standard Library Project Generation Compiling Simulation 1. Choose the libraries you want to use 8 2. Click Next
Stack Area Settings Project Generation Compiling Simulation 1. Enter the stack pointer address and stack size 9 2. Click Next
Setting the Vector Project Generation Compiling Simulation 1. Select checkbox if you want to create vector definition files (You cannot enter vector handlers here) 2. Click Next 10
Systems for Debugging Project Generation Compiling Simulation 1. Choose the simulator you will be using, and 2. the type of target device 3. Click Next 11
Debugger Options Project Generation Compiling Simulation 1. Make the appropriate selections (Default settings are usually OK) 2. Click Next 12
Source Files Project Generation Compiling Simulation 1. Check the list of source files to be generated; change file names if necessary 13 2. Click Finish
Project Generation Summary Project Generation Compiling Simulation 14 1. Click OK
Compiling the Code Project Compiling Generation Compiling Simulation 1. Click on Tutorial.c to select it, then doubleclick on the file to open it in the editor 15
Edit and Build Functions Project Compiling Generation Compiling Simulation 1. Edit Tutorial.c 2. Build Tutorial.c 16
Viewing Compiled Results Project Compiling Generation Compiling Simulation Log of compilation results 17
Using the Simulator Project Compiling Generation Compiling Simulation 1. Switch from DefaultSession to SimSessionH8SXA 2. Click Yes 18
Downloading Code Project Compiling Generation Compiling Simulation 1. Right-click on Tutorial.abs 2. Select Download module 19
Setting a Software Breakpoint Project Compiling Generation Compiling Simulation Double-click to set a software breakpoint 20
Program Execution Project Compiling Generation Compiling Simulation 1. Click Reset Go 21
Setting Instant Watch Project Compiling Generation Compiling Simulation 1. Right-click on the variable count 2. Select Instant Watch 3. Click Add 22
Adding Variables Project Compiling Generation Compiling Simulation 1. Add the variable i 2. Perform a Step-In (F11) 3. Observe the changes line-by-line Demonstration complete. Try it yourself! Download a FREE evaluation copy of HEW at www.renesas.com/hew 23
Course Summary Speed and ease of use for software development Intuitive HEW GUI Project generation Compiling code Debugging code with a simulator Download a free evaluation copy of HEW @ www.renesas.com/hew 24