This is the multi-page printable view of this section. Click here to print.
Port Driver
1 - Port Integration Manual
Integration Manual
For
Port
VERSION: 1
DATE: 07/09/17
Prepared By:
Software Group,
Nexteer Automotive,
Saginaw, MI, USA
Location: The official version of this document is stored in the Nexteer Configuration Management System.
Revision History
| Sl. No. | Description | Author | Version | Date |
| 1 | Initial version | Lucas Wendling | 1 | 07/09/17 |
Table of Contents
3.2 Global Functions(Non RTE) to be provided to Integration Project 6
4 Configuration REQUIREMeNTS 7
4.2 Configuration Files to be provided by Integration Project 7
4.3 Da Vinci Parameter Configuration Changes 7
4.4 DaVinci Interrupt Configuration Changes 7
4.5 Manual Configuration Changes 7
5 Integration DATAFLOW REQUIREMENTS 8
5.1 Required Global Data Inputs 8
5.2 Required Global Data Outputs 8
5.3 Specific Include Path present 8
Abbrevations And Acronyms
| Abbreviation | Description |
References
This section lists the title & version of all the documents that are referred for development of this document
| Sr. No. | Title | Version |
Dependencies
This component relies on installation of the Renesas MCAL CodeGenerator utilitiy. Currently, this utility is required to be installed on the integrator’s component and this component assumes this utility is installed in the default installation directory. This places the executable in the “C:\Renesas\CodeGenerator\code_generator\MCALGenerator.exe” directory. This component requires version “2.06.03” of the MCAL Code Generator.
SWCs
| Module | Required Feature |
Note : Referencing the external components should be avoided in most cases. Only in unavoidable circumstance external components should be referred. Developer should track the references.
Global Functions(Non RTE) to be provided to Integration Project
API usage and scheduling of BSW components expected to be captured at a project architectural level and is beyond the scope of this document. Third party documentation can be referenced as needed.
Configuration REQUIREMeNTS
Configuration of BSW components expected to be captured at a project architectural level and is beyond the scope of this document. Third party documentation can be referenced as needed.
Build Time Config
| Modules | Notes | |
Configuration Files to be provided by Integration Project
N/A
Da Vinci Parameter Configuration Changes
| Parameter | Notes | SWC |
DaVinci Interrupt Configuration Changes
| ISR Name | Notes |
Manual Configuration Changes
| Constant | Notes | SWC |
Integration DATAFLOW REQUIREMENTS
Required Global Data Inputs
Required Global Data Outputs
Specific Include Path present
Yes
Runnable Scheduling
API usage and scheduling of BSW components expected to be captured at a project architectural level and is beyond the scope of this document. Third party documentation can be referenced as needed.
| Init | Scheduling Requirements | Trigger |
| Runnable | Scheduling Requirements | Trigger |
.
Memory Map REQUIREMENTS
Mapping
| Memory Section | Contents | Notes |
* Each …START_SEC… constant is terminated by a …STOP_SEC… constant as specified in the AUTOSAR Memory Mapping requirements.
Usage
| Feature | RAM | ROM |
NvM Blocks
Compiler Settings
The MCAL related files require specific compiler toolchain settings to be used to match what the MCAL was developed and tested to. This is the following:
-c -Osize -g -cpu=rh850g3m -gsize -prepare_dispose -inline_prologue -sda=all -Wundef -no_callt -reserve_r2 --short_enum --prototype_errors --diag_error 193 -dual_debug -large_sda --no_commons -shorten_loads -shorten_moves -Wshadow -nofloatio -ignore_callt_state_in_interrupts -delete
This component’s .gpj file has been adapted to provide these options for the static files of this component. NOTE: The dynamic, generated files from this component need to be compiled with these options as well, and therefore the integration project will need to be adapted to provide these settings to the generated files in the integration project.
The following snippet can be adapted/added to the a batch file which creates the generate.gpj project for integration project usage:
for %%F in (../generate/<MCAL_Component>/*.c) do (
ECHO ..\generate\<MCAL_Component>\%%F >> generate.gpj
ECHO # MCAL BUILD OPTIONS # >> generate.gpj
ECHO -c >> generate.gpj
ECHO -Osize >> generate.gpj
ECHO -g >> generate.gpj
ECHO -cpu=rh850g3m >> generate.gpj
ECHO -gsize >> generate.gpj
ECHO -prepare_dispose >> generate.gpj
ECHO -inline_prologue >> generate.gpj
ECHO -sda=all >> generate.gpj
ECHO -Wundef >> generate.gpj
ECHO -no_callt >> generate.gpj
ECHO -reserve_r2 >> generate.gpj
ECHO --short_enum >> generate.gpj
ECHO --prototype_errors >> generate.gpj
ECHO --diag_error 193 >> generate.gpj
ECHO -dual_debug >> generate.gpj
ECHO -large_sda >> generate.gpj
ECHO --no_commons >> generate.gpj
ECHO -shorten_loads >> generate.gpj
ECHO -shorten_moves >> generate.gpj
ECHO -Wshadow >> generate.gpj
ECHO -nofloatio >> generate.gpj
ECHO -ignore_callt_state_in_interrupts >> generate.gpj
ECHO -delete >> generate.gpj
)
Preprocessor MACRO
Optimization Settings
Appendix
<This section is for appendix>
2 - Port Peer Review Checklist
Overview
Summary SheetSynergy Project
3rd Party Files
Sheet 1: Summary Sheet
Sheet 2: Synergy Project
Sheet 3: 3rd Party Files
3 - R20UT3653EJ0102-AUTOSAR
4 - R20UT3653EJ0102-AUTOSAR_ind
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
Page 24
Page 25
Page 26
Page 27
Page 28
Page 29
Page 30
Page 31
Page 32
Page 33
Page 34
Page 35
Page 36
Page 37
Page 38
Page 39
Page 40
Page 41
Page 42
Page 43
Page 44
Page 45
Page 46
Page 47
Page 48
Page 49
Page 50
Page 51
Page 52
Page 53
Page 54
Page 55
Page 56
Page 57
Page 58
5 - R20UT3653EJ0102-AUTOSARs



AUTOSAR MCAL R4.0.3
User's Manual
PORT Driver Component Ver.1.0.4
Embedded User's Manual
Target Device:
RH850\P1x-C
All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
www.renesas.com
Rev.1.02 Jun 2017
2
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) "Renesas Electronics" as used in this document means Renesas Electronics Corporation and also includes its majority-owned
subsidiaries.
(Note 2) "Renesas Electronics product(s)" means any product developed or manufactured by or for Renesas Electronics.
3
4
Abbreviations and Acronyms
Abbreviation / Acronym Description
ADC
Analog to Digital Converter
ANSI
American National Standards Institute
API
Application Programming Interface
ARXML
AutosaR eXtensible Mark-up Language
AUTOSAR
AUTomotive Open System ARchitecture
BUS
BUS Network
BSW
Basic SoftWare
DEM
Diagnostic Event Manager
DET
Development Error Tracer
DIO
Digital Input Output
ECU
Electronic Control Unit
GNU
GNU is Not Unix
GPT
General Purpose Timer
HW
HardWare
ICU
Input Capture Unit
id/ID
Identifier
I/O
Input Output
ISR
Interrupt Service Routine
KB
Kilo Bytes
MCAL
Microcontroller Abstraction Layer
MCU
MicroController Unit
MHz
Mega Hertz
NA
Not Applicable
OS
Operating System
Parameter Definition File
PLL
Phase Locked Loop
PWM
Pulse Width Modulation
RAM
Random Access Memory
ROM
Read Only Memory
RTE
Runtime Environment
SWS
Software Requirements Specification
TAU
Timer Array Unit
WDT
Watchdog Timer
5
Definitions
Term
Represented by
PORT channel
Numeric identifier linked to a hardware PORT
PORT Idle State
The idle state represents the output state of the PORT channel after the
call of
Port_SetOutputToIdle or Port_DeInit.
PORT Output State
Defines the output state for a PORT signal. It
could be: High
Low
PORT period
Defines the period of the PORT signal.
PORT Polarity
Defines the starting output state of each PORT channel
Sl. No.
Serial Number
6
Table of Contents
Chapter 1
Introduction ..................................................................... 11
1.1.
Document Overview ................................................................................................................ 13
Chapter 2
Reference Documents .................................................... 15
Chapter 3
Integration And Build Process ....................................... 17
3.1.
PORT Driver Component Make file ........................................................................................ 17
Chapter 4
Forethoughts ................................................................... 19
4.1.
General...................................................................................................................................... 19
4.2.
Preconditions ........................................................................................................................... 19
4.3.
User Mode and Supervisor Mode ........................................................................................... 20
4.4.
Data Consistency ..................................................................................................................... 21
4.5.
Deviation List ........................................................................................................................... 22
Chapter 5
Architecture Details ........................................................ 23
Chapter 6
Registers Details ............................................................. 25
Chapter 7
Interaction Between The User And PORT Driver
Component……………………………………………………………………29
7.1.
Services provided by PORT Driver Module to User ............................................................. 29
Chapter 8
PORT Driver Component Header And Source File
Description……………………………………………………………………..31
Chapter 9
Generation Tool Guide .................................................... 33
Chapter 10
Application Programming Interface .............................. 35
10.1.
Imported Types ........................................................................................................................ 35
10.1.1.
Standard Types ....................................................................................................... 35
10.1.2.
Other Module Types ................................................................................................ 35
10.2.
Type Definitions ....................................................................................................................... 35
10.2.1.
Port_ConfigType...................................................................................................... 35
10.2.2.
Port_PinType ........................................................................................................... 37
10.2.3.
Port_PinDirection Type ........................................................................................... 37
10.2.4.
Port_PinModeType .................................................................................................. 37
10.3.
Function Definitions ................................................................................................................ 38
10.3.1
Port_Init ................................................................................................................... 38
10.3.2
Port_SetPinDirection ............................................................................................... 39
10.3.3
Port_RefreshPortDirection ...................................................................................... 39
10.3.4
Port_GetVersionInfo ................................................................................................ 39
10.3.5
Port_SetPinMode .................................................................................................... 40
7
10.3.6
Port_SetToDioMode ................................................................................................ 40
10.3.7
Port_SetToAlternateMode ....................................................................................... 41
10.3.8
Port_SetPinDefaultMode ......................................................................................... 41
10.3.9
Port_SetPinDefaultDirection .................................................................................... 42
Chapter 11
Development And Production Errors ............................ 43
11.1.
PORT Driver Component Development Errors ...................................................................... 43
11.2.
PORT Driver Component Production Errors ........................................................................ 44
Chapter 12
Memory Organization ..................................................... 45
Chapter 13
P1x-C Specific Information ............................................ 47
13.1.
Interaction between the User and PORT Driver Component ............................................... 47
13.1.1.
Parameter Definition File ......................................................................................... 47
13.1.2.
Services Provided By PORT Driver Component ..................................................... 47
13.2.
Sample Application ................................................................................................................. 48
13.2.1.
Sample Application Structure .................................................................................. 48
13.2.2.
Building Sample Application .................................................................................... 49
13.2.2.1
Configuration Example ............................................................................ 49
13.2.2.2
Debugging the Sample Application ......................................................... 50
13.3.
Memory and Throughput ........................................................................................................ 51
13.3.1.
ROM/RAM Usage .................................................................................................... 51
13.3.2.
Stack Depth ............................................................................................................. 52
13.3.3.
Throughput Details .................................................................................................. 52
13.4.
Critical Section Details ............................................................................................................ 52
Chapter 14
Release Details ................................................................ 53
8
List of Figures
Figure 1-1
System Overview Of AUTOSAR Architecture .......................................................... 11
Figure 1-2
System Overview Of The PORT Driver In AUTOSAR MCAL Layer .......................... 12
Figure 5-1
PORT Driver Architecture.......................................................................................... 23
Figure 12-1
PORT Driver Component Memory Organization ....................................................... 45
Figure 13-1
Overview of PORT Driver Sample Application ......................................................... 48
List of Tables
Table 4-1
Supervisor mode and User mode details .................................................................. 21
Table 4-2
PORT Driver Protected Resources List .................................................................... 21
Table 4-3
PORT Driver Deviation List ....................................................................................... 22
Table 6-1
Register Details ......................................................................................................... 25
Table 8-1
Description of the PORT Driver Component Files .................................................... 32
Table 10-1 AUTOSAR Specific APIs supported by the PORT Driver Component ..................... 38
Table 10-2 Non- AUTOSAR Specific APIs supported by the PORT Driver Component ............ 38
Table 11-1
DET Errors of PORT Driver Component ................................................................... 43
Table 11-2
DEM Errors of PORT Driver Component .................................................................. 44
Table 13-1
PDF information for P1x-C ........................................................................................ 47
Table 13-2
ROM/RAM Details without DET ................................................................................ 51
Table 13-3
ROM/RAM Details with DET ..................................................................................... 51
Table 13-4
Throughput Details of the APIs.................................................................................. 52
Table 13-5
Critical Section Throughput Details of the APIs ........................................................ 52
9
10
Introduction
Chapter 1
Chapter 1
Introduction
The purpose of this document is to describe the information related to
PORT Driver Component for Renesas P1x-C microcontrollers.
This document shall be used as reference by the users of PORT Driver
Component for P1x-C Device. The information specific to P1x-C Device
channel mapping, ISR handler, integration and build process for
application along with the memory consumption and throughput
information are provided.
The users of PORT Driver Component shall use this document as
reference. This document describes the common features of PORT Driver
Component.
This document is intended for the developers of ECU software using
Application Programming Interfaces provided by AUTOSAR. The PORT Driver
Component provides the following services:
• PORT Driver Component initialization
• Port Pin Direction Handling
• Port Pin Direction Refreshing
• Port Pin Mode Handling
• Port Set To Dio Mode
• Port Set To Alternate Mode
• Port Pin Set To Default Direction
• Port Pin Set To Default Mode
• Module Version Information
The following diagram shows the system overview of the AUTOSAR
Architecture.
Application Layer
AUTOSAR RTE
System Services
On board Device Abstraction
PORT Driver
Microcontroller
Figure 1-1 System Overview Of AUTOSAR Architecture
11
Chapter 1
Introduction
The PORT Driver Component comprises of two sections that is,
embedded software and the configuration tool to achieve scalability and
configurability. The PORT Driver Component Code Generation Tool is a
command line tool that accepts ECU configuration description files as
input and generates C Source and C Header files. The configuration
description is an ARXML file that contains information about the
configuration for PORT channels. The tool generates Port_Cfg.h,
Port_Cbk.h, Port_Hardware.h, Port_Hardware.c and Port_PBcfg.c files.
The Figure in the following page depicts the PORT Driver as part of layered
AUTOSAR MCAL Layer:
Microcontroller Drivers
Memory Drivers
Communication Drivers I/O Drivers
i
n
e
in
te
x
t
t
r
e
e
n
S
W
r
r
a
P
F
n
n
l
a
GP
MC
a
a
I
EEP
H
LI
CA
le
tc
C
RA
l
l
x
a
N
h
o
F
F
R
n
N Dr
T
U
d
re
P
M
la
l
a
d
D
a
RO
I
P
D
o
A
D
D
O
g
s
s
le
y
CU
r
DC
r
T
T
r
h
h
i
W
r
v
D
i
I
RT
i
O
v
D
iv
e
e
Dr
D
M
Dr
er
v
r
M
e
e
r
e
st
s
i
Dr
v
r
r
Dr
Dr
Dr
r
i
v
r
t
i
i
D
i
er
D
v
v
v
iv
er
i
i
er
er
r
r
er
i
e
i
v
v
i
v
v
e
e
ve
e
r
e
r
r
r
r
r
M
&
G
WDT
C Po
Micro-
Ext
F
E
U
Cl
l
E
L
PW
PT
A
n
.
a
M
P
S
SCI
I
CA
IC
DIO
B
D
i
o
s
R
N
t
c
w
Controller u
h
PI
O
N
U
M
C
k
s
er
or
Figure 1-2 System Overview Of The PORT Driver In AUTOSAR MCAL Layer
12
Introduction
Chapter 1
1.1.
Document Overview
The document has been segmented for easy reference. The table below
provides user with an overview of the contents of each section:
Section
Contents
Section 1 (Introduction)
This section provides an introduction and overview of PORT Driver
Component.
Section 2 (Reference Documents) This section lists the documents referred for developing this document.
Section 3 (Integration And Build
This section explains the folder structure for PORT Driver Component
Process)
along with a sample application.
Section 4 (Forethoughts)
This section provides brief information about the PORT Driver
Component, the preconditions that should be known to the user before it
is used, data consistency details and deviation list.
Section 5 (Architecture Details)
This section describes the layered architectural details of the PORT
Driver Component.
Section 6 (Registers Details)
This section describes the register details of PORT Driver Component.
Section 7 (Interaction Between
This section describes interaction of the PORT Driver Component with
The User And PORT Driver
the upper layers.
Component)
Section 8 (PORT Driver
This section provides information about the PORT Driver Component
Component Header And Source
source files is mentioned. This section also contains the brief note on the
File Description)
tool generated output file.
Section 9 (Generation Tool Guide) This section provides information on the PORT Driver Component Code
Generation Tool.
Section 10 (Application
This section mentions all the APIs provided by the PORT Driver
Programming Interface)
Component.
Section 11 (Development And
This section lists the DET and DEM errors.
Production Errors)
Section 12 (Memory
This section provides the typical memory organization, which must be
Organization)
met for proper functioning of component.
Section 13 (P1x-C Specific
This section describes P1x-C Sample Application with its folder
Information)
structure and the information about RAM/ROM usage, stack depth
and throughput details.
Section 14 (Release Details)
This section provides release details with version name and base
version.
13
Chapter 1
Introduction
14
Reference Documents
Chapter 2
Chapter 2
Reference Documents
Sl. No.
Title
Version
1.
Autosar R4.0
3.2.0
Specification of PORT Driver (AUTOSAR_SWS_PortDriver.pdf)
2.
AUTOSAR BUGZILLA (http://www.autosar.org/bugzilla)
-
Note: AUTOSAR BUGZILLA is a database, which contains concerns raised
against information present in AUTOSAR Specifications.
3.
RH850/P1x-C Group Document User's Manual: Hardware
Rev.1.20
(r01uh0517ej00120_rh850p1x-c_Open.pdf)
4.
Specification of Compiler Abstraction
3.2.0
(AUTOSAR_SWS_CompilerAbstraction.pdf)
5.
Specification of Memory Mapping
1.4.0
(AUTOSAR_SWS_MemoryMapping.pdf)
6.
Specification of Platform Types
2.5.0
(AUTOSAR_SWS_PlatformTypes.pdf)
15
Chapter 2 Reference Documents
16
Integration And Build Process
Chapter 3
Chapter 3
Integration And Build Process
In this section the folder structure of the PORT Driver Component is
explained. Description of the Make files along with samples is provided in this
section.
Remark The details about the C Source and C Header files that are generated by the
PORT Driver Generation Tool are mentioned in the “R20UT3654EJ0102-
AUTOSAR.pdf”.
3.1.
PORT Driver Component Make file
The Make file provided with the PORT Driver Component consists of the
GNU Make compatible script to build the PORT Driver Component in case of
any change in the configuration. This can be used in the upper level Make file
(of the application) to link and build the final application executable.
3.1.1.
Folder Structure
The files are organized in the following folders:
Remark Trailing slash ‘\’ at the end indicates a folder
X1X\common_platform\modules\port\src
\Port.c
\Port_Ram.c
\Port_Version.c
X1X\common_platform\modules\port\include
\Port.h
\Port_PBTypes.h
\Port_Ram.h
\Port_Version.h
\Port_Debug.h
\Port_Types.h
\Port_RegWrite.h
X1X\P1x-C\modules\port\sample_application\make\ghs
App_Port_P1x-C_Sample.mak
App_Port_P1x-C_Sample.ld
X1X\P1x-C\modules\port\user_manual
(User manuals will be available in this folder)
X1X\P1x-C\modules\port\generator
\R403_PORT_P1x-C_BSWMDT.arxml
Note: < Sub-Variant> tag indicate device supported which is P1H-C, P1H-CE, and P1M-C.
17
Chapter 3 Integration And Build Process
18
Forethoughts
Chapter 4
Chapter 4
Forethoughts
4.1.
General
Following information will aid the user to use the PORT Driver Component
software efficiently:
•
The PORT Driver Component does not enable or disable the
ECU or Microcontroller power supply. The upper layer should
handle this operation.
•
Start-up code is not implemented by the PORT Driver
Component.
•
PORT Driver Component does not implement any callback
notification functions.
•
PORT Driver Component does not implement any scheduled
functions.
•
The PORT Driver Component is restricted to Post Build only.
•
The authorization of the user for calling the software
triggering of a hardware reset is not checked in the PORT
Driver Component. This will be the responsibility of the upper
layer.
•
The PORT Driver Component supports setting of Analog and
Digital Noise Elimination. To figure out the different port filter
arrangements the device User Manual should be taken as
reference. If no configuration of a certain port filter is done
within this Port Module, the device specific default settings
will take effect on this filter.
•
The value of unused pins are set to defined state. i.e. Mode =
DIO, Direction = Input, Pin Level Value = LOW
•
All development errors will be reported to DET by using the
API Det_ReportError provided by DET.
•
All production errors will be reported to DEM by using the
API Dem_ReportErrorStatus provided by DEM.
•
The PORT Driver does not have the API support to read the
status of Port pins or Port registers. Hence PORT Driver will
not support ‘Read back’ feature.
•
The file Interrupt_VectorTable.c provided is just a Demo and
not all interrupts will be mapped in this file. So the user has
to update the Interrupt_VectorTable.c as per his
configuration.
•
The parameter PortDriveStrengthControl has dependency on
parameter PortUniversalCharacteristicCntrl while specifying
the output driving abilities of port pins.
•
Port_SetToDioMode and Port_SetPinDefaultMode Api shall
not change or affect the level of the requested pin.
•
The access to HW registers is possible only using AUTOSAR
standard and vendor specific API functions described in this
document (Chapter 10).
•
The output level of each pin can be inverted by configuring
the required value (true/false) through the configuration
parameter PortOutputLevelInversion.
•
The user shall take care of setting mode of a respective port
pin as valid or not while calling Port_SetPinMode API.
•
The value of unused pins are set to defined state. i.e. Mode =
DIO, Direction = Input, Pin Level Value = LOW
4.2.
Preconditions
Following preconditions have to be adhered by the user, for proper
functioning of the PORT Driver Component:
19
Chapter 4
Forethoughts
•
The Port_PBcfg.c, Port_Hardware.c, Port_Hardware.h Port_Cbk.h and
Port_Cfg.h files generated by the PORT Driver Component Code Generation
Tool must be compiled and linked along with PORT Driver Component
source files.
•
The application has to be rebuilt, if there is any change in the Port_Cfg.h file
generated by the PORT Driver Component Generation Tool.
•
File Port_PBcfg.c generated for single configuration set or multiple
configuration sets using PORT Driver Component Code Generation Tool
should be compiled and linked independently.
•
Symbolic names for all Port Pins are generated in Port_Cfg.h file which can
be used as parameters for passing to PORT Driver Component APIs.
•
The PORT Driver Component needs to be initialized for all Port Pins before
doing any operation on Port Pins. The Port_Init () API shall also be called
after a reset in order to reconfigure the Port Pins of the microcontroller. If
PORT Driver Component is not initialized properly, the behavior of Port Pins
may be undetermined.
•
The user should ensure that PORT Driver Component API requests are
invoked with correct input arguments.
•
The other modules depending on PORT Driver Component should ensure
that the PORT Driver Component initialization is successful before doing any
operation on Port Pins.
•
Input parameters are validated only when the static configuration parameter
PORT_DEV_ERROR_DETECT is enabled. Application should ensure that
the right parameters are passed while invoking the APIs when
PORT_DEV_ERROR_DETECT is disabled.
•
Values for production code Event Id’s should be assigned externally by the
configuration of the DEM.
•
A mismatch in the version numbers of header and the source files will result
in a compilation error. User should ensure that the correct versions of the
header and the source files are used.
•
The PORT Driver Component APIs, except Port_GetVersionInfo API, which
are intended to operate on Port Pins shall be called only after PORT Driver
Component is initialized by invoking Port_Init() API. Otherwise Port Pin
functions will exhibit undefined behavior.
•
All Port Pins and their functions should be configured by the Port
configuration tool. It is the User/Integrator responsibility to ensure that the
same Port/Port Pin is not being accessed/configured in parallel by different
entities in the same system.
•
User have the responsibility to enable or disable the critical protection using
the parameter PortCriticalSectionProtection. By enabling parameter
PortCriticalSectionProtection, Microcontroller HW registers which suffer from
concurrent access by multiple tasks, are protected.
•
The same alternative function should not be assigned to two different pins at
same time.
•
The user shall configure the exact Module Short Name PORT in
configurations as specified in config.xml file and the same shall be given in
command line.
4.3.
User Mode and Supervisor Mode
The below table specifies the APIs which can run in user mode, supervisor
mode or both modes:
20
Forethoughts
Chapter 4
Table 4-1 Supervisor mode and User mode details
Sl.No
API Name
User Mode
Supervisor mode
Known
limitation in
User mode
1
Port_Init
x
x
-
2
Port_SetPinDirection
x
x
-
3
Port_RefreshPortDirection
x
x
-
4
Port_SetPinMode
x
x
-
5
Port_SetToDioMode
x
x
-
6
Port_SetToAlternateMode
x
x
-
7
Port_SetPinDefaultDirection
x
x
-
8
Port_SetPinDefaultMode
x
x
-
9
Port_GetVersionInfo
x
x
-
Note: Implementation of Critical Section is not dependent on MCAL. Hence
Critical Section is not considered to the entries for User mode in the
above table.
The user can switch between user mode and supervisor mode during
Enter/Exit critical section functions, so that these functions will work
properly even though critical section protection is ON.
4.4.
Data Consistency
To support the re-entrance and interrupt services, the AUTOSAR PORT
component will ensure the data consistency while accessing its own RAM
storage or hardware registers. The PORT component will use
SchM_Enter_Port_<Exclusive Area> and SchM_Exit_Port_<Exclusive
Area> functions. The SchM_Enter_Port_<Exclusive Area> function is called
before the data needs to be protected and SchM_Exit_Port_<Exclusive
Area>function is called after the data is accessed.
The following exclusive areas along with scheduler services are used to
provide data integrity for shared resources:
•
PORT_SET_PIN_MODE_PROTECTION
•
PORT_SET_PIN_DEFAULT_MODE_PROTECTION
•
PORT_SET_PIN_DEFAULT_DIR_PROTECTION
•
PORT_SET_PIN_DIR_PROTECTION
•
PORT_SET_TO_DIO_ALT_PROTECTION
•
PORT_REFRESHPORT_INTERNAL_PROTECTION
The functions SchM_Enter_Port_<Exclusive Area> and
SchM_Exit_Port_<Exclusive Area> can be disabled by disabling the
configuration parameter ‘PortCriticalSectionProtection’.
Table 4-2
PORT Driver Protected Resources List
API Name
Exclusive Area Type
Protected Resources
Port_SetPin
PORT_SET_PIN_DIR_PROTE
HW registers: PSRn, JPSR0, PMSRn,
Direction
CTION
PINVn and JPMSR0.
PORT_REFRESHPORT_INTE
HW registers: PMSRn and JPMSR0.
Port_Refres
RNAL_PROTECTION
hPortDirecti
21
Chapter 4
Forethoughts
on
Port_SetPin
PORT_SET_PIN_MODE_PRO
HW registers: PIPCn, PMSRn,
Mode
TECTION
PMCSRn, PSRn, JPMSR0,
JPMCSR0, JPSR0, PFCEn, PFCn and
JPFCE0.
Port_SetTo
PORT_SET_TO_DIO_ALT_PR
HW registers: PMCSRn, PIPCn and
DioMode
OTECTION
JPMCSR0
Port_SetTo
PORT_SET_TO_DIO_ALT_PR
HW registers: PMCSRn, PIPCn and
AlternateMo
OTECTION
JPMCSR0
de
Port_SetPin
PORT_SET_PIN_DEFAULT_M
HW registers: PMCSRn, PMSRn,
DefaultMod
ODE_PROTECTION
PIPCn, JPMCSR0, JPMSR0, PFCEn,
e
PFCn, JPFCE0, PSRn and JPSR0.
Port_SetPin
PORT_SET_PIN_DEFAULT_DI
HW registers: PMSRn, JPMSR0,
DefaultDire
R_PROTECTION
PSRn and JPSR0.
ction
Port_GetVe
None
None
rsionInfo
Note: The highest measured duration of a critical section is 2.512 micro seconds
measured for Port_RefreshPortDirection API.
4.5.
Deviation List
Table 4-3
PORT Driver Deviation List
Sl. No. Description
AUTOSAR Bugzilla
1.
The Port Pin specific containers (PortPin0, PortPin1,
-
PortPin2 and so on …) are added as sub containers
of PortGroup<n> containers, having the parameters
‘PortPinDirection’, ‘PortPinDirectionChangeable’,
‘PortPinLevelValue’ and
‘PortPinInitialMode’ are added. AUTOSAR specified
container ‘PortPin’ and all its parameters are
considered as unused.
2.
PortPinMode configuration parameter is not
-
used for implementation as all possible modes
of a pin can be used in the Port_SetPinMode
function.
3.
[ecuc_sws_2108] requirement is not applicable
-
to port module since implementation of PORT
module is vendor specific.
4.
Port Pin level inversion is implemented as per
-
Renesas requirement which is violating
AUTOSAR requirement PORT082
22
Architecture Details
Chapter 5
Chapter 5
Architecture Details
The PORT Driver Component accesses the microcontroller Port Pins that are
located in the On-Chip hardware. The basic architecture of the PORT Driver
Component is illustrated below:
Initialization
Direction Refreshing
Direction Switching
Runtime Mode Change
Figure 5-1
PORT Driver Architecture
The PORT Driver Component consists of the following sub modules based on
the functionality:
•
Port Initialization.
•
Port Direction Refreshing.
•
Port Pin Direction Switching.
•
Port Pin Mode Change.
•
Module Version Information
Port Initialization
This sub module provides the Port initialization functionality by providing the
Port_Init() API. This API should be invoked before the usage of any other APIs
of PORT Driver Component. Port Initialization includes initializing Port Pin
mode, Port Pin direction, Port Pin Level value, Port Pin driven value (Normal /
Open Drain), Activation of internal pull-ups and Port Filter configuration.
Port Direction Refreshing
This sub module provides the Port Direction Refreshing functionality by
providing the Port_RefreshPortDirection() API. In this functionality the PORT
Driver Component refreshes the direction of all configured Port Pins except
those Port Pins that are configured as ‘Port Pin Direction Changeable during
runtime’.
In this functionality only Direction of Port Pins is refreshed.
Port Pin Direction Switching
This sub module provides the Port Direction switching functionality at run time
by providing the Port_SetPinDirection() API. In this functionality the PORT
driver Component allows the user to change the direction of Port Pins during
runtime.
Port Pin Mode changing
This sub module provides the Port Mode change functionality at run time by
providing the Port_SetPinMode() API. In this functionality the PORT driver
Component allows the user to change the mode of Port Pins during runtime.
This sub module provides the Port Mode change functionality at run time by
providing the Port_SetToDioMode() API. In this functionality the PORT
23
Chapter 5
Architecture Details
driver Component allows the user to change the mode of Port Pin to DIO
mode during runtime.
This sub module provides the Port Mode change functionality at run time by
providing the Port_SetToAlternateMode() API. In this functionality the PORT
driver Component allows the user to change the mode of Port Pin to alternate
mode during runtime.
Module Version Information
The Api Port_GetVersionInfo is responsible for reading the version information
of the PORT Driver Information. The version information includes Module ID,
Vendor ID, and Version number of the PORT Driver software.
24
Registers Details Chapter 6
Chapter 6
Registers Details
This section describes the register details of PORT Driver Component.
Table 6-1
Register Details
Register
Register
Access
Access
API Name
8/16/32
r/w/rw Registers
Configuration
Macro/Variable
bits
Parameter
Port_SetPinDire
32 bit
rw
PSRn
PortPinLevelValue
usChangeableConfigVal
ction
PortPinDirectionChangeabl
e
32 bit
rw
JPSR0
PortPinLevelValue
usChangeableConfigVal
PortPinDirectionChangeabl
e
32 bit
rw
PMSRn
PortPinDirection
usOrMaskVal
PortPinDirectionChangeabl
e
32 bit
rw
JPMSR0
PortPinDirection
usOrMaskVal
PortPinDirectionChangeabl
e
32 bit
w
PINVn
PortOutputLevelInversion
usPortinversionVal
PortPinDirectionChangeabl
e PortPinDirection
Port_RefreshPor
rw
PortPinDirection
tDirection
32 bit
PMSRn
PortPinDirectionChangeabl
ulMaskAndConfigValue
e
rw
PortPinDirection
32 bit
JPMSR0
PortPinDirectionChangeabl
ulMaskAndConfigValue
e
Port_SetToDioM
32 bit
rw
PMCSRn
PortPinDioAltModeChange
usOrMask
ode
able PortPinInitialMode
16 bit
rw
PIPCn
PortIpControl
usOrMask
PortPinInitialMode
PortPinDioAltModeChange
able
32 bit
rw
JPMCSR0
PortPinDioAltModeChange
usOrMask
ablePortPinInitialMode
Port_SetToAlter
32 bit
rw
PMCSRn
PortPinDioAltModeChange
usOrMask
nateMode
ablePortPinInitialMode
16 bit
rw
PIPCn
PortIpControl
usOrMask
PortPinInitialMode
PortPinDioAltModeChange
able
32 bit
rw
JPMCSR0
PortPinDioAltModeChange
usOrMask
able PortPinInitialMode
Port_SetPinDefa
32 bit
rw
PMCSRn
PortPinModeChangeable
usOrMask
ultMode
PortPinInitialMode
usInitModeRegVal
PortPinDirection
32 bit
rw
PMSRn
PortPinModeChangeable
usOrMask
PortPinInitialMode
usInitModeRegVal
PortPinDirection
32 bit
rw
PSRn
PortPinModeChangeable
usOrMask
PortPinLevelValue
usInitModeRegVal
PortPinDirection
25
Chapter 6
Registers Details
Register
Register
Access
Access
API Name
8/16/32
r/w/rw Registers
Configuration
Macro/Variable
bits
Parameter
16 bit
rw
PIPCn
PortPinModeChangeable
usOrMask
PortIpControl
usInitModeRegVal
32 bit
rw
JPMCSR0
PortPinModeChangeable
usOrMask
PortPinInitialMode
usInitModeRegVal
PortPinDirection
32 bit
rw
JPMSR0
PortPinModeChangeable
usOrMask
PortPinInitialMode
usInitModeRegVal
PortPinDirection
32 bit
rw
JPSR0
PortPinModeChangeable
usOrMask
PortPinLevelValue
usInitModeRegVal
PortPinDirection
rw
PFCEn
PortPinModeChangeable
usOrMask
16 bit
PortPinInitialMode
usInitModeRegVal
rw
PFCn
PortPinModeChangeable
usOrMask
16 bit
PortPinInitialMode
usInitModeRegVal
rw
JPFCE0
PortPinModeChangeable
usOrMask
8 bit
PortPinInitialMode
usInitModeRegVal
Port_SetPinDefa
32 bit
rw
PMSRn
PortPinDirection
usOrMaskVal
ultDirection
PortPinDirectionChangeabl
e
32 bit
rw
PSRn
PortPinDirectionChangeabl
usOrMaskVal
e
PortPinLevelValue
PortPinDirectionChangeabl
32 bit
rw
JPSR0
PortPinDirectionChangeabl
usOrMaskVal
e
e
PortPinLevelValue
PortPinDirectionChangeabl
32 bit
rw
JPMSR0
PortPinDirection
usOrMaskVal
e
PortPinDirectionChangeabl
e
Port_SetPinMod
16 bit
rw
PIPCn
PortPinModeChangeable
usOrMask
e
PortIpControl
32 bit
rw
PMSRn
PortPinModeChangeable
usOrMask
32 bit
rw
PMCSRn
PortPinModeChangeable
usOrMask
32 bit
rw
PSRn
PortPinModeChangeable
usInitModeRegVal
PortPinLevelValue
32 bit
rw
JPMSR0
PortPinModeChangeable
usOrMask
32 bit
rw
JPMCSR0
PortPinModeChangeable
usOrMask
32 bit
rw
JPSR0
PortPinModeChangeable
usInitModeRegVal
PortPinLevelValue
rw
PFCEn
PortPinModeChangeable
usOrMask
16 bit
rw
PFCn
PortPinModeChangeable
usOrMask
16 bit
rw
JPFCE0
PortPinModeChangeable
usOrMask
8 bit
Port_Init
32 bit
rw
PSRn
PortPinLevelValue
usInitModeRegValPSR
26
Registers Details Chapter 6
Register
Register
Access
Access
API Name
8/16/32
r/w/rw Registers
Configuration
Macro/Variable
bits
Parameter
32 bit
rw
JPSR0
PortPinLevelValue
usInitModeRegValPSR
rw
PMSRn
PortPinDirection
32 bit
usInitModeRegVal
rw
PMCSRn
32 bit
PortPinInitialMode
usInitModeRegValPMCSR
16 bit
rw
PISn
PortInputSelection
usInitModeRegValPIS
8 bit
rw
JPIS0
PortInputSelection
usInitModeRegValPIS
16 bit
rw
PIBCn
PortInputBufferControl
usInitModeRegValPIBC
8 bit
rw
JPIBC0
PortInputBufferControl
usInitModeRegValPIBC
16 bit
rw
PIPCn
PortIpControl
usInitModeRegValPIPC
16 bit
rw
PUn
PullUpOption
usInitModeRegValPU
8 bit
rw
JPU0
PullUpOption
usInitModeRegValPU
16 bit
rw
PDn
PullDownOption
usInitModeRegValPD
8 bit
rw
JPD0
PullDownOption
usInitModeRegValPD
16 bit
rw
PBDCn
PortBiDirectionControl
usInitModeRegValPBDC
8 bit
rw
JPBDC0
PortBiDirectionControl
usInitModeRegValPBDC
PortSameLevelSamples
rw
ucDNFACTL
8 bit
DNFAnCTL PortSamplingClockFreque
ncy
rw
FCLAnCTL
PortDigitalFilterEdgeContro
8 bit
ucFCLACTL
m
l
rw
PortDigitalFilterEnableInput
16 bit
DNFAnEN
usDNFAEN
rw
8 bit
JPFCE0
PortPinInitialMode
usInitModeRegValPFCE
rw
32 bit
JPMCSR0
PortPinInitialMode
usInitModeRegValPMCSR
rw
32 bit
JPMSR0
PortPinDirection
usInitModeRegValPMSR
16 bit
rw
PFCEn
PortPinInitialMode
usInitModeRegValPFCE
rw
16 bit
PFCn
PortPinInitialMode
usInitModeRegValPFC
32 bit
w
PODCn
PortOpenDrainControlExpa usInitModeRegValPODC
nsion
32 bit
w
JPODC0
PortOpenDrainControlExpa usInitModeRegValPODC
nsion
32 bit
w
PODCEn
PortOpenDrainControlExpa usInitModeRegValPODCE
nsion
27
Chapter 6
Registers Details
Register
Register
Access
Access
API Name
8/16/32
r/w/rw Registers
Configuration
Macro/Variable
bits
Parameter
32 bit
w
PDSCn
PortDriveStrengthControl
usInitModeRegValPDSC
32 bit
w
JPDSC0
PortDriveStrengthControl
usInitModeRegValPDSC
32 bit
w
PUCCn
PortUnlimitedCurrentContr
usInitModeRegValPUCC
ol
32 bit
w
JPUCC0
PortUnlimitedCurrentContr
usInitModeRegValPUCC
ol
16 bit
w
PINVn
PortOutputLevelInversion
usInitModeRegValPINV
16 bit
w
JPINV0
PortOutputLevelInversion
usInitModeRegValPINV
Port_GetVersion
-
-
-
-
-
Info
28
Interaction Between The User And PORT Driver Component
Chapter 7
Chapter 7
Interaction Between The User And PORT
Driver Component
The details of the services supported by the PORT Driver Component to the
upper layers users and the mapping of the channels to the hardware units is
provided in the following sections:
7.1. Services provided by PORT Driver Module to User
The PORT Driver provides following functionalities to the upper layers:
•
To initialize the PORT pins.
•
To change the direction of a PORT pin during runtime.
•
To change the mode of a PORT pin during runtime.
•
To refresh the direction of a PORT Pin.
•
To read the version information of the PORT module.
•
To change the direction of a PORT pin to default.
•
To change the mode of a PORT pin to default.
•
To change the mode of a PORT pin to DIO.
•
To change the mode of a PORT pin to ALTERNATE
29
Chapter 7
Interaction Between The User And PORT Driver Component
30
PORT Driver Component Header And Source File Description
Chapter 8
Chapter 8
PORT Driver Component Header And
Source File Description
This section explains the PORT Driver Component’s C Source and C Header
files. These files have to be included in the project application while
integrating with other modules.
The C header file generated by PORT Driver Generation Tool:
•
Port_Cfg.h
•
Port_Cbk.h
•
Port_Hardware.h
The C source file generated by PORT Driver Generation Tool:
•
Port_PBcfg.c
•
Port_Hardware.c
The PORT Driver Component C header files:
•
Port.h
•
Port_PBTypes.h
•
Port_Ram.h
•
Port_Version.h
•
Port_Debug.h
•
Port_Types.h
•
Port_RegWrite.h
The PORT Driver Component source files:
•
Port.c
•
Port_Ram.c
•
Port_Version.c
The Stub C header files:
•
Compiler.h
•
Compiler_Cfg.h
•
MemMap.h
•
Platform_Types.h
•
Std_Types.h
•
Dem.h
•
Dem_Cfg.h
•
Det.h
•
Schm_Port.h
31
Chapter 8
PORT Driver Component Header And Source File Description
The description of the PORT Driver Component files is provided in the table below:
Table 8-1 Description of the PORT Driver Component Files
File
Details
Port_Cfg.h
This file contains various PORT Driver Pre-compile time parameters, macro
definitions for the ISRs, channel notifications used by PORT Driver, PORT channel
handles.
Port_Cbk.h
This file contains the definition of error interface which will be invoked when the
port register write-verify fails.
Port_PBcfg.c
This file contains the post-build configuration data. The structures related to PORT
initialization, PORT Timer channel configuration and the timer related structures are
also provided in this file.
Port_Hardware.h
This file is generated by the PORT Generation Tool which includes definition of
hardware registers specific to P1x-C PORT.
Port_Hardware.c
This file is generated by the PORT Generation Tool which consists of Base address
for each Port Register and Global variable definition of hardware registers specific
to P1x-C PORT.
Port.h
This file provides extern declarations for all the PORT Driver Component APIs. This
file provides service Ids of APIs, DET Error codes and type definitions for Port
initialization structure. This header file shall be included in other modules to use the
features of PORT Driver Component.
Port_PBTypes.h
This file contains the data structures related to Port initialization, Port Refresh,
Direction changeable Pins at run time and Mode Changeable at run time.
Port_Types.h
This file provides data structure and type definitions for initialization of MCU Driver.
Port_Debug.h
This file is used for version check.
Port_RegWrite.h
This file is to have macro definitions for the registers write and verification.
Port_Ram.h
This file contains the extern declarations for the global variables defined in
Port_Ram.c file.
Port_Version.h
This file contains the macros of AUTOSAR version numbers of all modules that are
interfaced to PORT Driver.
Port.c
This file contains the implementation of all APIs.
Port_Ram.c
This file contains the global variables used by PORT Driver Component.
Port_Version.c
This file contains the code for checking version of all modules that are interfaced to
PORT Driver.
Compiler.h
Provides compiler specific (non-ANSI) keywords. All mappings of keywords, which
are not standardized, and/or compiler specific are placed and organized in this
compiler specific header.
Compiler_Cfg.h
This file contains the memory and pointer classes.
MemMap.h
This file allows to map variables, constants and code of modules to individual
memory sections. Memory mapping can be modified as per ECU specific needs.
Platform_Types.h
This file provides provision for defining platform and compiler dependent types.
Dem.h
This file is a stub for DEM component
Dem_Cfg.h
This file contains the stub values for Dem_Cfg.h
SchM_Port.h
This file is a stub for SchM Component
Std_Types.h
Provision for Standard types
Det.h
This file is a stub for DET component.
32
Generation Tool Guide
Chapter 9
Chapter 9
Generation Tool Guide
For more information on the Code Generation, please refer
“R20UT3654EJ0102-AUTOSAR.pdf” document.
33
Chapter 9 G eneration Tool Guide
34
Application Programming Interface
Chapter 10
Chapter 10 Application Programming Interface
This section explains the Data types and APIs provided by the PORT Driver
Component to the Upper layers.
10.1. Imported Types
This section explains the Data types imported by the PORT Driver
Component and lists its dependency on other modules.
10.1.1.
Standard Types
In this section all types included from the Std_Types.h are listed:
Std_VersionInfoType
Std_ReturnType
10.1.2.
Other Module Types
In this chapter all types included from the Dem_types.h are listed:
Dem_EventIdType
10.2. Type Definitions
This section explains the type definitions of PORT Driver Component
according to AUTOSAR Specification.
10.2.1.
Port_ConfigType
Name:
Port_ConfigType
Type:
struct
Element:
Type
Name
Explanation
uint32
ulStartOfDbToc
Database start
value.
Port_Regs
pPortNumRegs
Pointer to the
address of
Numeric port
registers
configuration.
Port_FuncCtrlRegs
pPortNumFuncCtrlRegs
Pointer to the
address of the
Numeric function
control registers
configuration.
Port_PMSRRegs
pPortNumPMSRRegs
Pointer to the
address of the
Numeric PMSR
registers
configuration.
Port_Regs
pPortJRegs
Pointer to the
address of JTAG
port registers
configuration
Port_FuncCtrlRegs
pPortJFuncCtrlRegs
Pointer to the
address of JTAG
function control
registers
configuration
35
Chapter 10 Application Programming Interfac e
Port_PMSRRegs
pPortJPMSRRegs
Pointer to the
address of JTAG
PMSR registers
configuration.
Port_PinsDirChangeable
pPinDirChangeable
Pointer to the
address of
runtime direction
changeable pins
structure.
Port_PinModeChangeableGroups
pPinModeChangeableGrou
Pointer to the
ps
address of
runtime mode
changeable pin
group details
structure.
Port_PinDioAltChangeableDetails
pPinDioAltModeDetails
Pointer to the
address of run
time mode
changeable pins
structure.
Port_PinModeChangeableDetails
pPinModeChangeableDetai
Pointer to the
ls
address of run
time mode
changeable pins
structure.
Port_DNFARegs
pPortDNFARegs
Pointer to the
DNFA registers
structure.
Port_FCLARegs
pPortFCLARegs
Pointer to the
FCLA registers
structure.
uint8
ucNoOfPinsDirChangeable Total number of
Pins configured
for Direction
Changeable at
run time
uint8
ucNoOfPinsModeChangea
Total number of
ble
Pins configured
for mode
Changeable at
run time
uint8
ucNoOfPinsDioAltModeCha Total number of
ngeable
Pins configured
for mode
Changeable at
run time
uint8
ucNoOfDNFARegs
The total number
of DNFA noise
elimination
registers
uint8
ucNoOfFCLARegs
The total number
of FCLA noise
elimination
registers
This is the type of the external data structure containing the initialization data for the
PORT Driver Component.
Description:
The user shall use the symbolic names defined in the PORT Driver Configuration Tool.
The configuration of each Port Pin is Microcontroller specific.
36
Application Programming Interface
Chapter 10
10.2.2. Port_PinType
Name:
Port_PinType
Type:
uint16
Range:
0 to 65535
The user shall use the symbolic names defined in the PORT Driver Configuration Tool.
Description:
The configuration of each Port Pin is Microcontroller specific.
10.2.3. Port_PinDirection Type
Name:
Port_PinDirectionlType
Type:
Enumeration
PORT_PIN_OUT
Output Direction
Range:
PORT_PIN_IN
Input Direction
Description:
These are the possible directions; a port pin can have for both input and output.
10.2.4. Port_PinModeType
Name:
Port_PinModeType
Type:
uint8
Range:
PIPC=0
0
PORT_DIO_OUT
(Port_PinModeType)0x00
1
PORT_DIO_IN
(Port_PinModeType)0x01
2
APP_ALT1_OUT
(Port_PinModeType)0x02
3
APP_ALT1_IN
(Port_PinModeType)0x03
4
APP_ALT2_OUT
(Port_PinModeType)0x04
5
APP_ALT2_IN
(Port_PinModeType)0x05
6
APP_ALT3_OUT
(Port_PinModeType)0x06
7
APP_ALT3_IN
(Port_PinModeType)0x07
8
APP_ALT4_OUT
(Port_PinModeType)0x08
9
APP_ALT4_IN
(Port_PinModeType)0x09
Range:
PIPC=1
0
APP_ALT1_OUT_SET_PIPC (Port_PinModeType)0x82
1
APP_ALT1_IN_SET_PIPC
(Port_PinModeType)0x83
2
APP_ALT2_OUT_SET_PIPC (Port_PinModeType)0x84
3
APP_ALT2_IN_SET_PIPC
(Port_PinModeType)0x85
4
APP_ALT3_OUT_SET_PIPC (Port_PinModeType)0x86
5
APP_ALT3_IN_SET_PIPC
(Port_PinModeType)0x87
6
APP_ALT4_OUT_SET_PIPC (Port_PinModeType)0x88
7
APP_ALT4_IN_SET_PIPC
(Port_PinModeType)0x89
Description:
These are the possible modes; a port pin can have for both input and output.
37
Chapter 10 Application Programming Interfac e
10.3. Function Definitions
This section explains the APIs provided by the PORT Driver Component.
Table 10-1 AUTOSAR Specific APIs supported by the PORT Driver Component
SL.NO
API’s
API’s specific
1
Port_Init
-
2
Port_SetPInDirection
-
3
Port_RefreshPortDirection
-
4
Port_GetVersionInfo
-
5
Port_SetPinMode
-
Table 10-2 Non- AUTOSAR Specific APIs supported by the PORT Driver Component
SL. NO
API’s
1
Port_SetToDioMode
2
Port_SetToAlternateMode
3
Port_SetPinDefaultMode
4
Port_SetPinDefaultDirection
10.3.1 Port_Init
Name:
Port_Init
FUNC(void, PORT_PUBLIC_CODE) Port_Init
Prototype:
(P2CONST (Port_ConfigType, AUTOMATIC, PORT_APPL_CONST) ConfigPtr)
Prototype:
Service ID
:
0x00
Sync/Async:
Synchronous
Reentrancy:
Non-Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_ConfigType
ConfigPtr
NA
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This service performs initialization of the PORT Driver components.
Configuration
None
Dependency:
Preconditions:
None
38
Application Programming Interface
Chapter 10
10.3.2 Port_SetPinDirection
Name:
Port_SetPinDirection
FUNC (void, PORT_PUBLIC_CODE) Port_SetPinDirection
Prototype:
(Port_PinType Pin, Port_PinDirectionType Direction)
Prototype:
Service ID
:
0x01
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Port_PinDirectionType Direction
0,1
Parameters InOut:
None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This service sets the port pin direction during runtime
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_Init().
10.3.3 Port_RefreshPortDirection
Name:
Port_RefreshPortDirection
FUNC (void, PORT_PUBLIC_CODE) Port_RefreshPortDirection (void)
Prototype:
Service ID:
0x02
Prototype:
Sync/Async:
Synchronous
Reentrancy:
Non-Reentrant
Type
Parameter
Value/Range
Parameters In:
None
NA
NA
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This service shall refresh the direction of all configured ports to the configured direction.
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_init().
10.3.4 Port_GetVersionInfo
Name:
Port_GetVersionInfo
FUNC(void, PORT_PUBLIC_CODE) Port_GetVersionInfo
Prototype:
(P2VAR(Std_VersionInfoType, AUTOMATIC, PORT_APPL_DATA)versioninfo)
Service ID:
0x03
Sync/Async:
Synchronous
Reentrancy:
Non-Reentrant
Type
Parameter
Value/Range
39
Chapter 10 Application Programming Interfac e
None
NA
NA
Parameters In:
Parameters InOut: None
NA
NA
Parameters out:
Std_VersionInfoType
versioninfo
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This API will return the version information of this Port Driver.
Configuration
None
Dependency:
Preconditions:
None
10.3.5 Port_SetPinMode
Name:
Port_SetPinMode
FUNC (void, PORT_PUBLIC_CODE) Port_SetPinMode
Prototype:
(Port_PinType Pin, Port_PinModeType Mode)
Service ID:
0x04
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Port_PinModeType
Mode
2-9, 82-89
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This function used to set the mode of a port pin during runtime.
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_init().
10.3.6 Port_SetToDioMode
Name:
Port_SetToDioMode
FUNC (void, PORT_PUBLIC_CODE) Port_SetToDioMode (Port_PinType Pin)
Prototype:
Service ID:
0x05
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This function used to set the mode of a port pin to DIO mode during runtime.
40
Application Programming Interface
Chapter 10
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_init().
10.3.7 Port_SetToAlternateMode
Name:
Port_SetToAlternateMode
FUNC (void, PORT_PUBLIC_CODE) Port_SetToAlternateMode
Prototype:
(Port_PinType Pin)
Service ID:
0x06
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This function used to set the mode of a port pin to alternate mode during runtime.
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_init().
10.3.8 Port_SetPinDefaultMode
Name:
Port_SetPinDefaultMode
FUNC (void, PORT_PUBLIC_CODE) Port_SetPinDefaultMode
Prototype:
(Port_PinType Pin)
Service ID:
0x07
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This function used to set the mode of a port pin during runtime. The PORT Driver
module allows changing the mode of the pin to default mode set by the configuration at
the time of Port_Init().
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_init().
41
Chapter 10 Application Programming Interfac e
10.3.9 Port_SetPinDefaultDirection
Name:
Port_SetPinDefaultDirection
FUNC (void, PORT_PUBLIC_CODE) Port_SetPinDefaultDirection
Prototype:
(Port_PinType Pin)
Service ID:
0x08
Sync/Async:
Synchronous
Reentrancy:
Reentrant
Type
Parameter
Value/Range
Parameters In:
Port_PinType
Pin
0-136
Parameters InOut: None
NA
NA
Parameters out:
None
NA
NA
Type
Possible Return Values
Return Value:
None
NA
Description:
This service sets the port pin direction during runtime. The PORT Driver module allows
changing the mode of the pin to default mode set by the configuration at the time of
Port_Init().
Configuration
None
Dependency:
Preconditions:
Ports should be initialized by calling Port_Init().
42
Development And Production Errors
Chapter 11
Chapter 11 Development And Production Errors
In this section the development errors that are reported by the PORT Driver
Component are tabulated. The development errors will be reported only when
the pre compiler option PORT_DEV_ERROR_DETECT is enabled in the
configuration.
11.1. PORT Driver Component Development Errors
The following table contains the DET errors that are reported by PORT Driver
Component. These errors are reported to Development Error Tracer Module
when the PORT Driver Component APIs are invoked with wrong input
parameters or without initialization of the driver.
Table 11-1
DET Errors of PORT Driver Component
Sl. No.
1
Error Code
PORT_E_PARAM_CONFIG
Related API(s)
Port_Init
Source of Error
API is invoked with NULL Pointer
Sl. No.
2
Error Code
PORT_E_INVALID_DATABASE
Related API(s)
Port_Init
Source of Error
Invalid database is found
Sl. No.
3
Error Code
PORT_E_UNINIT
Related API(s)
Port_RefreshPortDirection, Port_SetPinDirection, Port_SetPinMode,
Port_SetToDioMode, Port_SetToAlternateMode
Source of Error
APIs are invoked without the initialization of the PORT Driver Component.
Sl. No.
4
Error Code
PORT_E_PARAM_PIN
Related API(s)
Port_SetPinMode, Port_SetPinDirection, Port_SetToDioMode,
Port_SetToAlternateMode
Source of Error
API is invoked with invalid Pin
Sl. No.
5
Error Code
PORT_E_PARAM_INVALID_MODE
Related API(s)
Port_SetPinMode
Source of Error
API is invoked with invalid mode
Sl. No.
6
Error Code
PORT_E_DIRECTION_UNCHANGEABLE
Related API(s)
Port_SetPinDirection
Source of Error
API is invoked with Pin which is not configured as ‘Direction Changeable during run
time’.
Sl. No.
7
Error Code
PORT_E_MODE_UNCHANGEABLE
Related API(s)
Port_SetPinMode, Port_SetToDioMode, Port_SetToAlternateMode
Source of Error
API is invoked with Pin which is not configured as ‘Mode Changeable during run time’.
43
Chapter 11 Development And Production Errors
Sl. No.
8
Error Code
PORT_E_PARAM_POINTER
Related API(s)
Port_GetVersionInfo
Source of Error
GetVersionInfo is called with NULL pointer.
11.2.
PORT Driver Component Production Errors
The following table contains the DEM errors that are reported by PORT
software component.
Table 11-2
DEM Errors of PORT Driver Component
Sl. No.
1
Error Code
PORT_E_REG_WRITE_VERIFY
Related API(s)
Port_Init ,Port_SetPinDirection, Port_RefreshPortDirection, Port_SetPinMode,
Port_SetToDioMode, Port_SetToAlternateMode, Port_SetPinDefaultMode,
Port_SetPinDefaultDirection
Source of Error
When register write-verify fails.
44

Memory Organization
Chapter 12
Chapter 12 Memory Organization
Following picture depicts a typical memory organization, which must be met
for proper functioning of PORT Driver Component software.
PORT Driver Component
ROM Section
RAM Section
Library / Object Files
Global RAM of unspecific size required for Port
Port Driver code related to API’s are placed in
Driver functioning.
this memory.
X1
Y1
Segment Name:
Segment Name:
PORT_PUBLIC_CODE_ROM
RAM_UNSPECIFIED
Global 1-bit RAM to be initialized by start-up
Port Driver code related to Internal Functions
code.
are placed in this memory
Segment Name:
Y2
X2
RAM_1BIT
Segment Name:
PORT_PRIVATE_CODE_ROM
Tool Generated Files
The const section in the file Port_PBcfg.c is
placed in this memory.
X3
Segment Name:
PORT_CFG_DATA_UNSPECIFIED
The const section in the file
Port_Hardware.c is placed in this memory.
X4
Segment Name:
CONST_ROM_UNSPECIFIED
Figure 12-1
PORT Driver Component Memory Organization
45
Chapter 12 Memory Organization
ROM Section (X1, X2, X3, X4):
PORT_PUBLIC_CODE_ROM (X1): API(s) of PORT Driver Component,
which can be located in code memory.
PORT_PRIVATE_CODE_ROM (X2): Internal functions of PORT Driver
Component code that can be located in code memory.
PORT_CFG_DATA_UNSPECIFIED (X3): This section consists of PORT
Driver Component constant configuration structures and database table of
contents generated by the PORT Driver Component Generation Tool. This
can be located in code memory.
CONST_ROM_UNSPECIFIED (X4): The constant section of PORT Driver
Component code that can be located in code memory.
RAM Section (Y1 and Y2):
RAM_UNSPECIFIED (Y1): This section consists of the global RAM pointer
variables that are used internally by PORT Driver Component. This can be
located in data memory.
RAM_1BIT (Y2): This section consists of the global RAM variables of 1-bit size
that are used internally by PORT Driver Component. This can be located in
data memory.
46
P1x-C Specific Information
Chapter 13
Chapter 13 P1x-C Specific Information
P1x-C supports following devices:
RF701370A(CPU1(PE1))
RF701371(CPU1(PE1))
RF701372(CPU1(PE1))
RF701373
RF701374
13.1. Interaction between the User and PORT Driver Component
The details of the services supported by the PORT Driver Component to the
upper layers users and the mapping of the channels to the hardware units is
provided in the following sections:
13.1.1.
Parameter Definition File
Parameter definition files support information for P1x-C
Table 13-1 PDF information for P1x-C
PDF Files
Devices Supported
R403_PORT_P1X-C_70A_71_72.arxml
701370A(CPU1(PE1)), 701371(CPU1(PE1)),
701372(CPU1(PE1))
R403_PORT_P1X-C_73.arxml
701373
R403_PORT_P1X-C_74.arxml
701374
13.1.2.
Services Provided By PORT Driver Component
The PORT Driver Component provides the following functionalities to the
upper layers or users:
To initialize the Port and set according Port filter functions.
To refresh the direction of Port.
To switch the Port pin direction at run time.
To change the mode of a Port pin at run time.
To read the PORT Driver Component version information.
47









Chapter 13 P1x-C Specific Information
13.2. Sample Application
13.2.1. Sample Application Structure
The Sample Application is provided as reference to the user to understand the
method in which the PORT APIs can be invoked from the application.
Generic
AUTOSAR TYPES
COMPILER
RH850 TYPES
Devices
P1x-C PO R T
STUB
STUB
STUB
Sample
DET
DEM
SchM
application
Figure 13-1
Overview of PORT Driver Sample Application
The Sample Application of the P1x-C is available in the path
X1X\P1x-C\modules\port\sample_application
The Sample Application consists of the following folder structure:
X1X\P1x-C\modules\port\definition\4.0.3\P1H-C\
R403_PORT_P1X-C_70A_71_72.arxml
X1X\P1x-C\modules\port\definition\4.0.3\P1M-C\
R403_PORT_P1X-C_73.arxml
R403_PORT_P1X-C_74.arxml
X1X\P1x-C\modules\port\definition\4.0.3\ P1H-CE\
R403_PORT_P1X-C_70A_71_72.arxml
X1X\P1x-C\modules\port\sample_application\<SubVariant>\4.0.3
\src\Port_PBcfg.c
\src\Port_Hardware.c
\include\Port_Cfg.h
\include\Port_Hardware.h
X1X\P1x-C\modules\port\sample_application\P1H-CE\4.0.3
\config\ App_PORT_P1x-C_701370A_Sample.arxml
48
P1x-C Specific Information
Chapter 13
X1X\P1x-C\modules\port\sample_application\P1H-C\4.0.3
\config\ App_PORT_P1x-C_701371_Sample.arxml
\config\ App_PORT_P1x-C_701372_Sample.arxml
X1X\P1x-C\modules\port\sample_application\P1M-C\4.0.3
\config\ App_PORT_P1x-C_701373_Sample.arxml
\config\ App_PORT_P1x-C_701374_Sample.arxml
In the Sample Application all the PORT APIs are invoked in the following
sequence:
•
Port_GetVersionInfo: The API Port_GetVersionInfo is invoked to get the
version of the PORT Driver module with a variable of Std_VersionInfoType
after the call of this API the passing parameter will get updated with the
PORT Driver version details.
•
Port_Init: The API Port_Init is invoked with a valid database address for the
proper initialization of the PORT Driver, all the PORT Driver control registers
and RAM variables will get initialized after this API is called.
•
Port_SetPinMode: This service sets the Port Pin mode during runtime.
•
Port_SetPinDirection: This service sets the port pin direction during
•
Port_RefreshPortDirection: The API refreshes the direction of all ports to the
configured direction. It excludes those port pins from refreshing that are
configured as 'pin direction changeable during runtime' by invoking internal
API Port_RefreshPortInternal().
•
Port_SetPinDefaultDirection: This service sets the port pin direction during
runtime. The PORT Driver module allows changing the mode of the pin to
default mode set by the configuration at the time of Port_Init().
•
Port_SetToDioMode: This function used to set the mode of a port pin to DIO
mode during runtime.
•
Port_SetToAlternateMode: This function used to set the mode of a port pin
to alternate mode during runtime.
•
Port_SetPinDefaultMode: This function used to set the mode of a port pin
during runtime. The PORT Driver module allows changing the mode of the
pin to default mode set by the configuration at the time of Port_Init().
Note: <SubVariant> indicate P1H-CE, P1H-C, P1M-C.
13.2.2. Building Sample Application
13.2.2.1
Configuration Example
This section contains the typical configuration which is used for measuring
RAM/ROM consumption, stack depth and throughput details.
49
Chapter 13 P1x-C Specific Information
13.2.2.2
Debugging the Sample Application
Remark GNU Make utility version 3.81 or above must be installed and available in the
path as defined by the environment user variable “GNUMAKE” to complete the
build process using the delivered sample files.
Open a Command window and change the current working directory to “make”
directory present as mentioned in below path:
“X1X\P1x-C\common_family\make\<Compiler>”
Now execute the batch file SampleApp.bat with following parameters:
SampleApp.bat Port <Device_name>
•
After this, all the object files, map file and the executable file
App_PORT_P1x-C_Sample.out will be available in the output folder:
(“X1X\P1x-C\modules\port\sample_application\<SubVariant>
\obj\<Compiler>”)
•
The executable can be loaded into the debugger and the sample application
can be executed.
•
The initialization function initializes all ports and port pins with the
configuration set pointed by ConfigPtr by invoking internal API
Port_InitConfig(). This function should be called first in order to initialize the
port for use otherwise no operation can occur on the MCU ports and port
pins. This function is also called after reset, in order to reconfigure the ports
and port pins of the MCU.
•
Port Set Pin Mode: This API will change the pin mode to the requested
mode.
•
Port_SetToDioMode: This API will set the mode of a pin to DIO mode.
•
Port_SetToAlternateMode: This API will set the mode of a port pin to
Alternate mode.
•
Port SetPinDirection: This API will change the direction of the pin to the
requested direction.
•
Port RefreshPortDirection: This API will refresh all the port pins to the
configured value except the pins that are configured as pin direction
changeable during runtime.
Note: The <Device_name> indicates the device to be compiled, which can be
701370A (CPU1(PE1)), 701371(CPU1(PE1)), 701372(CPU1(PE1)), 701373,
701374 , <Compiler> indicate, comp_201517, <AUTOSAR_version>
indicates 4.0.3 and <SubVariant> indicate P1H-CE, P1H-C, P1H-M.
Remark Executable files with ‘*.out’ extension can be downloaded into the target
hardware with the help of Green Hills debugger.
•
If any configuration changes (only post-build) are made to the ECU
Configuration Description files
“X1X\P1x-C\modules\port\sample_application\<SubVariant>
\<AUTOSAR_version>\config\App_PORT_P1x-C_701370A_Sample.arxml”
50
P1x-C Specific Information
Chapter 13
\App_PORT_P1x-C_701371_Sample.arxml”
\App_PORT_P1x-C_701372_Sample.arxml”
\App_PORT_P1x-C_701373_Sample.arxml”
\App_PORT_P1x-C_701374_Sample.arxml”
•
The database alone can be generated by using the following commands.
make –f App_PORT_P1x-C_Sample.mak generate_port_config
make –f App_PORT_P1x-C_Sample.mak App_PORT_P1x-C_Sample.s37
•
After this, a flash able Motorola S-Record file App_PORT_P1x-
_Sample.s37 is available in the output folder.
13.3. Memory and Throughput
13.3.1. ROM/RAM Usage
The details of memory usage for the typical configuration, with DET disabled
is provided in this section.
Typical PORT configuration
DET OFF
All other Pre-Compile switches ON
Table 13-2
ROM/RAM Details without DET
Sl. No. ROM/RAM
Segment Name
Size in bytes
1
ROM
PORT_CFG_DATA_UNSPECIFIED
1322
96
CONST_ROM_UNSPECIFIED
PORT_PUBLIC_CODE_ROM
1252
PORT_PRIVATE_CODE_ROM
2774
2
RAM
RAM_UNSPECIFIED
4
RAM_1BIT
0
The details of memory usage for the typical configuration, with DET enabled is
provided in this section
Table 13-3
ROM/RAM Details with DET
Sl. No. ROM/RAM
Segment Name
Size in bytes
1
ROM
PORT_CFG_DATA_UNSPECIFIED
1322
96
CONST_ROM_UNSPECIFIED
PORT_PUBLIC_CODE_ROM
1494
PORT_PRIVATE_CODE_ROM
3168
2
RAM
RAM_UNSPECIFIED
4
RAM_1BIT
1
51
Chapter 13 P1x-C Specific Information
13.3.2. Stack Depth
The worst-case stack depth for PORT Driver Component for the typical
configuration is 104 bytes.
13.3.3. Throughput Details
The throughput details of the APIs shall be as following: The clock frequency
used to measure the throughput is 160 MHz for all APIs.
Table 13-4
Throughput Details of the APIs
Sl. No.
API Name
Throughput in
Remarks
microseconds
1
Port_Init
38.450
-
2
Port_SetPinDirection
2.175
-
3
Port_RefreshPortDirection
3.212
-
4
Port_GetVersionInfo
0.100
-
5
Port_SetPinMode
5.762
-
6
Port_SetToDioMode
1.550
-
7
Port_SetToAlternateMode
1.587
-
8
Port_SetPinDefaultDirection
1.275
-
9
Port_SetPinDefaultMode
1.850
-
13.4. Critical Section Details
The critical section throughput details are listed below. The clock frequency used
to measure the throughput is 160MHz for all APIs.
Table 13-5
Critical Section Throughput Details of the APIs
Sl. No.
API Name
Critical section
Remarks
throughput in
microseconds in
GHS for 701372
(CPU1(PE1))
1
Port_Init
NA
-
2
Port_SetPinDirection
0.950
-
3
Port_RefreshPortDirection
2.849
-
4
Port_GetVersionInfo
NA
-
5
Port_SetPinMode
1.862
-
6
Port_SetToDioMode
0.687
-
7
Port_SetToAlternateMode
0.725
-
8
Port_SetPinDefaultDirection
0.312
-
9
Port_SetPinDefaultMode
0.737
-
52
Release Details
Chapter 14
Chapter 14 Release Details
PORT Driver Software R4.0.3
Version: 1.0.4
53
Chapter 14 Release Details
54
Revision History
Sl.No.
Description
Version
Date
1.
Initial Version
1.0.0
17-Aug-2015
2.
The following changes are made
1.0.1
04-Apr-2016
1. Chapter-2 Reference Documents section updated.
2. Section 4.2 Preconditions updated.
3. Section 4.6 Data Consistency has updated.
4. Chapter-13 P1x-C specific information updated for device
support.
5. In Chapter-13, Section- 13.4.4 Sample Application Structure
updated.
6. In Chapter-13, Section-13.4 Memory and Throughput,
updated the ROM/RAM details, and Throughput Details.
7. Chapter-14 Driver Software version is updated.
8. Added R Number in last page
3.
The following changes are made :
1.0.2
10-Feb-2017
1. Removed the section 13.2. Compiler, Linker and Assembler.
2. Updated section 4.3 by adding a note.
3. Updated section 4.1 by adding a statement.
4. Chapter 8 updated for sub section heading change and
missing stub files inclusion.
5. Section 4.4 updated for critical section protection
6. Chapter 6 Registers Details updated.
7. In Chapter 8, Port_Cbk.h file detail is updated.
8. Chapter 11, Section 11.1 updated for Port_GetVersionInfo
9. Section 11.2 added in the chapter Chapter 11
10. Removed PORT_CFG_DBTOC_UNSPECIFIED details in
Chapter 12
11. Table 13-1 PDF information for P1x-C added in the Chapter
13
12. 13.2.1.Sample Application Structure updated for Dem stub
13. Device name updated.
14. User’s name changed to User's in the title.
4.
The following changes are made
1.0.3
27-Apr-2017
1. Subsections are added to Section 10.3
2. In Section 4.3 the Note for Table 4-4 is updated
3. Section 4.1 is updated with information about initialization of
unused Port pins
4. Notice and copyright are updated
5. Description about Inverting the output level of a pin is added
in section 4.1
6. Table 4-2 updated and Note in section 4.4 is corrected.
7. .one and .html files are removed from section 3.1 and 13.2
8. R-Number is updated
5.
Following changes are made
1.0.4
16-Jun-2017
1. Memory and Throughput details updated in chapter 13.
2. R-Number updated.
55
AUTOSAR MCAL R4.0.3 User's Manual
PORT Driver Component Ver.1.0.4
Embedded User's Manual
Publication Date: Rev. 1.02, June 16, 2017
Published by: Renesas Electronics Corporation


SALES OFFICES
http://www.renesas.com
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
© 2006-2017 Renesas Electronics Corporation. All rights reserved.
Colophon 4.1


AUTOSAR MCAL R4.0.3
User's Manual
R20UT3653EJ0102
Document Outline
- Chapter 1 Introduction
- Chapter 2 Reference Documents
- Chapter 3 Integration And Build Process
- Chapter 4 Forethoughts
- Chapter 5 Architecture Details
- Chapter 6 Registers Details
- Chapter 7 Interaction Between The User And PORT Driver Component
- Chapter 8 PORT Driver Component Header And Source File Description
- Chapter 9 Generation Tool Guide
- Chapter 10 Application Programming Interface
- Chapter 11 Development And Production Errors
- Chapter 12 Memory Organization
- Chapter 13 P1x-C Specific Information
- Chapter 14 Release Details
6 - R20UT3654EJ0102-AUTOSAR
7 - R20UT3654EJ0102-AUTOSAR_ind
Page 1
Page 2
Page 3
Page 4
Page 5
Page 6
Page 7
Page 8
Page 9
Page 10
Page 11
Page 12
Page 13
Page 14
Page 15
Page 16
Page 17
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
Page 24
Page 25
Page 26
Page 27
Page 28
Page 29
Page 30
Page 31
Page 32
Page 33
Page 34
Page 35
Page 36
Page 37
Page 38
Page 39
Page 40
Page 41
Page 42
Page 43
Page 44
Page 45
Page 46
Page 47
Page 48
Page 49
Page 50
8 - R20UT3654EJ0102-AUTOSARs



AUTOSAR MCAL R4.0.3
User's Manual
PORT Driver Component Ver.1.0.4
Generation Tool User's Manual
Target Device:
RH850/P1x-C
All information contained in these materials, including products and product specifications,
represents information on the product at the time of publication and is subject to change by
Renesas Electronics Corp. without notice. Please review the latest information published by
Renesas Electronics Corp. through various means, including the Renesas Electronics Corp.
website (http://www.renesas.com).
www.renesas.com
Rev.1.02 Jun 2017
2
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) "Renesas Electronics" as used in this document means Renesas Electronics Corporation and also includes its majority-owned
subsidiaries.
(Note 2) "Renesas Electronics product(s)" means any product developed or manufactured by or for Renesas Electronics.
3
4
Abbreviations and Acronyms
Abbreviation / Acronym
Description
AUTOSAR
AUTomotive Open System ARchitecture
BSWMDT
Basic Software Module Description Template
ECU
Electronic Control Unit
ICU
Input Capture Unit
Id/ID
Identifier
INTP
Interrupt
MCAL
Micro Controller Abstraction Layer
NMI
Non Maskable Interrupt
XML
eXtensible Mark-up Language
Definitions
Terminology
Description
BSWMDT File
This file is the template for the Basic Software Module Description.
Configuration XML File
This file contains the setting of command line options.
ECU Configuration Description
Input file to MCAL Code Generator Tool. It is generated by ECU
File
Configuration Editor.
Sl.No
Serial Number.
5
6
Table of Contents
Chapter 1
Introduction ........................................................................................ 9
1.1
Document Overview ............................................................................................................. 9
Chapter 2
Reference ......................................................................................... 11
2.1
Reference Documents ........................................................................................................ 11
2.2
Trademark Notice................................................................................................................ 11
Chapter 3
Code Generation Overview ............................................................. 13
Chapter 4
Input Files ......................................................................................... 17
Chapter 5
Output Files ...................................................................................... 17
Chapter 6
Precautions ...................................................................................... 19
Chapter 7
User Configuration Validation ........................................................ 21
Chapter 8
Configuration Overview .................................................................. 23
8.1
Container Overview ............................................................................................................ 23
8.1.1
Pre-Compile Configurable Parameters ................................................................... 24
8.1.2
Post Build Time Configurable Parameters .............................................................. 26
Chapter 9
Messages.......................................................................................... 39
9.1 Error Messages .................................................................................................................. 39
9.2 Warning Messages ............................................................................................................ 42
9.3 Information Messages ....................................................................................................... 43
7
List of Figures
Figure 3-1
Overview of Code Generation ....................................................................................... 13
Figure 3-2
Flow-Diagram of Code Generation ............................................................................... 14
Figure 8-1
Configuration Overview................................................................................................. 23
List of Tables
Table 2-1
Reference Documents ...................................................................................................... 11
Table 5-1
Output Files Description.................................................................................................... 17
Table 8-1
Pre-Compile Configurable Parameters ............................................................................. 24
Table 8-2
Post Build Time Configurable Parameters........................................................................ 26
Table 8-3
Port Modes Description..................................................................................................... 31
8
Introduction
Chapter 1
Chapter 1 Introduction
The PORT Driver component provides the service for initializing the whole
PORT structure of the microcontroller.
The PORT Driver Component comprises of two sections as Embedded
Software and the MCAL Code Generator Tool to achieve scalability and
configurability.
The document describes the PORT module specific inputs and outputs of the
MCAL Code Generator Tool that is the common code generator engine used
for the generation of the configuration code for all MCAL modules. MCAL
Code Generator Tool is a command line tool that extracts information from
ECU Configuration Description File, BSWMDT File and generates PORT
Driver C Source and C Header files (Port_PBcfg.c and Port_Cfg.h,
Port_Cbk.h, Port_Hardware.c and Port_Hardware.h).
This document contains information on the options, input and output files of the
MCAL Code Generator Tool. In addition, this manual covers a step-by-step
procedure for the usage of MCAL Code Generator Tool.
ECU Configuration Description File contains information about PORT General
Configuration, Port Pin Configurations.
1.1
Document Overview
This user manual is organized as given in the table below:
Table 1-1 Document Overview
Section
Contents
Section 1 (Introduction)
Provides an introduction to the document and explains how information
is organized in this manual.
Section 2 (Reference)
Provides a list of documents referred while developing this document.
Section 3 (Code Generation
Provides the Code Generation Overview.
Overview)
Section 4 (Input Files)
Provides information about ECU Configuration Description File.
Section 5 (Output Files)
Explains the output files that are generated by MCAL Code Generator
Tool.
Section 6 (Precautions)
Contains precautions to be taken during configuration of ECU
Configuration Description File.
Section 7 (User Configuration
Describes about user configuration validation done by the MCAL Code
Validation)
Generator Tool.
Section 8 (Configuration
Provides Container Overview.
Overview)
Section 9 (Messages)
Describes all the Error/Warning/Information messages of R4.0.3 which
helps the user to understand the probable reason for the same.
9
Chapter 1 Introduction
10
Reference
Chapter 2
Chapter 2
Reference
2.1
Reference Documents
The following table lists the documents referred to develop this document:
Table 2-1 Reference Documents
Sl.No. Title
Version
1.
AUTOSAR_SWS_PortDriver.pdf
3.2.0
2.
MCAL_CodeGenerator_Tool_UserManual.pdf
1.7
3.
R20UT3828EJ0101-AUTOSAR.pdf
1.0.3
2.2
Trademark Notice
Microsoft and Windows are trademarks/registered trademarks of Microsoft
Corporation.
11
Chapter 2
Reference
12
Code Generation Overview
Chapter 3
Chapter 3
Code Generation Overview
Code Generation overview is shown below.
ECU Configuration
Description File and
BSWMDT File
Port_Cfg.h,
MCAL
Port_Cbk.h,
Port_Hardware.h,
Generator
Velocity template files
Port_PBcfg.c,
for PORT
Port_Hardware.c
Configuration XML File
Figure 3-1
Overview of Code Generation
ECU Configuration Description File (.arxml):
This file will contain PORT Driver specific configuration information.
This file should be generated by AUTOSAR specified Configuration
Editor.
BSWMDT File (.arxml):
MCAL Code Generator Tool uses “Common Published Information”
from PORT module specific BSWMDT File. PORT module specific
BSWMDT File should not be updated manually since it is “Static
Configuration” file.
Velocity template files:
Port_PBcfg_c.vm, Port_Cbk_h.vm, Port_Cfg_h.vm,
Port_Hardware_h.vm, Port_Hardware_c.vm, Port_Validate.vm
They are interpreted by the MCAL Code Generator Tool in order to
provide user input validation and generate the final output file
needed by the AUTOSAR configuration chain .They are the "logic"
of the Code Generator.
Configuration XML File (.xml):
This file is used to specify which velocity template to use and their
location and the name of the output file generated
For the error free input file, the MCAL Code Generator Tool generates the
following output files: Port_Cfg.h, Port_Cbk.h, Port_Hardware.h, Port_PBcfg.c
and Port_Hardware.c and displays appropriate context sensitive error
messages for wrong input and exits.
13
Chapter 3 Code Generation Overview
ECU Configuration Description File can be created or edited using ECU
Configuration Editor.
Concept of execution MCAL Code Generator Tool is
as follows:
Generation start
Common
Validate.vm
Helper.vm
config.xml
ECU Configuration
Description Files
MCAL Code
Template files(.vm)
And BSWMDT file
Generator Tool
(.arxml)
No
Yes
Validation
successful
Display Error
Generate Output Files
Generation stop
Figure 3-2
Flow-Diagram of Code Generation
The module “Validate” will validate the configuration (contents of ECU
Configuration Description File(s) as input). If there are incorrect values or
incorrect dependencies, the MCAL Code Generator Tool l will display error,
warning and information messages. In case of errors, the MCAL Code
Generator Tool will abort the execution.
Port_Cfg_h.vm / Port_PBcfg_c.vm will generate compiler switch / structures
necessary to the AUTOSAR Configuration chain and vendor specific
parameters.
Port_Cbk_h.vm will generate Prototype Declarations for Port Callback
Notification Functions.
Port_Hardware_h.vm / Port_Hardware_c.vm will generate hardware related
info (defines number of actual instances / channels used / structure to access
to the I/O mapped peripheral).
Remark Please refer the general MCAL Code Generator Tool User Manual
(MCAL_CodeGenerator_Tool_UserManual.pdf) and
14
Code Generation Overview
Chapter 3
GettingStarted_MCAL_Drivers_X1x.pdf
(R20UT3828EJ0101-AUTOSAR.pdf)
for details about the tool command line options.
15
Chapter 3 Code Generation Overview
16
Input Files
Chapter 4
Chapter 4
Input Files
MCAL Code Generator Tool will accept the config.xml file which has paths to
the code generator template files for generating PORT Driver files. MCAL
Code Generator Tool accepts ECU Configuration Description File(s), PORT
Configuration XML file and BSWMDT File as input. MCAL Code Generator
Tool needs information about PORT Driver component. Hence ECU
Configuration Description File should contain configuration of PORT Driver
component. MCAL Code Generator Tool ignores any other AUTOSAR
component configured in the ECU Configuration Description File. ECU
Configuration Description File can be generated using configuration editor.
ECU Configuration Description File must comply with AUTOSAR standard
ECU Configuration Description File format.
Remark The detailed explanation about the parameters and containers are found in
Parameter Definition File.
17
Chapter 4
Input Files
18
Output Files
Chapter 5
Chapter 5
Output Files
MCAL Code Generator Tool generates configuration details in C Header and
C Source files (Port_Cfg.h, Port_Cbk.h, Port_PBcfg.c, Port_Hardware.c and
Port_Hardware.h).
The content of each output file is given in the table below:
Table 5-1 Output Files Description
Output File
Details
Port_Cfg.h
This file contains the macro definitions for general configuration, total number of Port
Pins configured and configuration set handles. This file also includes the Port Pin
handles for each configuration set.
Port_Cbk.h
This file contains Prototype Declarations for Port callback Notification Functions.
Port_PBcfg.c
This file contains structure for Port Pin Initialization, Port Pin Direction Switch and Port
Pin Direction Refresh during runtime.
Port_Hardware.c This file contains the definitions for addresses of the hardware registers used
in the PORT Driver Module.
Port_Hardware.h This file contains the declarations for addresses of the hardware registers
used in the PORT Driver Module.
Remark Output files generated by MCAL Code Generator Tool shall not be modified or
edited manually.
19
Chapter 5 Output Files
20
Precautions
Chapter 6
Chapter 6
Precautions
• ECU Configuration Description File and BSWMDT File must comply with
AUTOSAR standard for R4.0.3 ECU Configuration Description File and
BSWMDT File respectively.
• ECU Configuration Description File must contain PORT module description
files.
• Configuration XML File should contain the file extension ‘.xml’.
• Configuration XML File (config.xml file) should convey the Velocity template
files location and output file location.
• All the function names and the string values configured should follow C
syntax for variables. It can only contain alphanumeric characters and “_”. It
should start with an alphabet.
• If the output files generated by MCAL Code Generator Tool are modified
externally, then they may not produce the expected results or may lead to
error/warning/Information messages.
• Short Name for a container should be unique within a name space.
• An error free ECU Configuration Description File generated from
configuration editor has to be provided as input to the MCAL Code Generator
Tool. Otherwise MCAL Code Generator Tool may not produce the expected
results or may lead to “errors/warnings/information messages”.
• If no configuration of certain port filter is done within this Port Module, the
device specific default settings will take effect on this filter.
• If user selects the alternate signal in the port group container, then the
respective port filter container should be configured. For example: If signal
NMI is selected in the port group container respective filter group container
has to be configured.
• In case of multiple configuration sets, if any filter is configured in one
configuration set, then the same filter should be configured across all
configured multiple configuration sets.
• In post-build time, sub containers of PortFilterGroupConfig containers
should not be added or deleted.
• Edge/Level settings for External Interrupt (INTP) signals can be overwritten
by ICU component to change the default activation type and the type of
activation at run-time.
Remark Please refer the PORT Component User Manual (R20UT3653EJ0102-
AUTOSAR.pdf) for deviations from AUTOSAR.
21
Chapter 6
Precautions
22
User Configuration Validation
Chapter 7
Chapter 7
User Configuration Validation
This section provides help to analyze the error, warning and information
messages displayed during the execution of MCAL Code Generator Tool. It
ensures conformance of input file with syntax and semantics. It also performs
validation on the input file for correctness of the data.
For more details on list of Error/Warning/Information messages that are
displayed as a result of input file(s) validation, refer Chapter 9 “Messages”.
MCAL Code Generator Tool displays error or warning or information
messages when the user has configured incorrect inputs. The format of
Error/Warning/ Information message is as shown below.
<message_type>_<vendor_id>_<module_id>_<message_id>:<message_cont
ent>.
where,
<message_type> : ERR/WARNING/INFO
< vendor_id > : vendor Id = 59
< module_id > : 124 - PORT Driver Module id (124) for user
configuration checks.
< Message_id.> : 001-999
<message_content>: Message content provides information
about error or warning or information displayed
when the user has configured incorrect inputs.
File Name’ and ‘Path’ need not be present for all
Error/Warning/Information messages
File Name: Name of the file in which the error has
occurred
Path: Absolute path of the container in which the
parameter is present
23
Chapter7
User Configuration Validation
24
Configuration Overview Ch apter 8
Chapter 8 Configuration Overview
8.1
Container Overview
The following figure represents container overview.
Port
PortGeneral
PortDemEventParameterRef
s
PortConfigSet
PortPinx
PortGroup0
PortFilterGroupConfig
PortContainer
x= 0 to 14
PortGroup1
PortPinx
PortPin
x= 0 to 7
PortPinx
PortGroup2
x= 0 to 15
PortAnalogFilterGroupx
PortDigitalFilterGroupx
x= 0 to 12
x=0 to 5
PortPinx
PortGroup3
X=
x= 0 to 14
PortPinx
PortGroup4
x= 0 to 14
PortPinx
PortGroup5
x= 0 to 14
PortPinx
PortGroup6
x= 0 to 15
PortPinx
PortGroup7
x= 0 to 9
Figure 8-1 Configuration Overview
PortPinx
PortGroup8
x= 0 to 15
PortPinx
PortGroup9
x= 0 to 8
PortGroupJtag0
PortPinx
x= 0 to 5
25
Chapter 8 Configuration Overview
8.1.1
Pre-Compile Configurable Parameters
Table 8-1
Pre-Compile Configurable Parameters
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
PortGeneral
PortDevErrorDetect
Boolean
TRUE / FALSE
Switches the Development
Error Detection and
Notification on or off.
True: Development Error
Detection and Notification is
enabled.
False: Development Error
Detection and Notification is
disabled.
PortSetPinDirectionApi
Boolean
TRUE / FALSE
Pre-processor switch to enable
/ disable the use of the
function
Port_SetPinDirection().
True: Enabled - Function
Port_SetPinDirection () is
available.
False: Disabled - Function
Port_SetPinDirection () is not
available.
PortSetPinDefaultDire
Boolean
TRUE / FALSE
Pre-processor switch to enable
ctionApi
/ disable the use of the
function
Port_SetPinDefaultDirection
().
True: Enabled - Function
Port_SetPinDefaultDirection ()
is available.
False: Disabled - Function
Port_SetPinDefaultDirection ()
is not available.
Pre-processor switch to enable
PortSetPinModeApi
Boolean
TRUE / FALSE
/ disable the use of the
function Port_SetPinMode ().
True: Enabled - Function
Port_SetPinMode () is
available.
False: Disabled - Function
Port_SetPinMode() is not
available.
Pre-processor switch to
PortSetPinDefaultMod
Boolean
TRUE / FALSE
enable / disable the use of the
eApi
function
PortSetPinDefaultModeApi ().
True: Enabled–Function
PortSetPinDefaultModeApi ()
is available.
False: Disabled - Function
PortSetPinDefaultModeApi ()
is not available.
26
Configuration Overview Ch apter 8
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
Pre-processor switch to enable
PortVersionInfoApi
Boolean
TRUE / FALSE
/ disable the API to read out
the modules version
information.
PortVersionInfoApTrue:
Version info API enabled
False: Version info API
disabled.
PortDevErrorDetect
Boolean
TRUE / FALSE
Switches the Development
Error Detection and
Notification on or off.
True: Development Error
Detection and Notification is
enabled.
False: Development Error
Detection and Notification is
disabled.
PortCriticalSectionProt
Boolean
TRUE / FALSE
This parameter specifies if the
ection
PORT driver CPU load can be
reduced by disabling the
enter/exit critical section
functionality by adding a
precompiled configuration
parameter to the PORT driver
configuration.
True: Enables the critical
section functionality for the
restricted area.
False: Disables the critical
section functionality for the
restricted area.
PortMaxMode
Integer
6
This parameter indicates
maximum Alternative modes
present in a Port Module.
Pre-processor switch to enable
PortSetToDioAltMode
Boolean
TRUE / FALSE
/ disable the use of the
Api
function Port_SetToDioMode
() and
Port_SetToAlternateMode ().
True: Enabled - Function
Port_SetToDioMode () and
Port_SetToAlternateMode () is
available.
False: Disabled - Function
Port_SetToDioMode () and
Port_SetToAlternateMode () is
not available.
Enable / disable AUTOSAR
PortVersionCheckExte
Boolean
TRUE / FALSE
Version check for inter-module
rnalModules
dependencies.
True: AUTOSAR Version
check for inter-module
dependencies is enabled.
false: AUTOSAR Version
check for inter-module
dependencies is disabled
27
Chapter 8 Configuration Overview
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
This parameter contains the
PortDeviceName
Integer
RF701370A,
supported device name to
RF701371,
identify the device specific C
RF701372,
header file through ARXML
RF701373,
File.
RF701374.
8.1.2
Post Build Time Configurable Parameters
Table 8-2 Post Build Time Configurable Parameters
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
Parameter to indicate if the
PortPinDirectionChang
Boolean
TRUE /
direction is changeable on a port
eable
FALSE
pin during runtime.
True: Port Pin direction
changeable enabled.
False: Port Pin direction
changeable disabled.
PortConfigS
Parameter to indicate if the mode
et/PortGrou
PortPinDioAltModeCha
Boolean
TRUE /
of a port pin is changeable
p
ngeable
FALSE
between DIO and Alternate during
runtime by API functions
Port_SetToDioMode and
Port_SetToAlternateMode.
Including these APIs is controlled
by PortSetToDioAltModeApi.
True: Dio Alternate mode is
changeable.
False: Dio Alternate mode is not
changeable.
PortPinModeChangeab
Boolean
TRUE /
Parameter to indicate if the mode
le
FALSE
of a port pin is changeable during
runtime by API function
Port_SetPinMode. Including this
API is controlled by
PortSetPinModeApi.
True: Port Pin mode is
changeable.
False: Port Pin mode is not
changeable.
Parameter to indicate port pin
PortPinLevelValue
Enumeration
PORT_PIN_L
level value for a port pin.
EVEL_LOW /
PORT_PIN_LEVEL_LOW: Port
PORT_PIN_L
pin Level is low.
EVEL_HIGH
PORT_PIN_LEVEL_HIGH: Port
pin Level is high.
28
Configuration Overview Ch apter 8
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
Mode of the port pin for use with
PortPinInitialMode
Enumeration
DIO
Port_Init() function.
ALT1_IN
<Input name>_ALT<Alternative
instance>_IN: Provides alternative
ALT1_OUT
instance for selected input.
ALT2_IN
<Output name>_ALT<Alternative
instance>_OUT: Provides
ALT2_OUT
alternative instance for selected
output.
ALT3_IN
ALT3_OUT
ALT4_IN
ALT4_OUT
PortPinDirection
Enumeration
PORT_PIN_O
The initial direction of the pin (IN
UT /
or OUT). If the direction is not
PORT_PIN_I
changeable, the value configured
N
here is fixed. The direction must
match the pin mode.
PORT_PIN_IN: Port pin direction
set as input.
PORT_PIN_OUT: Port pin
direction set as output.
PortInputBufferControl
Boolean
This parameter is used as one of
TRUE /
the factors to enable/disable port
FALSE
pins input buffer in DIO Mode
(PMC=0).
True: Port pin's input buffer is
ready to be enabled in DIO Mode.
False: Port pin's input buffer is
disabled in DIO Mode.
PortBiDirectionControl
Boolean
This parameter forces port pins
TRUE /
input buffer and output buffer at
FALSE
the same time. If activated, the
effect is valid independently from
any other port settings.
True: Activate forced Bi-
directional IO buffer of the port
pin.
False: Deactivate forced Bi-
directional IO buffer of the port
pin.
PortIpControl
Boolean
This parameter is used to
TRUE /
enable/disable the direct IO
FALSE
control of port pins input buffer
and output buffer.
true: Enables the direct IO control
of port pins input buffer and output
buffer by the corresponding
control signals of IP_ENI3(0) and
IP_ENO3(0) from internal
peripheral IPs. This register is
valid only in Control Mode
PortConfigS
(PMC=1).
et/PortGrou
False: Disables the direct IO
p
control of port pins input buffer
and output buffer.
29
Chapter 8 Configuration Overview
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
PortPullUpOption
Boolean
This register switches on or off the
TRUE /
port pins pull-up resistor.
FALSE
True: Port pin's pull-up resistor is
enabled.
False: Port pin's pull-up resistor is
disabled.
PortPullDownOption
Boolean
This parameter switches on or off
TRUE /
the port pins pull-down resistor.
FALSE
True: Port pin's pull-down resistor
is enabled.
False: Port pin's pull-down
resistor is disabled.
PortOpenDrainControl
Boolean
This parameter selects port pins
TRUE /
output buffer function as push-pull
FALSE
type or open drain type.
True: Port pin's output buffer
operates as open drain driver.
false: Port pin's output buffer
operates as push-pull driver
This parameter selects port pins
PortOpenDrainControlE
Boolean
TRUE /
output buffer function as emulated
xpansion
FALSE
P-ch open drain type or emulated
N-ch open drain type.
True: Port pin's output buffer
operates as emulated P-Channel
open drain driver.
false: Port pin's output buffer
operates as emulated N-Channel
open drain drive
TRUE /
FALSE
Parameter to indicate if the mode
PortOutputLevelInversi
Boolean
of a port pin is changeable
on
between DIO and Alternate during
runtime by API functions
Port_SetToDioMode and
Port_SetToAlternateMode.
Including these APIs is controlled
by PortSetToDioAltModeApi.
True: Dio Alternate mode is
changeable.
False: Dio Alternate mode is not
changeable.
PortDriveStrengthContr
Enumeration
SLOW / FAST
Parameter to indicate if the mode
ol
of a port pin is changeable during
runtime by API function
Port_SetPinMode. Including this
API is controlled by
PortSetPinModeApi.
True: Port Pin mode is
changeable.
False: Port Pin mode is not
PortConfigS
changeable.
et/PortGrou
p
30
Configuration Overview Ch apter 8
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
PortUniversalCharacter
Boolean
This parameter selects the port
TRUE /
isticCntrl
pins output drive strength as high
FALSE
or low type.
The PortDriveStrengthControl
must be enabled for this feature.
False: PortDriveStrengthControl
parameter specifies the output
driver strength of the port pin.
true : Number of output buffer
characteristics selection capability
is expanded,
the maximum of 4 characteristics
selection is possible
PUCCn PDSCn
0 0 Output characteristic
selection 1 (400 Ohm buffer)
0 1 Output characteristic
selection 2 (200 Ohm buffer)
1 0 Output characteristic
selection 3 (100 Ohm buffer)
1 1 Output characteristic
selection 4 (50 Ohm buffer)
PortInputBufferSelectio
Enumeration
TYPE1_SHM
This setting specifies the input
n
T1
buffer characteristics.
TYPE2_SHM
TYPE1_SHMT1: TYPE 1 buffer is
T4
selected.
TYPE3_TTL
TYPE2_SHMT4: TYPE 2 buffer is
selected.
TYPE3_TTL: TYPE 3 buffer is
selected.
PortFilterGr
This parameter enables/disables
PortAnalogFilterBypass
Boolean
TRUE /
oupConfig/
bypass control.
FALSE
PortAnalog
FilterGroup
FALLING_ED
This parameter specifies the
PortEdgeOrLevelContr
Enumeration
GE_FCLA<In
mode selection.
ol
stance>_CTL
<Instance>
RISING_EDG
E_FCLA<Inst
ance>_CTL<I
nstance>
HIGH_LEVEL
_FCLA<Instan
ce>_CTL<Inst
ance>
LOW_LEVEL
_FCLA<Instan
ce>_CTL<Inst
ance>
BOTH_EDGE
S_FCLA<Inst
ance>_CTL<I
nstance>
BOTH_EDGE
S_DISABLED
31
Chapter 8 Configuration Overview
Container
Parameter Name
Parameter
Parameter
Parameter Description
Name
Type
Range
This parameter specifies the
PortSameLevelSample
Boolean
TRUE /
number of same level samples,
s
FALSE
i.e. the number of samples with
the same level to judge an
external signal pulse as valid.
This parameter specifies the
PortSamplingClockFreq
Enumeration
TRUE /
Digital filter sampling clock
uency
FALSE
frequency.
FIXED_LOW_
This parameter enables/disables
PortDigitalFilterEnableI
Enumeration
LEVEL
PortDigitalFilterEnableInput for
nput0 to n
BYPASSED_
the signal.
CTL<Instance
>
Instance
varies as
FCLAmCTLn
DISABLED
This parameter enables/disables
PortFilterGr
PortDigitalFilterEdgeCo
Enumeration
RISING_FCL
PortDigitalFilterEdgeControl for
oupConfig/
ntrol0 to n
A<Instance>_
the signal.
PortDigitalFi
CTL<Instance
lterGroup
>
FALLING_FC
LA<Instance>
_CTL<Instanc
e>
BOTH_EDGE
S_FCLA<Inst
ance>_CTL<I
nstance>
Instance
varies as
FCLAmCTLn
BYPASS_EN
This parameter enables/disables
PortDigitalFilterBypass
Enumeration
ABLED:
bypass control.
0 to n
Bypass
functionality
enabled.
DISABLED:
Bypass
functionality
disabled
32
Configuration Overview Ch apter 8
Table 8-3 Port Modes Description
Sl.No
Modes
Sl.No
Modes
GTM0I6_ALT1_IN
GTMAT1O0_ALT1_OUT
1
201
2
GTMAT0O2_ALT1_OUT
202
CSIH1RYI_ALT2_IN
3
SENT0RX_ALT3_IN
203
CSIH1RYO_ALT2_OUT
4
CSIH0CSS1_ALT3_OUT
204
SENT4RX_ALT3_IN
5
CSIH0CSS5_ALT4_OUT
205
MCAN0RX_ALT4_IN
6
GTM0I3_ALT1_IN
206
GTMAT0O4_ALT1_OUT
7
GTMAT0O3N_ALT1_OUT
207
MCAN0TX_ALT4_OUT
8
SENT1RX_ALT3_IN
208
GTMAT0O5_ALT1_OUT
9
CSIH1CSS6_ALT3_OUT
209
INTP4_ALT2_IN
10
CSIH0CSS6_ALT4_OUT
210
CSIH3CSS0_ALT2_OUT
11
GTM0I2_ALT1_IN
211
CSIH1SI_ALT3_IN
12
GTMAT1O1_ALT1_OUT
212
HSURT0SDIO0I_ALT4_IN
13
CSIH0CSS4_ALT3_OUT
213
HSURT0SDIO0O_ALT4_OUT
14
CSIH2CSS2_ALT2_OUT
214
GTM0I5_ALT1_IN
15
GTMAT0O0_ALT1_OUT
215
CSIH3SCI_ALT2_IN
16
CSIH0CSS3_ALT3_OUT
216
CSIH3SCO_ALT2_OUT
17
CSIH2CSS4_ALT2_OUT
217
CSIH1DCS_ALT3_IN
18
GTM1I0_ALT1_IN
218
CSIH1SO_ALT3_OUT
19
GTM1I0_ALT1_IN
219
HSURT0SDIO1I_ALT4_IN
20
GTM1I0_ALT1_IN
220
HSURT0SDIO1O_ALT4_OUT
21
CSIH1CSS2_ALT3_OUT
221
GTM0I4_ALT1_IN
22
CSIH2CSS5_ALT2_OUT
222
GTMAT0O3_ALT1_OUT
23
GTM1I0_ALT1_IN
223
CSIH3SI_ALT2_IN
24
GTMAT1O0_ALT1_OUT
224
HSURT0SDIO2I_ALT4_IN
25
INTP3_ALT2_IN
225
HSURT0SDIO2O_ALT4_OUT
26
CSIH1CSS1_ALT4_OUT
226
GTM0I0_ALT1_IN
27
CSIH2CSS6_ALT2_OUT
227
GTMAT1O3_ALT1_OUT
28
CSIH2CSS7_ALT2_OUT
228
CSIH3DCS_ALT2_IN
29
CSIH1CSS0_ALT4_OUT
229
CSIH3SO_ALT2_OUT
30
MCAN1RX_ALT2_IN
230
HSURT0SDIO3I_ALT4_IN
33
Chapter 8 Configuration Overview
Sl.No
Modes
Sl.No
Modes
31
CSIH0SI_ALT3_IN
231
HSURT0SDIO3O_ALT4_OUT
32
CSIH1DCS_ALT4_IN
232
GTM1I6_ALT1_IN
33
CSIH1SCO_ALT4_OUT
233
GTMAT2O4_ALT1_OUT
MCAN1TX_ALT2_OUT
234
CSIH3CSS1_ALT2_OUT
34
35
CSIH0SCI_ALT3_IN
235
GTMAT1O4_ALT1_OUT
36
CSIH1SC1_ALT4_IN
236
CSIH3CSS2_ALT2_OUT
37
CSIH0DCS_ALT3_IN
237
ESO2_BAR_ALT3_IN
38
CSIH0SO_ALT3_OUT
238
CSIH1CSS7_ALT3_OUT
39
EXTCLK1O_ALT2_OUT
239
GTM1I4_ALT1_IN
40
CSIH1SI_ALT4_IN
240
GTMAT1O5_ALT1_OUT
41
241
CSIH3CSS3_ALT2_OUT
RLIN30TX_ALT1_OUT
42
242
GTMAT0O1N_ALT1_OUT
INTP5_ALT2_IN
43
243
CSIH1CSS0_ALT2_OUT
CSIH0CSS2_ALT2_OUT
44
244
CSIH2SCI_ALT3_OUT
MTTCAN0TX_ALT3_OUT
45
245
CSIH2SCO_ALT3_IN
HSURT1SCKI_ALT4_IN
46
246
HSURT0SCKI_ALT4_IN
HSURT1SCKO_ALT4_OUT
47
247
HSURT0SCKO_ALT4_OUT
CSIH0CSS3_ALT2_OUT
48
248
CSIH1CSS2_ALT2_OUT
EXTCLK0O_ALT3_OUT
49
249
CSIH2DCS_ALT3_IN
HSURT1CSO_ALT4_OUT
50
250
CSIH2SO_ALT3_OUT
CSIH0CSS4_ALT2_OUT
51
251
HSURT0CSI_ALT4_IN
RLIN30RX_ALT3_IN
52
252
HSURT0CSO_ALT4_OUT
HSURT1SDIR_ALT4_OUT
53
253
GTMAT0O2N_ALT1_OUT
GTM1I7_ALT1_IN
54
254
GTM0I4_ALT2_IN
CSIH2RYI_ALT2_IN
55
255
CSIH2CSS1_ALT2_OUT
CSIH2RYO_ALT2_OUT
56
256
CSIH1SCI_ALT3_IN
RLIN30TX_ALT3_OUT
57
257
CSIH1SCO_ALT3_OUT
CSIH3CSS3_ALT4_OUT
58
258
CSIH2SCO_ALT3_OUT
GTMAT1O3N_ALT1_OUT
59
259
HSURT0SDIR_ALT4_OUT
CSIH0CSS0_ALT3_OUT
60
260
GTM0I5_ALT2_IN
CSIH0CSS7_ALT4_OUT
61
261
GTMAT0O5_ALT2_OUT
EXTCLK0O_ALT2_OUT
34
Configuration Overview Ch apter 8
Sl.No
Modes
Sl.No
Modes
62
262
CSIH2SI_ALT3_IN
GTMAT0O6_ALT1_OUT
63
263
CSIH0SS0_ALT3_OUT
SENT3SPCO_ALT3_OUT
64
264
HSURT1SDIO0I_ALT4_IN
GTM0I7_ALT1_IN
65
265
HSURT1SDIO0O_ALT4_OUT
GTMAT0O7_ALT1_OUT
66
266
ESO0Z_ALT2_IN
ETH0LINKSTA_ALT2_IN
67
267
RLIN31RX_ALT3_IN
SENT4SPCO_ALT3_OUT
68
268
SENT0SPCO_ALT3_OUT
CSIH3CSS1_ALT3_OUT
69
269
HSURT1SDIO1I_ALT4_IN
FLX0RXDA_ALT4_IN
70
270
HSURT1SDIO1O_ALT4_OUT
ETH0MDI_ALT2_IN
71
271
RLIN31TX_ALT3_OUT
ETH0MDO_ALT2_OUT
72
272
HSURT1SDIO2I_ALT4_IN
CSIH3CSS2_ALT3_OUT
73
273
HSURT1SDIO2O_ALT4_OUT
FLX0RXDB_ALT4_IN
74
274
RLIN30RX_ALT2_IN
GTM1I5_ALT1_IN
75
275
CSIH2CSS3_ALT2_OUT
FLX0STPWT_ALT4_IN
76
276
MTTCAN0RX_ALT3_IN
CSIH1CSS3_ALT3_OUT
77
277
CSIH1SS1_ALT3_OUT
SENT2SPCO_ALT4_OUT
78
278
HSURT1SDIO3I_ALT4_IN
ETH0COL_ALT2_IN
79
279
HSURT1SDIO3O_ALT4_OUT
INTP6_ALT3_IN
80
280
GTM1I2_ALT1_IN
FLX0TXENA_ALT4_OUT
81
ETH0MDC_ALT2_OUT
281
GTM01I0_ALT1_IN
82
282
FLX0TXDB_ALT4_OUT
ETH0WOL_ALT2_OUT
83
283
ETH0CRS_ALT2_IN
SENT1RX_ALT4_IN
84
284
RLIN30TX_ALT2_OUT
BHPDGRCLK1_ALT4_OUT
85
285
CSIH0CSS2_ALT3_OUT
ETH0CLK1O_ALT2_OUT
86
286
FLX0TXDA_ALT4_OUT
CSIH2SSI_BAR_ALT3_IN
87
287
ETH0TXER_ALT2_OUT
CSIH2CSS0_ALT3_OUT
88
288
INTP7_ALT3_IN
CSIH0CSS3_ALT4_OUT
54
254
GTM0I4_ALT2_IN
CSIH2RYI_ALT2_IN
55
255
CSIH2CSS1_ALT2_OUT
CSIH2RYO_ALT2_OUT
56
256
CSIH1SCI_ALT3_IN
RLIN30TX_ALT3_OUT
92
292
CSIH1CSS4_ALT3_OUT
INTP1_ALT2_IN
35
Chapter 8 Configuration Overview
Sl.No
Modes
Sl.No
Modes
93
293
SENT1SPCO_ALT4_OUT
ADTRG1_ALT4_IN
94
294
GTMAT0O1_ALT1_OUT
CSIH1CSS5_ALT4_OUT
95
295
ETH0TXD1_ALT2_OUT
CSIH0CSS5_ALT2_OUT
96
296
CSIH1CSS5_ALT3_OUT
SENT2RX_ALT3_IN
97
297
ETH0TXD2_ALT2_OUT
ESO1Z_ALT4_IN
98
298
SENT2RX_ALT4_IN
CSIH2CSS7_ALT4_OUT
99
299
ETH0TXD3_ALT2_OUT
GTMAT1O0N_ALT1_OUT
100
300
ETH0REF50CK_ALT2_IN
CSIH0CSS6_ALT2_OUT
101
301
SENT3RX_ALT4_IN
SENT3RX_ALT3_IN
102
302
ETH0TXEN_ALT1_OUT
EXTCLK1O_ALT4_OUT
103
303
MCAN0RX_ALT3_IN
CSIH2CSS2_ALT4_OUT
104
304
FLX0RXDA_INTP10_ALT4_IN
CSIH0CSS1_ALT2_IN
105
305
ETH0RXER_ALT2_IN
CSIH2CSS3_ALT4_OUT
106
306
MCAN0TX_ALT3_OUT
CSIH0SSI_BAR_ALT2_IN
107
307
RLIN30TX_ALT4_OUT
CSIH0CSSO0_ALT2_OUT
108
308
ETH0TXCLK_ALT2_IN
ADTRG0_ALT3_IN
109
309
CSIH1SSI_BAR_ALT3_IN
ADCA1CNV_ALT3_OUT
110
310
CSIH1SS0_ALT3_OUT
RLIN31RX_ALT4_IN
111
311
ETH0RXCLK_ALT2_IN
CSIH0DCS_ALT2_IN
112
312
GTMAT0O0N_ALT1_OUT
CSIH0SO_ALT2_OUT
113
313
ETH0RXD0_ALT2_IN
ADCA0CNV_ALT3_OUT
114
314
ETH0RXD1_ALT2_IN
RLIN31TX_ALT4_OUT
115
315
ETH0RXD2_ALT2_IN
CSIH0SCI_ALT2_IN
116
316
RLIN30RX_ALT4_IN
CSIH0CSO_ALT2_OUT
117
317
ETH0RXD3_ALT2_IN
CSIH2DCS_ALT4_IN
118
ETH0RXDV_ALT2_IN
318
CSIH2SO_ALT4_OUT
119
INTP0_ALT3_IN
319
CSIH0SI_ALT2_IN
120
BHPDGRCLK0_ALT4_OUT
320
NMI_ALT3_IN
121
SENT5SPCO_ALT3_OUT
321
GTMAT2O0N_ALT1_OUT
122
322
CSIH2SCI_ALT4_IN
CSIH3SCO_ALT3_OUT
123
323
CSIH2SCO_ALT4_OUT
HSURT3CSI_ALT4_IN
124
324
EXTCLK1O_ALT3_OUT
HSURT3CSO_ALT4_OUT
36
Configuration Overview Ch apter 8
Sl.No
Modes
Sl.No
Modes
125
325
CSIH0RYI_ALT4_IN
GTMAT2O0_ALT1_OUT
126
326
CSIH0RYO_ALT4_OUT
CSIH3CSS0_ALT3_OUT
127
327
MCAN1TX_ALT3_OUT
HSURT3SCKI_ALT4_IN
128
328
CSIH1CSS3_ALT4_OUT
HSURT3SCKO_ALT4_OUT
129
329
MCAN1RX_ALT3_IN
GTMAT1O7_ALT1_OUT
130
330
CSIH2SI_ALT4_IN
HSURT3SDIO3I_ALT4_IN
131
331
CSIH2CSS3_ALT3_OUT
HSURT3SDIO3O_ALT4_OUT
132
332
SENT2RX_ALT2_IN
GTMAT1O6_ALT1_OUT
133
333
INTP2_ALT3_IN
HSURT3SDIO2I_ALT4_IN
134
334
MTTCAN0TX_ALT2_OUT
HSURT3SDIO2O_ALT4_OUT
135
335
CSIH2CSS0_ALT4_OUT
HSURT3SDIO1I_ALT4_IN
136
336
MTTCAN0RX_ALT2_IN
HSURT3SDIO1O_ALT4_OUT
137
337
CSIH0CSS4_ALT4_OUT
HSURT3SDIO0I_ALT4_IN
138
338
CSIH1CSS6_ALT4_OUT
HSURT3SDIO0O_ALT4_OUT
139
339
HSURT2DIR_ALT2_OUT
SENT7RX_ALT3_IN
140
340
CSIH1CSS7_ALT4_OUT
MEMC0A0_ALT3_OUT
141
341
HSURT2CSI_ALT2_IN
CSIH3RYI_ALT4_IN
142
342
HSURT2CSO_ALT2_OUT
CSIH3RYO_ALT4_OUT
143
343
SENT5RX_ALT3_IN
FLX1TXENB_ALT2_OUT
144
344
HSURT2SCKI_ALT2_IN
SENT6RX_ALT3_IN
145
345
HSURT2SCKO_ALT2_OUT
ETH1MDC_ALT3_OUT
146
346
INTP9_ALT3_IN
FLX1RXDB_ALT2_IN
147
347
GTMAT2O3_ALT1_OUT
ETHCOL_ALT3_IN
148
348
HSURT2SDIO3I_ALT2_IN
MEMC0RD_BAR_ALT4_OUT
149
349
HSURT2SDIO3O_ALT2_OUT
FLX1TXDB_ALT3_OUT
150
350
HSURT2SDIO2I_ALT2_IN
ETHLINKSTA_ALT3_IN
151
351
HSURT2SDIO2O_ALT2_OUT
MEMC0WR_BAR_ALT4_OUT
152
352
SENT6SPCO_ALT3_OUT
ETH1RXDV_ALT3_IN
153
353
HSURT2SDIO1I_ALT2_IN
CSIH3CSS7_ALT3_OUT
154
354
HSURT2SDIO1O_ALT2_OUT
RLIN32RX_ALT4_IN
155
355
SENT7SPCO_ALT3_OUT
FLX1TXDA_ALT2_OUT
37
Chapter 8 Configuration Overview
Sl.No
Modes
Sl.No
Modes
156
356
GTMAT2O1N_ALT1_OUT
CSIH3CSS6_ALT3_OUT
157
357
HSURT2SDIO0I_ALT2_IN
RLIN32TX_ALT4_OUT
158
358
HSURT2SDIO0O_ALT2_OUT
FLX1TXENA_ALT2_OUT
159
359
GTMAT2O1_ALT1_OUT
CSIH3CSS5_ALT3_OUT
160
360
HSURT3SDIR_ALT4_OUT
MEMC0CS0_BAR_ALT4_OUT
161
FLX1RXDA_ALT2_IN
361
SENT0RX_ALT4_IN
162
INTP11_ALT3_IN
362
MEMC0D1I_ALT3_IN
163
363
CSIH3CSS4_ALT3_OUT
MEMC0D1O_ALT3_OUT
164
364
MEMC0CS1_BAR_ALT4_OUT
MTTCAN0EVT_ALT4_IN
165
365
ETH1WOL_ALT3_OUT
ETH1TXEN_ALT2_OUT
166
366
MEMC0CS2_BAR_ALT4_OUT
MEMC0D2I_ALT3_IN
167
367
FLX1STPWT_ALT3_IN
MEMC0D2O_ALT3_OUT
168
368
MEMC0CS3_BAR_ALT4_OUT
MTTCAN0SOC_ALT4_OUT
169
369
ETH1RXD3_ALT2_IN
ETH1TXD1_ALT2_OUT
170
370
MEMC0A1_ALT3_OUT
MEMC0D3I_ALT3_IN
171
371
CSIH3DCS_ALT4_IN
MEMC0D3O_ALT3_OUT
172
372
CSIH3SO_ALT4_OUT
MTTCAN0TMP_ALT4_OUT
173
373
ETH1RXD2_ALT2_IN
ETH1TXD2_ALT2_OUT
174
374
MEMC0A2_ALT3_OUT
MEMC0D4I_ALT3_IN
175
375
CSIH3SI_ALT4_IN
MEMC0D4O_ALT3_OUT
176
376
ETH1CRS_ALT2_IN
MTTCAN0RTP_ALT4_OUT
177
377
MEMC0A3_ALT3_OUT
GTMAT2O2_ALT1_OUT
178
378
CSIH3SSI_BAR_ALT4_IN
ETH1TXD3_ALT2_OUT
179
379
CSIH3CSS0_ALT4_OUT
MEMC0D5I_ALT3_IN
180
380
GTMAT2O3N_ALT1_OUT
MEMC0D5O_ALT3_OUT
181
381
ETH1RXER_ALT2_IN
GTMAT2O2N_ALT1_OUT
182
382
MEMC0A4_ALT3_OUT
ETH1TXER_ALT2_OUT
183
383
CSIH3SCI_ALT4_IN
MEMC0D6I_ALT3_IN
184
384
CSIH3SCO_ALT4_OUT
MEMC0D6O_ALT3_OUT
185
385
ETH1RXD1_ALT2_IN
ETH1MD1_ALT2_IN
186
386
MEMC0A5_ALT3_OUT
ETH1MDO_ALT2_OUT
38
Configuration Overview Ch apter 8
Sl.No
Modes
Sl.No
Modes
187
387
GTMT1I4_ALT1_IN
MEMC0D7I_ALT3_IN
188
388
ETH1RXD0_ALT2_IN
MEMC0D7O_ALT3_OUT
189
389
MEMC0A6_ALT3_OUT
SENT8SPCO_ALT4_OUT
190
390
ETH1RXCLK_ALT2_IN
SENT8RX_ALT4_IN
191
391
MEMC0A7_ALT3_OUT
RLIN33TX_ALT4_OUT
192
392
MCAN0TXFD_ALT4_OUT
RLIN33RX_ALT4_IN
193
393
ETH1TXCLK_ALT2_IN
SENT9SPCO_ALT4_OUT
194
394
MEMC0A8_ALT3_OUT
SENT9RX_ALT4_IN
195
395
MCAN0RXFD_ALT4_OUT
MCAN2TX_ALT2_OUT
196
396
ETH1REF50CK_ALT2_IN
MCAN2RX_ALT3_IN
197
397
FLSCI3RXD_ALT3_IN_SUPP_PFC_P
MEMC0D0I_ALT3_IN
MCSR
198
398
FLSCI3TXD_ALT3_OUT_SUPP_PFC_
MEMC0D0O_ALT3_OUT
PMCSR
199
399
MTTCAN0SWT_ALT4_IN
DIO_SUPP_PFC_PMCSR
200
ETH1TXD0_ALT2_OUT
39
Chapter 8 Configuration Overview
40
Messages Chapter 9
Chapter 9
Messages
The messages help to identify the syntax or semantic errors in the ECU
Configuration Description File. Hence it ensures validity and correctness of the
information available in the ECU Configuration Description File.
The following section gives the list of error, warning and information messages
displayed by the mcal code generator tool.
9.1 Error Messages
ERR_59_124_001: Parameter PortPinModeChangeable should not be
configured as true in the path /Renesas/EcucDefs_Port/Port0/
PortConfigSet0/PortGroup10/PortPin10 as the parameter
PortSetPinModeApi is set false.
This error occurs when ‘PortPinModeChangeable’ is set as true and
’PortSetPinModeApi’ is set as false
ERR_59_124_002: Number of fields is not same for the entity Structure
Port_GstConfiguration. At least one DNFA instance shall be configured in
in PortConfigSet0 across MultiConfigSet.
This error occurs when Number of fields is not same for the entity Structure
Port_GstConfiguration
ERR_59_124_003: PortGroup${GrpInst}0 is not configured in
PortConfigSet${ConfigSet}, PortGroups configured shall not be different
across MultiConfigSet.
This error occurs when any of the PortGroup is not configured and if
PortGroups configured different across MultiConfigSet
ERR_59_124_004: Configured PortPins of the PortGroup00 does not
match, PortPins of a PortGroup shall remain alike across MultiConfigSet.
This error occurs when PortPin not Present in a PortGroup, and if the PortPins
of a PortGroup different across MultiConfigSet
ERR_59_124_005: Number of fields is not same for the entity Structure
Port_GstConfiguration. At least one FCLA instance shall be configured in
PortConfigSet0 across MultiConfigSet.
This error occurs when Number of fields is not same for the entity Structure
‘’Port_GstConfiguration
ERR_59_124_006: Parameter PortPinDirectionChangeable should not be
configured as true in the Path Renesas/EcucDefs_Port/Port0/
PortConfigSet/PortGroup/PortPin, as parameter PortSetPinDirectionApi is
set false.
This error occurs when ‘PortPinDirectionChangeable’ is set as true and
’PortSetPinDirectionApi’ is set as false
ERR_59_124_007: Parameter PortPinDioAltModeChangeable should not
be configured as true in the path /Renesas/EcucDefs_Port/Port/
41
Chapter 9 Messages
PortConfigSet/PortGroup/PortPin, as parameter PortSetToDioAltModeApi
is set false.
This error occurs when ‘PortPinDioAltModeChangeable’ is set as true and’
PortSetToDioAltModeApi’ is set as false
ERR_59_124_009 : The value for parameter PortInputBufferControl of the
Port Group Container should not be configured as <true> in the path
/Renesas/EcucDefs_Port/Port/PortConfigSet/PortGroup/PortPin as the
value configured for parameter PortPinInitialMode of the same container
is configured as <PORT_PIN_OUT>.
This error occurs when ‘PortInputBufferControl’ is set as false and
’PortPinInitialMode’ is set as output mode.
ERR_59_124_010 : Value of the parameter PortPinInitialMode of Port
Group container Port Pin container support only
DIO_SUPP_PFCE_PMCSR mode in $PortPinPath, Hence the parameter
PortPinDioAltModeChangeable of same container shall not be configured
as <true>.
This error occurs when ‘PortPinInitialMode’ is set as
DIO_SUPP_PFCE_PMCSR and ’PortPinDioAltModeChangeable’ is set as true
ERR_59_124_011: $PortGrpShortNameCmp is repeated in
PortGroup${GrpInst} and PortGroup$ContInst.
This error occurs when ‘$PortGrpShortNameCmp is repeated in
PortGroup${GrpInst} and PortGroup$ContInst.
ERR_59_124_012: $PortShortNameCmp is repeated in
PortGroup${GrpInst} PortPin$PinInst and PortGroup$ContInst
PortPin$PinInstance.
This error occurs when $PortShortNameCmp is repeated in
PortGroup${GrpInst} PortPin$PinInst and PortGroup$ContInst
PortPin$PinInstance.
ERR_59_124_013: Parameter PortPinInitialMode of the container
PortGroup9 PortPin7 should not be configured as 'MCAN2TX_ALT2_OUT'
since the device $DeviceVariant does not support 'MCAN2TX_ALT2_OUT'
alternative mode.
This error occurs when PortDeviceName is R7F701372, and
PortPinInitialMode of the container PortGroup9 PortPin7 configured as
'MCAN2TX_ALT2_OUT'
ERR_59_124_014: The configured value of the parameter
'PortPinInitialMode' of the container
'PortGroup${GrpInst}0_PortPin${PinInst}' is incorrect, since the
parameter 'PortIpControl' is configured as <true> and 'PortPinInitialMode'
is configured as <$FullPortPinInitialMode>
This error occurs when parameter 'PortIpControl' is true and PortPinInitialMode
is not an alternative function of the Port IP Control Register
42
Messages Chapter 9
ERR_59_124_016: The value configured for the parameter
'PortWriteVerifyErrorInterface' should follow C Syntax <[a-zA-Z][a-zA-Z0-
9_]>.
This error occurs when the Port callback Notification function name for the
parameter 'PortWriteVerifyErrorInterface' is not followed the C Syntax <[a-zA-
Z][a-zA-Z0-9_]>.
ERR_59_124_017: The parameter '$paramlist' in the container
'PortConfigSet$ConfigSetCnt PortGroup${GrpInst}0 PortPin${PinInst}'
should be configured.
This error occurs when a particular parameter is not configured.
ERR_59_124_019: As write-verify check is enabled through the parameter
PortWriteVerify in PortGeneral container, PORT_E_REG_WRITE_VERIFY
in PortDemEventParameterRefs container should be configured.
This error occurs when the parameter PortWriteVerify is enabled in
PortGeneral and PORT_E_REG_WRITE_VERIFY in
PortDemEventParameterRefs container is not configured.
ERR_59_124_020: As write-verify check is enabled through the parameter
PortWriteVerify in PortGeneral container and
PortUseWriteVerifyErrorInterface is configured as true,
PortWriteVerifyErrorInterface should have valid error notification.
This error occurs when the parameter PortWriteVerify in PortGeneral container
and PortUseWriteVerifyErrorInterface is configured as true, but
PortWriteVerifyErrorInterface not have any valid error notification.
ERR_59_124_021 References path of Parameter
PORT_E_REG_WRITE_VERIFY $CbkPort_E_Reg_Verify is not correct in
PortDemEventParameterRefs container.
This error occurs when the incorrect Dem reference path is configured for
PORT_E_REG_WRITE_VERIFY parameter.
ERR_59_124_022: As write-verify check is disabled via the parameter
PortWriteVerify, PortUseWriteVerifyErrorInterface parameter should not
be configured as true in PortGeneral Container.
This error occurs when the write-verify check is disabled via the parameter
PortWriteVerify, and PortUseWriteVerifyErrorInterface parameter is not
configured as true in PortGeneral Container.
ERR_59_124_024: The Short name of 'PortGroup${GrpInst}0' container
should be same across all configuration sets.
This error occurs when the short name of the Port Group container is different
across the all configuration sets.
ERR_59_124_025: The Short name of 'PortGroup${GrpInst}0 ->
PortPin${PinInst}0' container should be same across all configuration
sets.
43
Chapter 9 Messages
This error occurs when the short name of the Port Pin is different across the all
configuration sets.
ERR_59_124_026: None of the Port Group is configured. At least any one
of the PORT GROUP should be configured.
This error occurs when none of the Port group is configured.
ERR_59_124_027: The parameters 'PortPullUpOption' and
'PortPullDownOption' from $PortPinPath container should not be
configured as <true> at the same time
This error occurs when both the parameters ‘PortPullUpOption’ and
'PortPullDownOption' configured as true.
ERR_59_124_028: The configured Device Name for parameter
PortDeviceName: '$DeviceVariant' in the container
$PortInstName/PortGeneral0 is invalid.
This error occurs when configured device variant name is incorrect.
ERR_59_124_029: The value for parameter
'PortSetPinDefaultDirectionApi' from PortGeneral0 container should not
be configured as <true> as the value for parameter
'PortSetPinDirectionApi' in the container PortGeneral0 is configured as
<false>.
Path:/Renesas/EcucDefs_Port/Port/PortGeneral0
This error occurs when configured 'PortSetPinDefaultDirectionApi' parameter is
true but ‘PortSetPinDirectionApi’ parameter is false in general container.
ERR_59_124_030: The value for parameter 'PortSetPinDefaultModeApi'
from PortGeneral0 container should not be configured as <true> as the
value for parameter 'PortSetPinModeApi' in the container PortGeneral0 is
configured as <false>.
Path:/Renesas/EcucDefs_Port/Port/PortGeneral0
This error occurs when configured 'PortSetPinDefaultModeApi' parameter is
configured as true but ‘'PortSetPinModeApi' parameter is false in general
container.
9.2 Warning Messages
WARNING_59_124_001: The parameter PortPinDirection of container
Port Group container should not be configured as <PORT_PIN_OUT> in
the path /Renesas/EcucDefs_Port/Port0/PortConfigSet/PortGroup/PortPin
, since the parameter PortPinInitialMode of the same Port Group
container is configured as an Input type mode. The value for parameter
PortPinDirection is considered as <PORT_PIN_IN>.
This warning occurs when PortPinDirection parameter is set as output and
PortPinInitialMode parameter is an input.
44
Messages Chapter 9
WARNING_59_124_002: The parameter PortPinDirection of container
Port Group container should not be configured as <PORT_PIN_IN> in the
path /Renesas/EcucDefs_Port/Port0/PortConfigSet/PortGroup/PortPin,
since the parameter PortPinInitialMode of the same Port Group container
is configured as an Output type mode. The value for parameter
PortPinDirection is considered as <PORT_PIN_OUT>.
This warning occurs when PortPinDirection parameter is set as an input and
PortPinInitialMode parameter is set as an output.
WARNING - Checksum incorrect message should be generated.
This Warning occurs when any vm file is corrupted.
9.3 Information Messages
None.
45
Chapter 9 Me ssages
46
Revision History
Sl.No. Description
Version
Date
1.
Draft Version
1.0.0
17-Aug-2015
2
The following changes are made:
1.0.1
05-Apr-2016
1. Compiler path modified in Section 9.3
2. R number is added in the last page.
3. Error and warning descriptions are added in section 10.1.1
3
The following changes are made:
1.0.2
09-Feb-2017
1. 10.1 Error Messages updated.
2. Chapter 3 Code Generation Overview updated for Port_Cbk.h file
3. Chapter 5 Output Files updated for Port_Cbk.h file
4. R number is updated in the last page
5. Updated Chapters 1,3,4,5,6,7 by rephrasing Tool and PORT
Driver Generation Tool with MCAL Code Generation Tool.
6. Updated description of Chapter1 introduction and table 1-1.
7. Updated table 2-1 Reference Documents.
8. Renamed the Chapter 3 heading as Code Generation Overview.
9. Updated the chapter 3 by adding a remark on MCAL Code
Generator Tool User manual and updated figure 3-2.
10. Added Remark in Chapter4.
11. Updated the Figure 8-1, Table 8-1 and 8-2.
12. Updated the format of Error/Warning/Information message in the
chapter Messages.
13. Removed Chapter 9 Generator Tool and chapter 11 Notes.
14. In Chapter 8, table 8-1 TRXML changed to ARXML abbreviation.
4
The following changes are made:
1.0.3
27-Apr-2017
1. ERR_59_124_029 and ERR_59_124_030 are updated in section
9.1
2. Notice and Copyright are updated.
3. R- Number is updated.
5.
Following change made:
1.0.4
16-Jun-2017
1. R-Number updated.
47
AUTOSAR MCAL R4.0.3 User's Manual
PORT Driver Component Ver.1.0.4
Generation Tool User's Manual
Publication Date: Rev.1.02, 16 June, 2017
Published by: Renesas Electronics Corporation

SALES OFFICES
http://www.renesas.com
Refer to "http://www.renesas.com/" for the latest and de tailed 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
© 2006-2017 Renesas Electronics Corporation. All rights reserved.
Colophon 4.1


AUTOSAR MCAL R4.0.3
User’s Manual
R20UT3654EJ0102
Document Outline
- Chapter 1 Introduction
- Chapter 2 Reference
- Chapter 3 Code Generation Overview
- Chapter 4 Input Files
- Chapter 5 Output Files
- Chapter 6 Precautions
- Chapter 7 User Configuration Validation
- Chapter 8 Configuration Overview
- Chapter 9 Messages