code compile errors with EB 27 for RTD 0.9x

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

code compile errors with EB 27 for RTD 0.9x

3,022 次查看
bowen_gu
Contributor I

I'm building my development for S32K344 with EB, there is a fetal error when building ADC example.

C:\NXP\SW32K3_RTD_4.4_0.9.0_P02\eclipse\plugins\Adc_TS_T40D34M9I0R0\examples\EBT\Adc_example_EBT>make build
======================================================================
Creating directory for object files
Compiling src/main.c
In file included from C:/NXP/SW32K3_RTD_4.4_0.9.0_P02/eclipse/plugins/Base_TS_T40D34M9I0R0/include/Mcal.h:66,
                 from C:/NXP/SW32K3_RTD_4.4_0.9.0_P02/eclipse/plugins/Adc_TS_T40D34M9I0R0/include/Adc.h:44,
                 from src/main.c:26:
C:/NXP/SW32K3_RTD_4.4_0.9.0_P02/eclipse/plugins/Base_TS_T40D34M9I0R0/include/OsIf_Internal.h:46:10: fatal error: OsIf_Cfg.h: No such file or directory
   46 | #include "OsIf_Cfg.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:232: main.o] Error 1

the project_parameters.mk configuratino as below:

#The path to the GCC instalation dir
GCC_DIR = C:/NXP/S32DS.3.4/S32DS/build_tools/gcc_v9.2/gcc-9.2-arm32-eabi

#The path to the EB Tresos instalation dir
TRESOS_DIR = C:/EB/tresos

#The path to the T32 instalation dir
T32_DIR = D:/Build_tools

#The path to the Tresos plugins directory
PLUGINS_DIR = C:/NXP/SW32K3_RTD_4.4_0.9.0_P02/eclipse/plugins

#The paths to the additional directories to be included at build phase
ADDITIONAL_INCLUDE_DIRS = 

#Example specific parameters - do not modify 

#MCAL modules used
MCAL_MODULE_LIST := Adc Base Det EcuC Mcu Os Rte Platform

#The package name for the MCAL release
AR_PKG_NAME = TS_T40D34M9I0R0

#The derivative of the device
EXAMPLE_DERIVATIVE = 

#The nanme of the elf file
ELFNAME = main

#The test base address 
TEST_BASE_ADDR = 0x20430000

#The name of the Tresos project 
TRESOS_PROJECT_NAME = Adc_example_EBT
#The number of variants for the Tresos project 
VARIANT_NO = 1

I have modified variants GCC_DIR PLUGINS_DIR TRESOS_DIR and don't change the other part.

I'd like to know what went wrong. 

Thanks!

 

0 项奖励
回复
8 回复数

2,976 次查看
bowen_gu
Contributor I

Hi Hung,

I copied source files generated by EB to the example directory, I could build the project successfully.

My understanding is: EB is just used to generate code, we need to copy these generated files into a project if we use "make" to build project.

Is it right?

0 项奖励
回复

2,969 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @bowen_gu 

 

My understanding is: EB is just used to generate code, we need to copy these generated files into a project if we use "make" to build project.

Is it right?

Actually, user don't need to do it. The EB project in the example is created to generate code in the Generated folder. I think that you have done some change/modification with the EB project in the example.

 

Best regards,

Hung

 

0 项奖励
回复

2,964 次查看
bowen_gu
Contributor I

Hi Hung,

I didn't change any configuration except project_parameters.mk.

the code default generated path  as below:

bowen_gu_1-1637290569625.png

Maybe, I need to modify this path to point the ADC example project  and build directly without any change.

0 项奖励
回复

2,990 次查看
bowen_gu
Contributor I

Hi Hung,

 Please see the attachment.

I will check the RTD 1.0 version later.

Thanks!

0 项奖励
回复

2,987 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hi @bowen_gu ,

 

I checked you project and I do not see any configuration file. Could you please add them.

hungnguyenphi_0-1637232484977.png

 

Best regards,

Hung

0 项奖励
回复

2,997 次查看
bowen_gu
Contributor I

Hi Hung,

I have generated conguration with EB before building.

0 项奖励
回复

2,992 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hello @bowen_gu ,

 

Please share this example project, so I can try to check it

 

Best regards,

Hung

0 项奖励
回复

3,001 次查看
hungnguyenphi
NXP Employee
NXP Employee

Hi @bowen_gu 

Could you please check if you have generated configuration for the project.

Please also use the newest RTD version RTM 1.0.0 instead.

Best regards,

Hung

0 项奖励
回复