e² studio Pin Configurator Usage

Similar documents
SEGGER J-Link Lite for Renesas Synergy TM

PK-S5D9 v1.0 Out-of-Box Demonstration Programming Guidelines

1. Uses of Breakpoints... 2

Synergy Software Package Pin Configurator Usage

Customizing a SSP Module

Renesas Synergy Project Import Guide

Getting Started Guide for Heartbeat Kit

Getting Started Guide for LED Toggle Kit

Getting Started with NetX Duo Web Server

Simple Audio Playback Example for DK-S124

Introduction to Renesas Synergy SSP v.1.2.0

1. Overview Board Specifications S3 Series Board System... 3

IAR Embedded Workbench for Renesas Synergy v8.21.1

Migrating Existing e 2 studio Projects to IAR Embedded Workbench for Renesas Synergy

R-IN, RZ/T1, TPS-1 Groups

Renesas Flash Programmer V

Synergy Standalone Configurator (SSC) v Release Note. Renesas Synergy Platform Synergy Tools & Kits. Release Note

Out-of-Box Demonstration for S1/S3/S5 Target Boards

USER S MANUAL. Features. Evaluation System Contents. JESD204B High Speed ADC. Evaluation Kit. AN1809 Rev 0.00 Dec 5, 2012

I/O Port HAL Module Guide

1. Overview Hardware Hardware Configuration Clock Settings Pin Settings... 6

USBX Mass Storage Class (Device)

USER S MANUAL ISL55110_11EVAL1Z, ISL55110_11EVAL2Z. Before Getting Started. BNC Connections. Scope Probe Connections. Power Down Feature

APPLICATION NOTE. Introduction. Copying the SPICE Netlist. Model Editor. From SPICE Netlist to Allegro Design Sub-Circuit. AN1613 Rev.0.

I²C Slave HAL Module Guide

1. RTC HAL Module Features RTC APIs Overview RTC HAL Module Operational Overview... 3

RL78 Family Flash Self-Programming Library Type01 Ver.2.21 for the CC-RL compiler

1. Kit Contents Features Device Components Programming to the SK-S7G2 Starter Kit... 15

1. Overview TPS-1 GUI Configuration Tool Procedure of configure TPS Error Code... 9

1. Installation Creating the Project Workspace Opening Sample Code and Source Files Source Code Functionality...

R-IN32M3-EC, EC-1, RZ/T1

USER S MANUAL ISL2800XEVAL1Z. Introduction. Reference Documents. Evaluation Board Schematic. Power Supplies. Optional Transient Protection

Target Board S5D5 (TB-S5D5)

FIGURE 1. DIGITAL POT POWER TRENDS

1. Installation Creating the Project Workspace Opening Sample Code and Source Files Source Code Functionality...

1. Opening the sample code workspace Loading the selected sample code project Opening Sample Code and Source Files...

GUIX Studio v Release Note. Renesas Synergy Platform Synergy Software Express Logic GUIX Studio v

APPLICATION NOTE. Basic SPI Bus Information. Bus Configuration and SPI Protocol of Multiple DCPs. SPI Protocol and Bus Configuration of Multiple DCPs

AP4 for RH850 V

Debugging Your Application with IAR C-SPY

e² studio V7.0.1 Linux Host Public Beta for RZ

1. DTC HAL Module Features DTC HAL Module APIs Overview DTC HAL Module Operational Overview... 3

Key Matrix HAL Module Guide

Block Media RAM Framework Module Guide

JPEG Decode Framework Module Guide

USBX CDC ACM (Device) for Target Boards

Bluetooth Low Energy on DK-S7G2 and DK S3A7

External IRQ HAL Module Guide

PB0 25 PB1 26 PB2 27 PB3 28 PB4 29 PB5 30 PB6 31 PB7 32 VCC PC0 9 PC1 10 PC2 11 PC3 12 PC4 13 PC5 14 PC6 15 PC7 16

1. Overview of RX DSP Library System Requirements for the Sample Project... 2

1. Installation Creating the Project Workspace Adding Sample Code into DS Adding GNU Toolchain Support for DS-5...

USER S MANUAL ISL54206AEVAL1Z. Picture of Evaluation Board (Top View) Description. Board Architecture/Layout. Features.

PG-FP6 Gang Programmer V1.00 User s Manual

USER S MANUAL. Key Board Features. Description. References. Specifications. Ordering Information ISL91110IIN-EVZ, ISL91110II2A-EVZ, ISL91110IIA-EVZ

