Mcu_* files are not generated

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

Mcu_* files are not generated

跳至解决方案
2,778 次查看
s32k3_newbie
Contributor III

Hi,

I added Mcu driver and Rte_Mcu utilities but the following files are not generated even if "Update Code".

Mcu_Cfg.h

Mcu_PBcfg.h

Mcu_Cfg.c

Mcu_PBcfg.c

 

In file included from ../RTD/src/Mcu.c:51:
../RTD/include/Mcu.h:55:10: fatal error: Mcu_Cfg.h: No such file or directory
   55 | #include "Mcu_Cfg.h"
      |          ^~~~~~~~~~~
compilation terminated.
arm-none-eabi-gcc "@RTD/src/Clock_Ip.args" -MMD -MP -MF"RTD/src/Mcu_Ipw.d" -MT"RTD/src/Mcu_Ipw.o" -o "RTD/src/Mcu_Ipw.o" "../RTD/src/Mcu_Ipw.c"
Invoking: Standard S32DS C Compiler
make: *** [RTD/src/subdir.mk:158: RTD/src/Mcu.o] Error 1
make: *** Waiting for unfinished jobs....
arm-none-eabi-gcc "@RTD/src/Clock_Ip.args" -MMD -MP -MF"RTD/src/OsIf_Interrupts.d" -MT"RTD/src/OsIf_Interrupts.o" -o "RTD/src/OsIf_Interrupts.o" "../RTD/src/OsIf_Interrupts.c"
Finished building: ../RTD/src/Igf_Port_Ip.c
Finished building: ../RTD/src/Dio_Ipw.c
In file included from ../RTD/src/Mcu_Dem_Wrapper.c:46:
../RTD/include/Mcu_Dem_Wrapper.h:50:10: fatal error: Mcu_Cfg.h: No such file or directory
   50 | #include "Mcu_Cfg.h"
      |          ^~~~~~~~~~~
compilation terminated.
 
make: *** [RTD/src/subdir.mk:156: RTD/src/Mcu_Dem_Wrapper.o] Error 1
 
In file included from ../RTD/include/Mcu_Ipw.h:51,
                 from ../RTD/src/Mcu_Ipw.c:48:
../RTD/include/Mcu_Ipw_Types.h:52:10: fatal error: Mcu_Cfg.h: No such file or directory
   52 | #include "Mcu_Cfg.h"
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [RTD/src/subdir.mk:156: RTD/src/Mcu_Ipw.o] Error 1
Finished building: ../RTD/src/OsIf_Interrupts.c
 
"make -j8 all" terminated with exit code 2. Build might be incomplete.

14:44:11 Build Failed. 7 errors, 0 warnings. (took 6s.24ms)

 

 

标记 (1)
0 项奖励
回复
1 解答
2,588 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @s32k3_newbie

After following your steps, I can add the components, and compile the project:

Julin_AragnM_0-1749746317607.pngJulin_AragnM_1-1749746318822.pngJulin_AragnM_2-1749746337488.pngJulin_AragnM_3-1749746348893.png

Are you using RTD 3.0.0, and installed all of the packages, as shown in the getting started guide? 

Best regards,
Julián

 

在原帖中查看解决方案

0 项奖励
回复
6 回复数
2,603 次查看
s32k3_newbie
Contributor III

Steps:

File -> New -> S32DS Application Project

Manage SDK Components

s32k3_newbie_0-1749684613235.png

Tick the following driver:

Det, Dio, Mcu, Port, Siul2_Dio, Siul2_Port, clock, osif

Click OK

Update Code

 

 

0 项奖励
回复
2,589 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @s32k3_newbie

After following your steps, I can add the components, and compile the project:

Julin_AragnM_0-1749746317607.pngJulin_AragnM_1-1749746318822.pngJulin_AragnM_2-1749746337488.pngJulin_AragnM_3-1749746348893.png

Are you using RTD 3.0.0, and installed all of the packages, as shown in the getting started guide? 

Best regards,
Julián

 

0 项奖励
回复
2,534 次查看
s32k3_newbie
Contributor III
Thanks Julian! The missing step was the configuration of Components and Peripherals. I was able to replicate the Port_Example now. Thanks!
2,757 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @s32k3_newbie,

I think the issue may be in configuration before generating the files, specifically with the RTE component.

The functions inside RTE package from the RTDs are provided by NXP as stubs for AUTOSAR SchM integration. If you are targeting AUTOSAROS, these will need to be replaced by the BSW integrator with a third-party vendor (be it Vector, Elektrobit, etc.). 

Are you using an example? Or creating a project from scratch?

Best regards,
Julián.

2,746 次查看
s32k3_newbie
Contributor III

I'm trying to create a new project bare metal, i.e. without OS. I was trying to replicate the example in getting-started-with-s32k396-bga-dc1-evaluation-board:GS-S32K396-BGA-DC1 . I checked which drivers I need to add from that example.

0 项奖励
回复
2,678 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @s32k3_newbie

The example from the Getting Started guide is Port_Example_s32K396. After importing it, I can see the only drivers needed are Dio, Mcu and Port:

Julin_AragnM_0-1749232942054.pngJulin_AragnM_1-1749232951592.png

After updating the code, I can build the example correctly.

Julin_AragnM_3-1749233048330.png

Could you share your steps for replicating the project? 

Best regards,
Julián

0 项奖励
回复