Error while building sample application for MCAL Autosar 4.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error while building sample application for MCAL Autosar 4.0

3,132 Views
smuley
Contributor III

Hello,

I was trying to run the sample application provided by NXP with the download of the Autosar MCAL 4.0. I have installed the EB Tresos and then the MCAL software from NXP. i tried following the steps in the video here: https://www.nxp.com/video/introduction-to-nxp-autosar-mcal-software:AUTOSAR-OnDemand-Training-Video. But i am getting the error mentioned below:

15:13:57 **** Build of configuration Default for project MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application ****
launch.bat TOOLCHAIN=diab
C:/gnuwin32/bin/make.exe -f makefile TOOLCHAIN=diab
Using diab toolchain: TOOLCHAIN_DIR= C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application/make/diab
Running for 5744P derivative, on 574xP platform
---------------------------------------------------------------------------------
C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application/make/diab/WIN32/bin/dcc.exe -tPPCE200Z4204N3VEN:simple -DMPC5744P -g3 -W:as:,-l -DDERIVATIVE_5744P -DDIAB -DAUTOSAR_OS_NOT_USED -DEU_DISABLE_ANSILIB_CALLS -Xdialect-ansi -XO -Xsize-opt -Xsmall-data=0 -Xno-common -Wa,-Xisa-vle -Xdebug-dwarf2 -Xdebug-local-all -Xdebug-local-cie -Xdebug-struct-all -Xforce-declarations -Xmacro-undefined-warn -ee1481 -Xnested-interrupts -Xaddr-sconst=0x11 -Xaddr-sdata=0x11 -Xlink-time-lint -DMCAL_CER_VALIDATION -DFILE_BASENAME=Startup_vle -c ./toolchains/Startup_vle.c -I./cfg/include -I./include -IC:/EB/tresos/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Adc_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Base_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Can_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/CanIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Det_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Dem_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Dio_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/EcuM_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Fee_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Fls_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Gpt_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Icu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Lin_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/LinIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Mcl_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/MemIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Port_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Pwm_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Rte_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Spi_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Wdg_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/WdgIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/CanIf_TS_T2D30M20I2R0/include -o ./bin/Startup_vle.o
process_begin: CreateProcess(NULL, C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application/make/diab/WIN32/bin/dcc.exe -tPPCE200Z4204N3VEN:simple -DMPC5744P -g3 -W:as:,-l -DDERIVATIVE_5744P -DDIAB -DAUTOSAR_OS_NOT_USED -DEU_DISABLE_ANSILIB_CALLS -Xdialect-ansi -XO -Xsize-opt -Xsmall-data=0 -Xno-common -Wa,-Xisa-vle -Xdebug-dwarf2 -Xdebug-local-all -Xdebug-local-cie -Xdebug-struct-all -Xforce-declarations -Xmacro-undefined-warn -ee1481 -Xnested-interrupts -Xaddr-sconst=0x11 -Xaddr-sdata=0x11 -Xlink-time-lint -DMCAL_CER_VALIDATION -DFILE_BASENAME=Startup_vle -c ./toolchains/Startup_vle.c -I./cfg/include -I./include -IC:/EB/tresos/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Adc_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Base_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Can_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/CanIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Det_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Dem_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Dio_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/EcuM_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Fee_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Fls_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Gpt_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Icu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Lin_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/LinIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Mcl_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/MemIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Port_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Pwm_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Rte_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Spi_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/Wdg_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/WdgIf_TS_T2D30M20I2R0/include -IC:/EB/tresos/plugins/CanIf_TS_T2D30M20I2R0/include -o ./bin/Startup_vle.o, ...) failed.
make (e=2): The system cannot find the file specified.

make.exe: *** [Startup_vle.o] Error 2

15:13:57 Build Finished (took 319ms)

pastedImage_1.png

I followed all the steps exactly as mentioned bu am unable to build the project and dont know if there are additional setting that need to be done.

Can someone help me with this? Any help is appreciated.

Thanks.

0 Kudos
5 Replies

2,497 Views
stanish
NXP Employee
NXP Employee

Hi,

It seems like Diab toolchain (dcc.exe compiler) cannot find a valid license.

Could you possibly try to add environment variable "WRSD_License_File" that contains path to the .lic  file

stanish_1-1612950906566.png

Hope it helps.

Stan

 

0 Kudos

2,694 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm not much familiar with IAR and AUTOSAR, but it looks that dcc.exe -C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application/make/diab/WIN32/bin/dcc.exe  

is probably not present in path specified above. 

2,694 Views
smuley
Contributor III

Thanks for your response Jiri. I fixed that and now S32 begins building. But now i am getting the following error message. The error message says that it is a license error but i am sure i installed the diab license correctly. Is there any other settting or  parameter change that needs to be done?

10:02:13 **** Build of configuration Default for project MPC574XP_MCAL4_0_RTM_2_0_2_Sample_Application ****
launch.bat TOOLCHAIN=diab
C:/gnuwin32/bin/make.exe -f makefile TOOLCHAIN=diab
Using diab toolchain: TOOLCHAIN_DIR= C:/WindRiver/compilers/diab_5.9.6.2
Running for 5744P derivative, on 574xP platform
---------------------------------------------------------------------------------
C:/WindRiver/compilers/diab_5.9.6.2/WIN32/bin/dcc.exe -tPPCE200Z4204N3VEN:simple -DMPC5744P -g3 -W:as:,-l -DDERIVATIVE_5744P -DDIAB -DAUTOSAR_OS_NOT_USED -DEU_DISABLE_ANSILIB_CALLS -Xdialect-ansi -XO -Xsize-opt -Xsmall-data=0 -Xno-common -Wa,-Xisa-vle -Xdebug-dwarf2 -Xdebug-local-all -Xdebug-local-cie -Xdebug-struct-all -Xforce-declarations -Xmacro-undefined-warn -ee1481 -Xnested-interrupts -Xaddr-sconst=0x11 -Xaddr-sdata=0x11 -Xlink-time-lint -DMCAL_CER_VALIDATION -DFILE_BASENAME=Adc -c C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Adc_TS_T2D30M20I2R0/src/Adc.c -I./cfg/include -I./include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Adc_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Base_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Can_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/CanIf_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Det_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Dem_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Dio_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/EcuM_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Fee_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Fls_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Gpt_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Icu_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Lin_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/LinIf_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Mcl_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Mcu_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/MemIf_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Port_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Pwm_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Rte_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Spi_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Wdg_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/WdgIf_TS_T2D30M20I2R0/include -IC:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/CanIf_TS_T2D30M20I2R0/include -o ./bin/Adc.o
"C:/NXP/AUTOSAR/MPC574XP_MCAL4_0_RTM_2_0_2/eclipse/plugins/Adc_TS_T2D30M20I2R0/src/Adc.c", line 5388: fatal error (dcc:1635): License error: Unknown LMAPI error
make.exe: *** [Adc.o] Error 1

10:02:22 Build Finished (took 8s.813ms)

pastedImage_3.png

0 Kudos

2,694 Views
610097630
Contributor I

Hello,

Do you solve your problem? I get a same error, "fatal error (dcc:1635): License error: Unknown LMAPI error "

0 Kudos

2,531 Views
lubo_NEW
Contributor III

How did you resolve the error

0 Kudos