Renesas Starter Kit Sample Code for Cubesuite + Toolchain

Target Board S1JA (TB-S1JA)

QE for USB: A Dedicated Tool for USB

APPLICATION NOTE. 16-Bit Data Bus Operation. Summary of 16-Bit Data Bus Performance. 80C286/80386 Hardware Comparison. AN112 Rev 1.

APPLICATION NOTE. Introduction. Scope. Hardware Connections. Serial Port Operation. The X24C44 NOVRAM Teams up with 8051 Microcontrollers

USER S MANUAL. Description. Evaluation Board. Board Architecture/Layout. Features

Renesas Flash Programmer V

Using ADC to Wake Up the MCU from Low Power Modes

R20AN0311EJ0106 Rev.1.06 Interface conversion module for Ethernet Driver and Embedded system M3S-T4-Tiny Nov 30, 2016

Thread Monitor Framework Module Guide

USBX Device Class Mass Storage Module Guide

USER S MANUAL. Description. Key Features. References. Specifications. Ordering Information ISL9120IIA-EVZ. Evaluation Board User Guide

IWDT HAL Module Guide

Development Kit S124 (DK-S124)

1. Overview BACnet Demo Software Architecture Programming and Debugging Building Sample Project... 5

ADC Periodic Framework Module Guide

1. CAC HAL Module Features CAC HAL Module APIs Overview CAC HAL Module Operational Overview... 4

USER S MANUAL. ISL54059EVAL1Z Through ISL54064EVAL1Z. Description. Picture of Evaluation Board (Top View) Board Architecture/Layout.

Development Kit S128 (DK-S128)

Introduction Serial Programing... 2 Write Cycle... 2 Read Cycle... 2 Shared Timing Requirements Write Timing Diagram...

USBX TM Host Class Mass Storage Module Guide

USBX Host Class Hub Module Guide

Renesas Synergy APPLICATION NOTE. Project Migration Guide: SSP v1.0.0 to SSP v Introduction. Goals and Objectives.

Old Company Name in Catalogs and Other Documents

Checking Analog Inputs in Sleep State in S3A7

RL78/G11 APPLICATION NOTE. Demonstration Application. Introduction. Target Device. R01AN3918EG0100 Rev July 12, 2017

EX 6 XT 5 RESET 2 3 INT VCC FIGURE 1. TYPICAL HARDWARE CONNECTION FOR INTERFACING AN X24C44 TO A 6805 MICROCONTROLLER.

COMMON INFORMATION. AC Power Faults. Introduction. Overview of Telecom and ESD Standards. Transients. Electrostatic Discharge (ESD) Lightning

Tools used Renesas R32C/100 Standard Toolchain version (compiler, assembler, linker): E8a in-circuit debugger.

APPLICATION NOTE. Hardware Implementation. Power-On-Reset (POR) Software Implementation. Low Voltage Reset (LVR) Watchdog Timer

GUIX "Hello World" for PE-HMI1

RX Family APPLICATION NOTE. DNS client using the embedded TCP/IP M3S-T4-Tiny Module Firmware Integration Technology. Introduction.

Capacitive Touch Button Framework Module Guide

Old Company Name in Catalogs and Other Documents

PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 VCC PD0 PD1 PD2 PD3 PD4 PD5 MODA MODB 27 AS 26 R/W 28

USBX Device Class HID Module Guide

Old Company Name in Catalogs and Other Documents

Contents. Chapter 1 Target Product Chapter 2 User's Manual Chapter 3 Revisions Chapter 4 Supported Tools... 3

Mutual Capacitive Touch Software Application Design with Synergy S124 and S3A7 MCUs

1. ADC HAL Module Features ADC HAL Module APIs Overview ADC HAL Module Operational Overview... 4

Self-Capacitive Touch Software Application Design with Synergy S124 and S3A7 MCUs

RX Family RXv2 CPU Products

Renesas Synergy Project Import Guide

USER S MANUAL ISL54200EVAL1Z. Features. Description. Picture of Evaluation Board (Top View) Evaluation Board User s Manual

Capacitive Touch Slider Framework Module Guide

NetX Telnet Client Module Guide

Transcription:

