Sherpa R-IN32M3 PROFINET
device communication
stack for Renesas
Electronics Corporation’s
R-IN32M3 series industrial
Ethernet controller
Technical reference

Sherpa LLC
http://sherpa-tech.jp

Version R01_06
2016-01-09

R-IN32M3 is registered trademark of Renesas Electronics Corporation.
Simple Device Application Interface SDAI is trademark of Softing Industrial Automation GmbH
Windows is registered trademark of Microsoft Corporation
Simatic S7-1200, S7-300, S7-400, S7-1500 are registered trademark of Siemens AG
IAR KickStart Kit™ is registered trademark of IAR Systems
CC-Link and CC-Link/IE are registered trademarks of CC-Link Partner Association
PROFINET is registered trademark of PROFIBUS & PROFINET International (PI)
EtherCAT is registered trademark of EtherCAT Technology Group (ETG)
EtherNet/IP™ and Common Industrial Protocol (CIP™) are registered trademarks of ODVA Inc.
Modbus TCP is registered trademark of Modbus Organization, Inc.
POWERLINK is registered trademark of Ethernet POWERLINK Standardization Group (EPSG)
Wireshark is registered trademark of Wireshark Foundation© Copyright 2015 Sherpa LLC
No part of these instructions may be reproduced or processed, copied or distributed in any form
whatsoever without prior written permission by Sherpa LLC. Any violations will lead to compensation
claims.
All rights are reserved, particularly with regard to patent issue or TM (trade mark) registration.
All other product or service names are the property of their respective holders.
The producer reserves the right to make changes to the scope of supply as well as to technical data, even
without prior notice. Careful attention was given to the quality and functional integrity in designing,
manufacturing and testing the system. However, no liability can be assumed for potential errors thatmight exist or for their effects. In particular, Sherpa LLC cannot assume liability in terms of suitability ofthe system for a particular application. Should you find errors, please inform your distributor of thenature of the errors and the circumstances under which they occur. Sherpa LLC will be responsive to allreasonable ideas and will follow up on them, taking measures to improve the product, if necessary.

Table of Contents
1.

Overview

2.

Delivery overview

3.

Overview of Sherpa LLC’s PROFINET device communication stack licensing

4.

Evaluation and development environment

5.

Support Scope

6.

R-IN32M3 and Sherpa PROFINET device

7.

Delivery description

8.

PROFINET Stack documentation

9.

Simple Device Application Interface

10.

Sample Application

11.

S7-1200 PROFINET controller program and Sherpa PROFINET application

12.

Sherpa PROFINET application’s external interface in IAR System board

13.

Sample Application Initialization

14.

Licensing, product development and additional services

15.

PROFINET device stack functionality

1. Overview
This document is the technical reference for Sherpa LLC’s PROFINET device communication stack andits corresponding Sherpa LLC’s PROFINET device evaluation kit. This PROFINET device
communication stack has been optimized for the Renesas Electronics Corporation R-IN32M3 industrial
network LSI and is the result of the Softing Industrial Automation GmbH’s PROFINET device stackported into the R-IN32M environment. This document covers the description of the communication
stack and its access library, setup of sample application on evaluation board, description of sample
application, description of PLC program, scope of support, licensing, additional services and PROFINET
device stack specification.

2. Delivery overview
The Sherpa LLC’s PROFINET device evaluation kit consists of a downloadable image which contains
this technical document as well as the following data:Sample PROFINET device application in sources optimized for evaluation board described later inthis document.

Evaluation PROFINET device stack in binary format, with the full PROFINET device functionality
but limited to 90 minutes of continued operation. By restarting the sample application, thePROFINET device stack can work normally for 90 minutes.

GSDML file for the Sherpa LLC’s PROFINET device evaluation kit sample application.

Sample programmable logic controller (PLC) program for Simatic S7-1200 industrial controller.

Additional documentation for detailed access library description, application description andPROFINET stack description from Softing Industrial Automation GmbH.

3. Overview of Sherpa LLC’s PROFINET device communication stack licensing
The PROFINET device communication stack provided as part of the Sherpa LLC’s PROFINET device
evaluation kit is an evaluation product. Its use is strictly restricted for evaluation in laboratory or display
environment. This product is not licensed for use in actual industrial devices and the sale of thisevaluation PROFINET device communication stack is strictly prohibited. In order to use thiscommunication stack in commercial products the device manufacturer must sign a contract with theowner of the intellectual property of this communication stack, Sherpa LLC. For licensing conditions
please see clause “Licensing, product development and additional services” at the end of this document.

SHERPA R-IN32M3 PROFINET DEVICE3

4. Evaluation and development environment
In order to successfully use the Sherpa LLC’s PROFINET device evaluation kit in any meaningful way
the below minimum setup is required.

