Renesas


Renesas Electronics Corporation (TSE: 6723), the world's number one supplier of microcontrollers, is a premier supplier of advanced semiconductor solutions including microcontrollers, SoC solutions and a broad range of analog and power devices.

You are viewing an older revision! See the latest version

Exporting to IAR Systems

Information

In this method, you will need a license of IAR Embedded Workbench for compilation.


In this page, "IAR Embedded Workbench" will be called "EWARM".

Install Windows serial driver

Install latest Windows Serial Port Driver to setup CMSIS-DAP from the link below:
https://mbed.org/handbook/Windows-serial-configuration

Download IAR Embedded Workbench (EWARM)

Download EWARM, and install.

Build of EWARM environment

Exporting to EWARM

  1. Goto mbed compiler.
  2. If your program includes the "mbed" library, delete the "mbed" linrary and import the "mbed-dev" library instead of the "mbed" library.
    This will not be needed in next revision of the "mbed" library.
  3. Right click at the program you want to export.
  4. Select "Export Program"
    /media/uploads/RyoheiHagimoto/export1.png
  5. Select "Renesas GR-PEACH" for Export Target
    Select "IAR" for Export Toolchain
    Push "Export"
    /media/uploads/RyoheiHagimoto/exprt_grpeach_to_iar.png
  6. Expand zip file.

Build Process

  1. Launch EWARM.
  2. Select the [File] menu -> [Open] -> [Workspace].
  3. Select .eww file in the expanded directory.
  4. Select the [Project] menu -> [Make]

  e.g.) The folder structure when making the work folder "C:\Workspase". Export project is mbed_blinky.
    C:
    +-- Workspace
        +-- mbed_blinky
            |   .hgignore
            |   GettingStarted.htm
            |   main.cpp
            |   mbed_blinky.dep
            |   mbed_blinky.ewd
            |   mbed_blinky.ewp
            |   mbed_blinky.ewt
            |   mbed_blinky.eww
            +-- .hg
            +-- Build
            |   Exe              <- When clicking [Build Project], ".bin" and ".out" file will be created here.
            |   List
            |   Obj
            +-- mbed


Change debug configuration

  1. Right-click the [Workspace] view and select [optioins]
  2. Select [CMSIS-DAP] in the [Debugger] in the [Runtime Checking] int the [Category].
  3. Select [Setup] tab and change [Reset] setting to "Software".
    /media/uploads/RyoheiHagimoto/iar_cmsis_setup_option.png
  4. Select [JTAG/SWD] tab and change [Interface] setting to "SWD".
    /media/uploads/RyoheiHagimoto/iar_cmsis_jtag_option.png
  5. Then, Click [OK]

Debug

  1. Connect USB cable
  2. Copy ".bin" file to mbed drive
  3. Reconnect USB cable
  4. Select the [Project] menu -> [Debug without downloading].

All wikipages