Introduction Application Note This application note describes how to view and edit pins for Renesas Synergy Platform using e 2 studio or the IAR Embedded Workbench for Renesas Synergy (IAR EW for Synergy). Objective The objective of this application note is to help users to be familiar with the procedure of configuring Pins of the Synergy project by using the Pin Configurator of e 2 studio (IAR EW for Synergy). Required Resources The procedure in this application note applies to all Renesas Synergy devices and development boards. Before following the procedure in this application note, make sure the following resources are available: A PC running Microsoft Windows 7 or 10 with the following Renesas software installed: IAR EW for Synergy v7.71.3 or e 2 studio v5.4.0 Synergy e 2 studio installation instructions, and ISDE Documentation Synergy Software Package (SSP) v1.3.0 or later Renesas Synergy Standalone Configurator (SSC) v5.4.0.023 only with IAR EW for Synergy. You can download the required Renesas software and view the installation instruction from the links above or the Renesas Synergy Gallery to view all Renesas Synergy Tools and Kits. Operating Environment Target devices SSP ISDE Toolchains Development Kit for Renesas Synergy TM S7G2 Development Kit for Renesas Synergy TM S3A7 Development Kit for Renesas Synergy TM S124 SSP 1.3.0 or later e 2 studio v5.4.0 or IAR EW for Synergy v7.71.3 GNU Arm Compiler GCC_4.9.3.20150529 included in e 2 studio IAR EW for Synergy R20AN0479EU0100 Rev.1.00 R20AN0479EU0100 Rev.1.00 Page 1 of 33

Contents 1. Generating a Synergy Project... 3 1.1 Generating a Synergy Project using e 2 studio...3 1.2 Generating a Synergy Project using IAR EW for Synergy...6 2. Launching Pin Configurator... 11 2.1 Launching Pin Configurator using e 2 studio... 11 2.2 Launching Pin Configurator using IAR EW for Synergy... 11 3. The Pins Configurator GUI... 12 4. How to use the Select pin configuration pane... 13 4.1 GUI Introduction... 13 4.2 Using Single Pin Configuration file (default)... 13 4.3 Using Multiple Pin Configuration files... 14 4.4 Import a Pin Configuration... 16 5. How to use the Pin Selection pane... 19 6. How to use the Pin Configuration pane... 20 8. Generating Pin Configuration source code... 28 8.1 Generating source code in e 2 studio... 28 8.2 Generating source code in IAR EW for Synergy... 30 9. Additional Information... 32 R20AN0479EU0100 Rev.1.00 Page 2 of 33

1. Generating a Synergy Project This chapter describes how to create a Synergy C project used for demonstrating the operation of the pin configurator. If you already have a Synergy project, skip to chapter 2. 1.1 Generating a Synergy Project using e 2 studio 1. Open e 2 studio and launch a workspace. Select File New Synergy C Project to open the project creation wizard. Figure 1 New Synergy C Project 2. In the project creation wizard, input project information: Project name: Pin_Configurator_Example Use default location: Checked Toolchain: GCC ARM Embedded License: In case the license file is not showing, click Change license file to open the Synergy License dialogue box. Click [ ] button and browse to this location for license: {e2 studio installed folder} \ internal\projectgen\arm\licenses and select the License file in XML format. This license file is available only when SSP is installed. Click Next button to continue. Figure 2 Synergy Project Creation Wizard 3. In the Device Selection dialog, input device and tool information: R20AN0479EU0100 Rev.1.00 Page 3 of 33

Board: S7G2 DK Other fields are kept as default as shown in the below figure. Click Next button to continue. Figure 3 Device Selection 4. In project templates dialog, select project type: Blinky and then click Finish to create project. Figure 4 Project Templates R20AN0479EU0100 Rev.1.00 Page 4 of 33

5. You may be prompted to open the Synergy Configuration perspective. Click Yes to open the perspective. Figure 5 Open Synergy Configuration Perspective 6. New Synergy Project is successfully created and launched in Synergy Configuration perspective. There are three important views in this perspective: Project Explorer, Synergy Configuration Editor, and Package. Figure 6 New project opened in the Synergy Configuration Perspective R20AN0479EU0100 Rev.1.00 Page 5 of 33

1.2 Generating a Synergy Project using IAR EW for Synergy 1. In the IAR EW for Synergy menu, choose Project Create New Project Figure 7 Create New Project 2. In the Create New Project dialog box, select Renesas Synergy Project and click OK. Figure 8 Select Renesas Synergy Project 3. In the standard save dialog box that appears, choose a workspace location, for example MyWorkspace, and click Save. R20AN0479EU0100 Rev.1.00 Page 6 of 33