Windows workstation with Simatic
software, IAR System development
tool, terminal for Sherpa device
application and Ethernet packetanalyzer.

Managed Ethernet switch withmirroring port capability forpacket capturing

IAR Systems R-IN32M3-EC
Board Lite or equivalent

SHERPA R-IN32M3 PROFINET DEVICEIAR Systems I-jet ICE

Simatic S7 PROFINETcontroller

4Ethernet protocol analyzer
software (e.g. Wireshark)

Simatic tool with programfor Sherpa R-IN32M3
PROFINET device
IAR Embedded Workbench for
ARM version 7.40 or later withESS PROFINET device sample
application

Terminal communicatingwith Sherpa sample
application via COM port

5. Support Scope
The Sherpa LLC’s PROFINET device evaluation kit has been thoroughly tested and confirmed to workin environment described in the above sections. Should this application be used in “any” kind of different
environment Sherpa LLC will regard any inquiry on the use of this PROFINET device kit as technicalassistance beyond the scope of support for this evaluation application. In this context, “different
environment” definition and not covered technical assistance includes, but is not limited to, the below
circumstances:Any modification of the sources of this sample applicationUse of a compiler other than IAR Systems Embedded Workbench 7.40 or later.
Note: Sherpa LLC product is optimized for the IAR Systems compiler. Use of any other compiler isnot warranted and may require development efforts to be requested to Sherpa LLC



Use of a PROFINET controller other than the Simatic S7-1200 as described in this document,
including other Siemens controllers and non-Siemens controllers.

Any workshop that the end-user may require with regards to PROFINET technology, use of IAR
Systems Embedded Workbench tool, use of Simatic tools or use of PROFINET controller
configuration tools from other vendors, use of Wireshark software, etc..

SHERPA R-IN32M3 PROFINET DEVICE5

6. R-IN32M3 and Sherpa PROFINET device
The Sherpa LLC’s PROFINET device evaluation kit is optimized for the R-IN32M3 and is described as a“simplified” high level block diagram as per below illustration:

PROFINETcontroller

Sherpa PROFINET device stack and sample
application running on R-IN32M3 engine
ARM
cortex M3

HW RTOS

Ethernet
PHY

PROFINETSRAM

Hardware Ethernet accelerator, including realtime switch

Peripherals:e.g. JTAG,
serial port,
GPIO

Terminal software on PC
communicating throughCOM port
7. Delivery description
This section lists the main files that conform the Sherpa LLC’s PROFINET device evaluation kit withcomments on sections relevant to Sherpa delivery:
GSDML for the Sherpa LLC’s PROFINET

device evaluation kit

Sample Simple
DeviceApplication
Interface (SDAI)
application insources

SHERPA R-IN32M3 PROFINET DEVICE6Sherpa LLC
sampleapplication insources

Double-clicking on “demo_profinet.eww” will
launch the IAR System Embedded Workbench.

Evaluation PROFINET device stack library(stops working after 90 minutes)

SHERPA R-IN32M3 PROFINET DEVICE7

8. PROFINET Stack documentation
The PROFINET device for R-IN32M3 has been developed by Sherpa LLC by porting the Softing
PROFINET device communication stack into R-IN32M3 architecture. The PROFINET functionality ofthis delivery conforms to the Softing product. Detailed explanations are provided in the Softing
documentation which is part of the delivery.
NOTE: The Sherpa PROFINET device communication stack for R-IN32M3 is licensed and supportedby Sherpa LLC. The Softing documentation provided in this delivery is published here with the consent
of Softing Industrial Automation GmbH. All support inquiries for the Sherpa LLC’s PROFINET device
evaluation kit should be addressed to Sherpa LLC.
Softing and Sherpa LLC continue working together in the constant evolution and improvement of thePROFINET device communication stack. Improvements on the Softing stack will be made available on
the Sherpa LLC’s PROFINET device evaluation kit within a reasonable time frame.

9. Simple Device Application Interface
The application programming interface of the Sherpa communication stack is based on Softing’s Simple
Device Application Interface (SDAI). Detailed explanations are provided in the Softing documentation
which is part of the delivery.

10. Sample Application
The sample application of Sherpa LLC’s PROFINET device evaluation kit is based on Softing’s sample
application. Detailed explanations are provided in the Softing documentation which is part of thedelivery.
The Softing documentation provided in this delivery is shown below:

SHERPA R-IN32M3 PROFINET DEVICE811. S7-1200 PROFINET controller program and Sherpa PROFINET application
This section provides an overview of the PROFINET controller program and the Sherpa sample
application.

Select in the Simatic tool the PROFINET controllerthat corresponds to the actual processor.

The first time that a project using the ESS device is used itwill be necessary to add the GSDML file provided in thedevicedescription folder of this delivery

SHERPA R-IN32M3 PROFINET DEVICE9

