An error occurred when configuring the port module in MCAL in S32DS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

An error occurred when configuring the port module in MCAL in S32DS

1,747件の閲覧回数
lubo_NEW
Contributor III

How to solve the error of MCAL compilation in S32DS environment, as shown in the figure.
The inc file SRC file in the output generated by PORT module is configured in EB environment and added to the S32DS project.
Error: "port" is not defined but it is defined in the fileQQ图片20210310131750.png

0 件の賞賛
返信
11 返答(返信)

1,727件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

It looks weird... Please share with me your project, I will take a look in my site.

0 件の賞賛
返信

1,719件の閲覧回数
lubo_NEW
Contributor III

It has been shared, please have a look

0 件の賞賛
返信

1,725件の閲覧回数
lubo_NEW
Contributor III
 
0 件の賞賛
返信

1,700件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

I see you're setting the PRECOMPILE configuration as STD_OFF:

namnguyenviet_0-1615442719464.png

However, in Port_Cfg.c, the condition to verify PRECOMPILE will be failed (it checks whether the PRECOMPILE is ON), so all of the objects will not be compiled:

namnguyenviet_1-1615442845989.png

So you need to add Port_PBCfg.c to have these objects compiled.

0 件の賞賛
返信

1,697件の閲覧回数
lubo_NEW
Contributor III

Thanks for the reply, it has been solved, but in the MCAL library Port_PBcfg.What's the difference between port_pbcfg.c and the soft-generated port_pbcfg.c

QQ图片20210311143921.png

0 件の賞賛
返信

1,694件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hello,

The generate_PB is the template code for Post-build generation, i.e. PORT_PRECOMPILE_SUPPORT     is (STD_OFF), while the generate_PC is the template code for Pre-compile generation, i.e. PORT_PRECOMPILE_SUPPORT  is (STD_ON). You only choose one of these types (Post-build/Pre-compile) when choosing the EB configuration, however you can include both of these two generated source files (Port_PBCfg.c, Port_Cfg.c) when integrate.

0 件の賞賛
返信

1,733件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Is this Port_Cfg.c is compiled, and the object, e.g. Port_Cfg.o is generated in the output folder? 

0 件の賞賛
返信

1,730件の閲覧回数
lubo_NEW
Contributor III

QQ图片20210310154048.pngQQ图片20210310154421.png

Yes, please have a look at the picture

0 件の賞賛
返信

1,740件の閲覧回数
namnguyenviet
NXP Employee
NXP Employee

Hi,

These symbols are defined in MCAL Port generation file, e.g. Port_Cfg.c. So you might need to add the generated source files in the list of source files to be compiled in S32DS project.

0 件の賞賛
返信

1,736件の閲覧回数
lubo_NEW
Contributor III

QQ图片20210310153119.png

This file is in the original text and is also defined

0 件の賞賛
返信

1,737件の閲覧回数
lubo_NEW
Contributor III

QQ图片20210310152357.png

 

Thanks for your reply. Files generated by EB and installed in MCAL have been added

0 件の賞賛
返信