4. In the Renesas Synergy Settings dialog box that appears, specify: Location where Renesas Synergy SSC/SSP is installed: C:\Renesas\Synergy\SSC_SSCversion the default installation folder. License file: Can be found at C:\Renesas\Synergy\SSC_SSCversion\internal\projectgen\arm\Licenses Replace encrypted files with decrypted files: unchecked Figure 9 Renesas Synergy Settings 5. In the Save As dialog box that appears, enter the project name: Pin_Configurator_Example and click Save. 6. When the Synergy Standalone Configurator opens, specify: SSP version: 1.3.0 Board: S7G2 DK Device: R7FS7G27H2A01CBD 7. Click Next R20AN0479EU0100 Rev.1.00 Page 7 of 33

Figure 10 Device Selection 8. In the Project Template Selection, select Blinky. Click Finish. Figure 11 Select project template R20AN0479EU0100 Rev.1.00 Page 8 of 33

9. The Synergy Standalone configurator window will be launched. We will work with this configurator later. For now, switch back to IAR EW for Synergy window. Figure 12 Synergy Configurator R20AN0479EU0100 Rev.1.00 Page 9 of 33

10. The Synergy project is generated successfully. Figure 13 Project is created R20AN0479EU0100 Rev.1.00 Page 10 of 33

2. Launching Pin Configurator This chapter describes how to launch the Pin Configurator using e 2 studio or IAR EW for Synergy. 2.1 Launching Pin Configurator using e 2 studio Double click the file Configuration.xml in Project Explorer to open the Synergy Configuration Editor. When launching the Synergy Configuration Editor, the first page displayed is the Summary page. Click the Pins tab to open the Pin Configurator page. Figure 14 Launch Synergy Configuration Editor in e 2 studio 2.2 Launching Pin Configurator using IAR EW for Synergy The Synergy Standalone configurator has been opened in step 8 of section 1.2. If the configurator is closed, do the following steps to open it again: In the IAR EW for Synergy menu, choose Renesas Synergy Configurator to launch the Synergy Configuration Editor. Figure 15 Launch Synergy Configuration Editor in IAR EW for Synergy When launching the Synergy Configuration Editor, the page displayed is the Summary page. Click the Pins tab to launch the Pin Configurator page. R20AN0479EU0100 Rev.1.00 Page 11 of 33

3. The Pins Configurator GUI Figure 16 Launch Pin page The Pins Configurator allows you to configure the pins in the Synergy project. The GUI of the Pins Configurator in e 2 studio and IAR EW for Synergy are the same. It consists of four main parts: Select pin configuration Pin Selection Pin Configuration Package Figure 17 Pins Configurator GUI The details and how to use each part of the Pins Configurator will be described in the following chapters. R20AN0479EU0100 Rev.1.00 Page 12 of 33

4. How to use the Select pin configuration pane The Select pin configuration is used to select the pin configuration file. A pin configuration file represents the setting for a specific Synergy device. When modifying pin setting, the changes will be saved to the pin configuration file. 4.1 GUI Introduction The Select pin configuration pane has three main parts: Select pin configuration: this drop-down list allows you to select a required pin-configuration file from a list of available pin-configuration files. Any.pincfg files found in the Synergy project will be added to this drop-down list. Generate data: Checkbox: checked by default. Generate pin configuration to source code. Text box: contains the name of the data structure to be generated for the pin-configuration. The default name is g_bsp_pin_cfg. You can use the default name or rename it. Import and Transform: Import button: import an existing (compatible) Pin Configuration into the Synergy project Transform button: Unused. Will be implemented in a later version. Figure 18 Select pin configuration 4.2 Using Single Pin Configuration file (default) When a new Synergy project is created, two Pin-configuration files.pincfg will be generated by default. These Pin-configuration files are named after the device name R7FS7G27H2A01CBD.pincfg and board name S7G2-DK.pincfg. In e 2 studio, they are displayed in the Project Explorer window. Figure 19 Pin configuration files in e 2 studio R20AN0479EU0100 Rev.1.00 Page 13 of 33