The IO configuration in the PROFINET controller must correspond to the IO configuration defined inthe Sherpa application running on R-IN32M3.

PROFINET device application on R-IN32M3SHERPA R-IN32M3 PROFINET DEVICE

10The mapping of the physical IO in the IAR board throughthe Sherpa PROFINET device application is shown here,
for the S7-1200 program used in this document:
IO module
PLC
Value
Physical IOmemory
Dig 8 bit IN%IB10xA5
SW3
Dig 8 bit OUT %OB10x5A
LD1~LD8SHERPA R-IN32M3 PROFINET DEVICE11

12. Sherpa PROFINET application’s external interface in IAR System board
This section provides a description for the Sherpa sample PROFINET device applications externalinterface on the IAR System evaluation board. The external interface consist of light emitting diode foroutput and status representation and DIP switch for input to the PROFINET master of Sherpa
application operation.
IAR board after power on prior to sample application going into RUN mode:
LED1 status is solid amber (orange).
IAR board after sample application goes into run mode: LED2 status is solid green.

SHERPA R-IN32M3 PROFINET DEVICE12

13. Sample Application Initialization
The initialization for the sample application is described in “demo_platform.h” header file.

There are four sections of this file that must be modified to customize an application. The explanation
below elaborate further on the changes required for “demo_platform.h” header file.
(1) Changes related to the device identity:
The “RENESAS_VENDORID” is a value assigned by PNO. In order to use a different vendor ID
in the application this code must be modified. The value programmed on the SDAI application mustbe identical to the vendor ID used in the GSDML file with which the Profinet controller isprogrammed. For testing purposes the value provided in the sample application and the GSDML fileprovided by the package can be used. The value in “DEMO_DEVICE_NAME” must be used in theProfinet controller’s engineering tool.
(2) Values related to demo product. These values will need to be modified and matched to thecustomized GSDML when developing an actual product. For the purpose of testing the values
provided in the sample application and the GSDML provided can be used.
(3) MAC address:
The MAC address used in the application has been provided by Renesas Corpotation. Whendeveloping an actual product the MAC address must be determined by standard rules.

SHERPA R-IN32M3 PROFINET DEVICE13

(4) IP address:
The IP address should be corrected for the actual application.
It is also possible to modify the above values at runtime using a terminal console application whichshould be set to the below communication parameters.
Baud rate:
Data bits:
Parity:Stop-bit:
Flow control:

115200
8bit
none
1bit
none

Using a terminal console
application such as PTTY
TeraTerm it is possible to send
information to the application①④and print information from the③application.

When the PROFINET device stack application runs on the R-IN32M3 evaluation board for the first timethe values shown in the above screenshot are written to the flash ROM of R-IN32M3 on the evaluation
board, and the application will start with those values.

SHERPA R-IN32M3 PROFINET DEVICE14

In order to be able to use values other than those programmed in “demo_platform.h” file, before thecounter shown in below screenshot becomes zero, press any key to start a menu option to modify thesevalues.

Press any key before this counter becomes zero
Press “y”

If “y” is seletec in the above menu the following menu will allow the programming of different values.
・Device Name
・IP Address,Netmask,Gateway
・MAC Address, Mac Port1 Address、Mac Port2 Address
・Wait Count (Number of seconds for count down before boot)Press “y”

Press “y” at the end to get the values programmed into flash ROM.

SHERPA R-IN32M3 PROFINET DEVICE15

14. Licensing, product development and additional services
The Sherpa LLC’s PROFINET device evaluation kit allows industrial device manufacturers to develop
devices that conform to the PROFINET standard in a very short time and with minimum involvement in
the communication protocol management, which is done by the Sherpa library. The use of this library inproduction requires a licensing contract between the device manufacturer and Sherpa LLC. When thisagreement is reached Sherpa will provide release library customized to the vendor’s specific board.
Customization services can include access library porting to external application processor when RIN32M3 is used as a communication co-processor. Additionally, consulting services for measurement
application development can be considered as part of consulting services package.
For information about licensing and consulting services, please contact Sherpa LLC at:Sherpa LLC
Office #16, 4th floor, Kase Building
88 3-19-11 Shin-Yokohama, Kohoku-ku
TEL 050-5532-6257
r-in32-stack@sherpa-tech.jp

15. PROFINET device stack functionality
Functionality according to Conformance Class B
Media Redundancy Client
Multicast Provider and Subscriber
Number of PROFINET Controllers with which the Stack cansimultaneously communicate (shared Devices).

2

Number of Connections per Controller

2Max. Number of Configuration Data in the Device

8 kB

Max. Number of Parameter Data in the Device

8 kB

Max. Number of I/O Data per Communication Link

1440 bytes

Support of Profiles

yes

SHERPA R-IN32M3 PROFINET DEVICE

16