s32k148的example的can问题

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

s32k148的example的can问题

Jump to solution
2,714 Views
haha_123456
Contributor I

Hi everyone,

我直接使用 example里面的demo程序,

haha_123456_0-1724403348723.png

更新了对应的引脚

haha_123456_1-1724404392636.png

编译后会报错

Building file: ../RTD/src/Power_Ip.c
../board/Port_Ci_Port_Ip_Cfg.h:47:10: fatal error: Port_Ci_Port_Ip_Types.h: No such file or directory
47 | #include "Port_Ci_Port_Ip_Types.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Invoking: Standard S32DS C Compiler
Invoking: Standard S32DS C Compiler
make: *** [board/subdir.mk:20: board/Port_Ci_Port_Ip_Cfg.o] Error 1
arm-none-eabi-gcc "@RTD/src/Can_43_FLEXCAN.args" -MMD -MP -MF"RTD/src/Platform.d" -MT"RTD/src/Platform.o" -o "RTD/src/Platform.o" "../RTD/src/Platform.c"
make: *** Waiting for unfinished jobs....
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@RTD/src/Can_43_FLEXCAN.args" -MMD -MP -MF"RTD/src/Power_Ip.d" -MT"RTD/src/Power_Ip.o" -o "RTD/src/Power_Ip.o" "../RTD/src/Power_Ip.c"
arm-none-eabi-gcc "@RTD/src/Can_43_FLEXCAN.args" -MMD -MP -MF"RTD/src/Platform_Ipw.d" -MT"RTD/src/Platform_Ipw.o" -o "RTD/src/Platform_Ipw.o" "../RTD/src/Platform_Ipw.c"
Finished building: ../RTD/src/OsIf_Interrupts.c
Finished building: ../RTD/src/OsIf_Timer_System.c


Finished building: ../RTD/src/OsIf_Timer.c
Finished building: ../RTD/src/OsIf_Timer_System_Internal_Systick.c


Finished building: ../RTD/src/Power_Ip.c

Finished building: ../RTD/src/Platform_Ipw.c
Finished building: ../RTD/src/Platform.c


"make -j12 all" terminated with exit code 2. Build might be incomplete.

17:13:47 Build Failed. 3 errors, 0 warnings. (took 1s.491ms)

对应的example看附件,

为什么例程卉报错,怎么解决?

 

 

0 Kudos
Reply
1 Solution
2,595 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @haha_123456,

I have installed the RTD 2.0.0 P04 for S32K1xx.

Julin_AragnM_0-1724783471252.png

Could it be a faulty installation? Maybe try to re install the RTD package without the P04 update (only RTD 2.0.0).

Best regards,
Julián

 

View solution in original post

0 Kudos
Reply
6 Replies
2,605 Views
haha_123456
Contributor I

@Julián_AragónM   您好, 我使用您的包编译也是会报错,您使用的SDK是什么版本?

0 Kudos
Reply
2,596 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @haha_123456,

I have installed the RTD 2.0.0 P04 for S32K1xx.

Julin_AragnM_0-1724783471252.png

Could it be a faulty installation? Maybe try to re install the RTD package without the P04 update (only RTD 2.0.0).

Best regards,
Julián

 

0 Kudos
Reply
2,552 Views
haha_123456
Contributor I

@Julián_AragónM @   Thank you very much

我重新建立了一个project ,把demo的代码移过来,编译成功了!

0 Kudos
Reply
2,681 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @haha_123456,

Could you try reinstalling the RTD package? It seems your project is corrupt since I'm not even able to open correctly the "main.c" file. I am able to import and compile the project following your steps as well:

Julin_AragnM_0-1724436615187.png

Best regards,
Julián

0 Kudos
Reply
2,660 Views
haha_123456
Contributor I

@Julián_AragónM  不好意思我这边是因为公司的系统原因,导致文件出异常了 ,您能把您这边的example发给我尝试一下吗?

0 Kudos
Reply
2,632 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @haha_123456

Sure, attached is the example which compiled successfully. 

Best regards,
Julián

0 Kudos
Reply