In IAR EW for Synergy, the pin-configuration files are not displayed in the Workspace window. To view it, you must open Windows Explorer and go to the project folder. Figure 20 Pin configuration files in IAR EW for Synergy Two pin-configuration files are created by default, only the S7G2-DK.pincfg (named after the board name) is used and the other one R7FS7G27H2A01CBD.pincfg is left unused. In a normal case, you can ignore the R7FS7G27H2A01CBD.pincfg and perform every pin configurations with S7G2-DK.pincfg. Figure 21 Only the S7G2-DK.pincfg is used 4.3 Using Multiple Pin Configuration files A Synergy project usually only needs to use one pin-configuration file. In some applications, multiple pin-configuration files are needed. It allows dynamic switching of pin configurations during run time, or for setting different power modes. R20AN0479EU0100 Rev.1.00 Page 14 of 33

The multiple pin configurations will be created in different data structures. The following steps describe how to use multiple pin configuration files: 1. If only one more pin configuration is needed, you can make use of the remaining unused pin-configuration file. Select the R7FS7G27H2A01CBD.pincfg in the drop-down list, check the check box and input a unique name in the text box. Figure 22 Use the R7FS7G27H2A01CBD.pincfg 2. After step 1, if more pin configurations are needed, you need to manually create a new pin configuration file. Select a pin configuration file, in this case, it is R7FS7G27H2A01CBD.pincfg. Then Copy and Paste it to create a new configuration file. Rename the newly created configuration file as you like. Figure 23 Create a new pin-configuration file in e 2 studio Figure 24 Create a new pin-configuration file in IAR EW for Synergy R20AN0479EU0100 Rev.1.00 Page 15 of 33

3. The new configuration file is automatically added to the Select pin configuration drop-down list. Figure 25 New Configuration File is added to the drop-down list 4. Select NewName.pincfg in the drop-down list and enter a unique name for it in the text box. For example: NewConfig. 4.4 Import a Pin Configuration Figure 26 Unique name for the new pin configuration You can import an existing compatible Pin Configuration into Synergy project. This is a partial import, it means that the new setting will be merged to the current settings. The following steps describe how to use the import function. 1. Select a pin configuration file to import to. In this case, select the NewName.pincfg created in section 4.3. Figure 27 Select NewName.pincfg 2. Click on the button to open the Import Pin Configurations from File dialog. Figure 28 Click the Import button R20AN0479EU0100 Rev.1.00 Page 16 of 33

3. In e 2 studio, click on Workspace... to select the file from your workspace or click on File System... to select file from file system. In IAR EW for Synergy, click on File System... to select file from file system. In this example, click File System, go to the Project Folder and select the S7G2-DK.pincfg file to import. Figure 29 Import Setting from the S7G2-DK.pincfg file R20AN0479EU0100 Rev.1.00 Page 17 of 33

4. Click OK. If there is no conflict, the settings of S7G2-DK.pincfg file will be imported to NewName.pincfg file. 5. If conflicts exist, the import function points out conflicts and provides the following options for you: A. Cancel the import operation. B. Ignore the conflicts and import the conflicting settings anyway. C. Continue the import operation without importing the conflicting settings. Figure 30 Conflicts found during the import process R20AN0479EU0100 Rev.1.00 Page 18 of 33

5. How to use the Pin Selection pane The Pin Selection pane shows all the Pins that are available for the device. The pins are categorized into groups - Ports, Peripherals, and Other Pins. Note: The usage of Pin Selection is the same for IAR EW for Synergy and e 2 studio. 1. The Pin Selection pane contains: A filter text box A Clear button An Expand All button A Collapse All button A Pins tree that contains the categorized Pins Clear Filter text box Pins tree Collapse All Expand All Figure 31 Pin Selection Pane 2. Typing text in the filter text box will list out the Pins that contain the text. Clicking on the Clear button will clear the text box and the filter results. Figure 32 Use the filter text box R20AN0479EU0100 Rev.1.00 Page 19 of 33

3. The Expand All button and the Collapse All button will expand and collapse the Pins tree respectively. Figure 33 Use the Expand All and Collapse All button 4. Selecting a port or peripheral in the Pin Selection pane will show its settings in the Pin Configuration area. It can then be modified and set up as necessary. The icon of the selected pin will also be marked with blue border in the Package view. Figure 34 Select a Port in Pin Selection pane 6. How to use the Pin Configuration pane The Pin Configuration pane allows user to change the setting of Ports and Peripherals that are selected in the Pin Selection pane. Note: Use of the Pin Configuration is the same for IAR EW for Synergy and e 2 studio. R20AN0479EU0100 Rev.1.00 Page 20 of 33

