NXPAutosarSetup EB - MCAL S32K14x

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Guide to Setup NXP AutoSAR MCAL

Development Environment
Tony Zhang, jianlong.zhang@nxp.com

This guide helps you to setup development environment for S32K14x


AUTOSAR 4.2 MCAL RTM 1.0.0. Other MCAL package may be different on
EB Tresos version or compiler version. Please read Release Note of each
MCAL package for detailed information.

How to Get NXP S32K MCAL Evaluation Version:


1. Go to NXP S32K Website
https://www.nxp.com/cn/products/processors-and-microcontrollers/arm-based-
processors-and-mcus/s32-automotive-platform/32-bit-automotive-general-purpose-
microcontrollers:S32K?tab=Design_Tools_Tab
2. Download S32K MCAL for evaluation

3. Log in with your own NXP account


4. You can see available SW and configuration tools
5. Read the software agreement and click “I AGREE” before downloading the SW

6. Download S32K14X_MCAL4_2_RTM_1_0_0 and S32K14X_MCAL4_2_HF2_RTM_1_0_0


a) S32K14X_MCAL4_2_RTM_1_0_0: Major Version, contains MCAL and Sample
Application
b) S32K14X_MCAL4_2_HF2_RTM_1_0_0: Hot Fix (HF) Version, contains MCAL
Required software and files:
1. EB Tresos Studio 23.0.0 b170330-0431 (Eval license file, 3 months)
Get it from NXP website account after you have the MCAL evaluation license. Activation
code will be shown on your download page.
[NOTE] EB Tresos Studio 23.0.0 only supports Windows 64-bit. It will be failed on
Windows 32-bit.

2. EB Client License Administrator


Get it from EB Tresos 21.0.0 download page.

3. Supported Compiler:
 IAR: V8.11.1
 Green Hills Multi 7.1.4 / Compiler 2017.1.4
 GCC ARM Embedded 6.3.1 20170620
4. NXP S32K14X_MCAL4_2_RTM_1_0_0 for S32K14x,
 S32K14X_MCAL4_2_RTM_1_0_0.exe
 Eval license file: xxxx.dat
Get it from NXP website account after you have the MCAL evaluation license.
5. NXP Autosar OS for S32K14x
There is no Autosar 4.2 OS available for S32K14x. Below shows S32K14x Autosar 4.0
package for example.
 S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0.exe
 Eval license file: xxxx.dat
Get it from NXP website account after you have the OS evaluation license.

Detail Steps:

1. EB-Tresos:
 Install EB Tresos Studio to “C:\Freescale\EB\tresos\tresos_23_0_0” or any other path,
but please note “blank” is not recommended.
 Install EB Client License Administrator, and enter your activation code on it. EB license
expired date may be not aligned with MCAL license expired date, the Client License
Administrator is also allowed user to update license. More information, please refer to
EB_tresos_installation_guide.pdf.
2. MCAL:
 Install S32K14x MCAL to “C:\NXP\AUTOSAR\S32K14X_MCAL4_2_RTM_1_0_0” or any
other path, but please not “blank” is not recommended.
 License file please refer to “xxxx.dat”.

 Enter EB Tresos install dir: “C:\Freescale\EB\tresos\tresos_23_0_0” or your specific


path.
 After MCAL installation, you should make sure that all plug-ins locate in below
folder: “C:\NXP\AUTOSAR\S32K14X_MCAL4_2_RTM_1_0_0\eclipse\plugins”

 Also please double check that in EB tresos folder, we expect link files under “C:\
Freescale\EB\tresos\tresos_23_0_0\links” like below:

 Please add them by yourself if you cannot find them in folder links. Content of each
link file should look like below.
Please note slash here is “/”, not “\”. And “eclipse/plugins” is not required.
o Content of MCAL link file:
“path=C:/NXP/AUTOSAR/ S32K14X_MCAL4_2_RTM_1_0_0”.
o Content of OS link file:
“path=C:/Freescale/AUTOSAR/ S32K_AUTOSAR_OS_4_0_98_RTM_1_0_0
/os_ts”.
MCAL Sample Project
 There is an example project in MCAL installed folder named
“S32K14X_MCAL4_2_RTM_1_0_0_Sample_Application”

 Detail info regarding this demo project please refer to doc under this folder:
doc\MCAL_IntegrationApplication.pdf

 You should modify Launch.bat to add the path of your configuration tool, compiler,
and MCAL installation folder. Please don’t use “blank” in your path.
 MAKE_DIR specifies make.exe to launch the make command. You can use the one
in S32 Design Studio or EB Tresos Studio 14.2.1, for example:
SET MAKE_DIR=C:/Freescale/S32DS_ARM_v2.0/utils/msys32/usr
SET MAKE_DIR=C:/Freescale/EB/tresos/Studio14.2.1
 Below is an example:
Compile using IAR toolchain
 According to MCAL release note, IAR toolchain version for
S32K14x_MCAL4_2_RTM1_0_0 is IAR v8.11.1

 Make sure that your IAR_DIR setting in ‘launch.bat’ is correct.


 Run “cmd” and enter into
“C:\NXP\AUTOSAR\S32K14x_MCAL4_2_RTM_1_0_0\ S32K14x_MCAL4_2_RTM_1_0_0_Sample_Application ”

 If no error, "sample_app_mcal.elf" is generated in folder "bin"


Compile using ARM GCC toolchain and debug using S32DS
 According to MCAL release note, GCC toolchain version for
S32K14x_MCAL4_2_RTM1_0_0 is GCC ARM Embedded 6.3.1 20170620

 Download GCC ARM Embedded Toolchain


https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
Or, using Baidu Cloud links
o 链接:https://pan.baidu.com/s/1nvOKbCt 密码:9wul

 Run launch.bat to build the project. If no error, "sample_app_mcal.elf" is generated


in folder "bin"
 Download and debug with S32 Design Studio
NOTE:
The sample application is configured as RUN in USER MODE. If you want to RUN in
SUPERVISOR MODE, all drivers that need to be executed in this mode should have the "Enable
User Mode Support" parameter set to 'False' and their configuration files regenerated from
Tresos.

You might also like