1. The Pin Configuration pane contains: Lock/Unlock Settings button Setting Area Setting Area Lock/Unlock Settings Figure 35 Pin Selection Pane 2. Click on the Lock/Unlock Setting button will disable/enable the modification of the selected item in the Pin Configuration pane. Figure 36 Lock a selected Pin R20AN0479EU0100 Rev.1.00 Page 21 of 33

3. Click on the follow connection button in the setting area of a connected pin and will take you to the setting area of the corresponding Peripheral and vice versa. Figure 37 Switching between Pin and Peripheral setting R20AN0479EU0100 Rev.1.00 Page 22 of 33

4. If a module setting is configured incorrectly, that module will be marked with the error symbol in the Pin Selection pane and the Pins Configuration pane. The details of the conflicts will be shown in the Pin Conflicts or Problems view. All conflicts must be resolved before generating the source code. Figure 38 Error in Pin Configuration 5. After the Pins are configured, press Ctrl+S to save the changes. An asterisk (*) indicates that the changes in setting is not saved. Press [Ctrl+S] to save it Figure 39 Unsaved setting R20AN0479EU0100 Rev.1.00 Page 23 of 33

7. How to use the Package View The Package view displays all available Pins in the device along with their attributes. Note: Using the Package View is the same in IAR EW for Synergy and e 2 studio. In e 2 studio, the Package View is opened by default in the Synergy Configuration perspective. If it is closed, select Window Show View Pin Configurator Package to open it. 1. The Package View contains: Pins table Display all the pins along with their attribute. The Pins attribute are shown as background color and label. Zoom In and Zoom Out button Zoom In and Zoom Out the Pins table Select Attribute for Background Color button Change the background colors of the pin according to the Pin attributes selected. Select Attribute for Labels button Switch between the module name and symbolic name of the Pins. Description Text Describe the color being used in the Pins table Select Attribute for Labels Select Attribute for Background Color Zoom In, Zoom Out Pins table Description Text Figure 40 Package View GUI R20AN0479EU0100 Rev.1.00 Page 24 of 33

2. When an item in the Pin Selection is selected, all the corresponding pins will be bordered with a blue line. In this example, PB04, PB05, PB02 and PB03 are used by the Serial Communications Interface (SCI8), and they are marked by blue line in the Package view. Figure 41 Pins of SCI8 are marked with blue line in Package view 3. Selecting a Pin in the Package view will show its setting in the Pin Configuration pane. Figure 42 Select a Pin in [Package] view R20AN0479EU0100 Rev.1.00 Page 25 of 33

4. When a pin is correctly configured, it is marked with a OK symbol. If it is incorrectly configured, it is marked with Error symbol. Error pin setting Correct pin setting Figure 43 Correct and error symbol in Package view 5. You can change the background color of the Pins based on the selected attribute. Click on the button on the top right corner of Package view to show the drop-down list: Connection Status (default): Error, Warning, OK Drive Capacity: High, Medium, Low Mode: Analog Mode, Disable, IRQ Mode, Input Mode, Output mode Initial High, Output mode Initial Low, Peripheral mode. Output Type: CMOS, n-ch open drain Pull Up: None, input pull-up Selecting one item from the list will change the background color of the Pins table. The colors will be described in the Description Text area. Figure 44 List of Pins attributes R20AN0479EU0100 Rev.1.00 Page 26 of 33

6. You can also switch between the module name and symbolic name of the Pins by clicking on the button on the top right corner of Package view: Figure 45 Module name and Symbolic name in Package view R20AN0479EU0100 Rev.1.00 Page 27 of 33

8. Generating Pin Configuration source code 8.1 Generating source code in e 2 studio 1. After configuring the Pins, you can click on the Generate Project Content button to generate the necessary pin configuration source files for the project. Figure 46 Generate Project Content button 2. The source code for the Pin Configuration is generated at synergy_cfg/ssp_cfg/bsp/bsp_pin_cfg.h and src/synergy_gen/pin_data.c. Note: Do not edit these files as they are overwritten whenever the Generate Project Content button is pressed. Figure 47 Source code for Pin Configuration R20AN0479EU0100 Rev.1.00 Page 28 of 33

3. In case of using multiple Pin Configurations, different data structures can be created in pin_data.c file. This allows dynamic switching of pin configurations during run time or for different power modes. Figure 48 Different data structures for different Configurations 4. Each Pin Configuration will have its own CSV file that contains all the pin configurations. The CSV files can be found at synergy_cfg/ssp_cfg/bsp/*.csv. In this example, we use two Pin Configuration files to generate two data structures. Figure 49 CSV files R20AN0479EU0100 Rev.1.00 Page 29 of 33

8.2 Generating source code in IAR EW for Synergy 1. After configuring the Pins, you can click on the Generate Project Content button to generate the necessary pin configuration source files for the project. Figure 50 Generate Project Content button 2. The source code is generated at ProjectDir\Synergy\Source Files\src\synergy_gen\pin_data.c. Figure 51 Source code for Pin Configuration R20AN0479EU0100 Rev.1.00 Page 30 of 33

3. In case of using multiple Pin Configurations, different data structures can be created in pin_data.c. This allows dynamic switching of pin configurations during run time or for different power modes. In this example, we will use S7G2-DK.pincfg and NewName.pincfg to generate two data structures. The data structures are named after the unique names that were entered in the text box in previous steps: g_bsp_pin_cfg and NewConfig Figure 52 Different data structures for different Configurations 4. Each Pin Configuration will have its own CSV file that contains all pin configurations. The CSV files are not shown in the Workspace window, and you can open Windows Explorer and locate the file at ProjectDir \synergy_cfg\ssp_cfg\bsp\. Figure 53 CSV files R20AN0479EU0100 Rev.1.00 Page 31 of 33

9. Additional Information For more information on Pin Configurator or other sections of Synergy Configurator, please refer to e 2 studio Help Contents. Select Help Help Contents, and go to Synergy Contents Synergy configuration editor to open the topic related to Synergy Configurator. Figure 54 Synergy Topic in e 2 studio Help Contents For the introduction and installation guide of IAR EW for Synergy, refer to IAR EW for Synergy Help Contents. Select Help Contents, and go to IAR Embedded Workbench for Renesas Synergy. Figure 55 Synergy Topic in IAR EW for Synergy Help Contents R20AN0479EU0100 Rev.1.00 Page 32 of 33

Website and Support Support: https://synergygallery.renesas.com/support Technical Contact Details: America: https://www.renesas.com/en-us/support/contact.html Europe: https://www.renesas.com/en-eu/support/contact.html Japan: https://www.renesas.com/ja-jp/support/contact.html All trademarks and registered trademarks are the property of their respective owners. R20AN0479EU0100 Rev.1.00 Page 33 of 33

Revision History Description Rev. Date Page Summary 1.00 - Initial release

Notice 1. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. You are fully responsible for the incorporation or any other use of the circuits, software, and information in the design of your product or system. Renesas Electronics disclaims any and all liability for any losses and damages incurred by you or third parties arising from the use of these circuits, software, or information. 2. Renesas Electronics hereby expressly disclaims any warranties against and liability for infringement or any other disputes involving patents, copyrights, or other intellectual property rights of third parties, by or arising from the use of Renesas Electronics products or technical information described in this document, including but not limited to, the product data, drawing, chart, program, algorithm, application examples. 3. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others. 4. You shall not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part. Renesas Electronics disclaims any and all liability for any losses or damages incurred by you or third parties arising from such alteration, modification, copy or otherwise misappropriation of Renesas Electronics products. 5. Renesas Electronics products are classified according to the following two quality grades: "Standard" and "High Quality". The intended applications for each Renesas Electronics product depends on the product s quality grade, as indicated below. "Standard": Computers; office equipment; communications equipment; test and measurement equipment; audio and visual equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots etc. "High Quality": Transportation equipment (automobiles, trains, ships, etc.); traffic control (traffic lights); large-scale communication equipment; key financial terminal systems; safety control equipment; etc. Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury (artificial life support devices or systems, surgical implantations etc.), or may cause serious property damages (space and undersea repeaters; nuclear power control systems; aircraft control systems; key plant systems; military equipment; etc.). Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics. 6. When using the Renesas Electronics products, refer to the latest product information (data sheets, user s manuals, application notes, "General Notes for Handling and Using Semiconductor Devices" in the reliability handbook, etc.), and ensure that usage conditions are within the ranges specified by Renesas Electronics with respect to maximum ratings, operating power supply voltage range, heat radiation characteristics, installation, etc. Renesas Electronics disclaims any and all liability for any malfunctions or failure or accident arising out of the use of Renesas Electronics products beyond such specified ranges. 7. Although Renesas Electronics endeavors to improve the quality and reliability of Renesas Electronics products, semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please ensure to implement safety measures to guard them against the possibility of bodily injury, injury or damage caused by fire, and social damage in the event of failure or malfunction of Renesas Electronics products, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures by your own responsibility as warranty for your products/system. Because the evaluation of microcomputer software alone is very difficult and not practical, please evaluate the safety of the final products or systems manufactured by you. 8. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product. Please investigate applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive carefully and sufficiently and use Renesas Electronics products in compliance with all these applicable laws and regulations. Renesas Electronics disclaims any and all liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations. 9. Renesas Electronics products and technologies shall not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. You shall not use Renesas Electronics products or technologies for (1) any purpose relating to the development, design, manufacture, use, stockpiling, etc., of weapons of mass destruction, such as nuclear weapons, chemical weapons, or biological weapons, or missiles (including unmanned aerial vehicles (UAVs)) for delivering such weapons, (2) any purpose relating to the development, design, manufacture, or use of conventional weapons, or (3) any other purpose of disturbing international peace and security, and you shall not sell, export, lease, transfer, or release Renesas Electronics products or technologies to any third party whether directly or indirectly with knowledge or reason to know that the third party or any other party will engage in the activities described above. When exporting, selling, transferring, etc., Renesas Electronics products or technologies, you shall comply with any applicable export control laws and regulations promulgated and administered by the governments of the countries asserting jurisdiction over the parties or transactions. 10. Please acknowledge and agree that you shall bear all the losses and damages which are incurred from the misuse or violation of the terms and conditions described in this document, including this notice, and hold Renesas Electronics harmless, if such misuse or violation results from your resale or making Renesas Electronics products available any third party. 11. This document shall not be reprinted, reproduced or duplicated in any form, in whole or in part, without prior written consent of Renesas Electronics. 12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products. (Note 1) (Note 2) "Renesas Electronics" as used in this document means Renesas Electronics Corporation and also includes its majority-owned subsidiaries. "Renesas Electronics product(s)" means any product developed or manufactured by or for Renesas Electronics. (Rev.3.0-1 November 2016) SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2801 Scott Boulevard Santa Clara, CA 95050-2549, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 9251 Yonge Street, Suite 8309 Richmond Hill, Ontario Canada L4C 9T3 Tel: +1-905-237-2004 Renesas Electronics Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K Tel: +44-1628-585-100, Fax: +44-1628-585-900 Renesas Electronics Europe GmbH Arcadiastrasse 10, 40472 Düsseldorf, Germany Tel: +49-211-6503-0, Fax: +49-211-6503-1327 Renesas Electronics (China) Co., Ltd. Room 1709, Quantum Plaza, No.27 ZhiChunLu Haidian District, Beijing 100191, P.R.China Tel: +86-10-8235-1155, Fax: +86-10-8235-7679 Renesas Electronics (Shanghai) Co., Ltd. Unit 301, Tower A, Central Towers, 555 Langao Road, Putuo District, Shanghai, P. R. China 200333 Tel: +86-21-2226-0888, Fax: +86-21-2226-0999 Renesas Electronics Hong Kong Limited Unit 1601-1611, 16/F., Tower 2, Grand Century Place, 193 Prince Edward Road West, Mongkok, Kowloon, Hong Kong Tel: +852-2265-6688, Fax: +852 2886-9022 Renesas Electronics Taiwan Co., Ltd. 13F, No. 363, Fu Shing North Road, Taipei 10543, Taiwan Tel: +886-2-8175-9600, Fax: +886 2-8175-9670 Renesas Electronics Singapore Pte. Ltd. 80 Bendemeer Road, Unit #06-02 Hyflux Innovation Centre, Singapore 339949 Tel: +65-6213-0200, Fax: +65-6213-0300 Renesas Electronics Malaysia Sdn.Bhd. Unit 1207, Block B, Menara Amcorp, Amcorp Trade Centre, No. 18, Jln Persiaran Barat, 46050 Petaling Jaya, Selangor Darul Ehsan, Malaysia Tel: +60-3-7955-9390, Fax: +60-3-7955-9510 Renesas Electronics India Pvt. Ltd. No.777C, 100 Feet Road, HAL II Stage, Indiranagar, Bangalore, India Tel: +91-80-67208700, Fax: +91-80-67208777 Renesas Electronics Korea Co., Ltd. 12F., 234 Teheran-ro, Gangnam-Gu, Seoul, 135-080, Korea Tel: +82-2-558-3737, Fax: +82-2-558-5141 http://www.renesas.com 2017 Renesas Electronics Corporation. All rights reserved. Colophon 6.0