使用S32K312调试FS23示例,编译时报错文件未找到,是否因为缺少配置

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

使用S32K312调试FS23示例,编译时报错文件未找到,是否因为缺少配置

Jump to solution
1,187 Views
Maker007
Contributor III

 

微信图片_20250224150825.png微信图片_20250224150737.png

0 Kudos
Reply
1 Solution
1,147 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

如果使用的是MCAL里的Sbc_fs23 component, 那么这些都是MCAL里的Spi component自动生成的:
Sbc_fs23_example_HLD_S32K344\RTD\include\Spi.h
Sbc_fs23_example_HLD_S32K344\generate\include\Spi_Cfg.h

但是你这个例子使用的是Drivers里的Sbc_fs23_Ip,Drivers里的Lpspi component没生成这些文件。

View solution in original post

0 Kudos
Reply
3 Replies
1,165 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

这在之前有讨论过: https://community.nxp.com/t5/S32K/fs23/td-p/1986550

1.  Sbc_fs23_Ip S32K3xx FS23 SBC AUTOSAR R21-11 Version 0.9.0里没法用,推荐使用FS23 SBC AUTOSAR R21-11 Version 1.0.0 + S32K3 RTD 4.0.0. 

2. Sbc_fs23_Ip的例子没有提供。

抱歉给你带来不便。

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,161 Views
Maker007
Contributor III
hi
我使用的是FS23 SBC AUTOSAR R21-11 Version 1.0.0 + S32K3 RTD 4.0.0.
我没有使用官网提供的示例,使用的是第三方的示例,但是显示缺少Spi.h、Spi_Cfg.h等等,我想知道这个是工具自动生成的还是我需要指定头文件目录才能链接。
0 Kudos
Reply
1,148 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

如果使用的是MCAL里的Sbc_fs23 component, 那么这些都是MCAL里的Spi component自动生成的:
Sbc_fs23_example_HLD_S32K344\RTD\include\Spi.h
Sbc_fs23_example_HLD_S32K344\generate\include\Spi_Cfg.h

但是你这个例子使用的是Drivers里的Sbc_fs23_Ip,Drivers里的Lpspi component没生成这些文件。

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2049676%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EWhen%20using%20S32K312%20to%20debug%20FS23%20example%2C%20the%20error%20file%20is%20not%20found%20when%20compiling.%20Is%20it%20because%20of%20the%20lack%20of%20configuration%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2049676%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150825.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150825.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F325300iEEBA708BCF58F233%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150825.png%22%20alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150825.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150737.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150737.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F325301i38486D77DD21F1D0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150737.png%22%20alt%3D%22%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20250224150737.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2050424%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20S32K312%20to%20debug%20FS23%20example%2C%20compile%20error%20file%20not%20found%2C%20is%20it%20because%20of%20missing%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2050424%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EIf%20you%20are%20using%20the%20%3CSTRONG%3ESbc_fs23%3C%2FSTRONG%3E%20component%20in%20MCAL%2C%20these%20are%20automatically%20generated%20by%20%3CSTRONG%3Ethe%20Spi%3C%2FSTRONG%3E%20component%20in%20MCAL%3A%3CBR%20%2F%3E%20Sbc_fs23_example_HLD_S32K344%5CRTD%5Cinclude%5CSpi.h%3CBR%20%2F%3ESbc_fs23_example_HLD_S32K344%5Cgenerate%5Cinclude%5CSpi_Cfg.h%3C%2FP%3E%0A%3CP%3EBut%20your%20example%20uses%20%3CSTRONG%3ESbc_fs23_Ip%3C%2FSTRONG%3E%20in%20Drivers%2C%20and%20%3CSTRONG%3ELpspi%3C%2FSTRONG%3E%20component%20in%20Drivers%20does%20not%20generate%20these%20files.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2050391%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20S32K312%20to%20debug%20FS23%20example%2C%20compile%20error%20file%20not%20found%2C%20is%20it%20because%20of%20missing%20configuration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2050391%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3Ehi%3CBR%20%2F%3E%20I%20am%20using%20FS23%20SBC%20AUTOSAR%20R21-11%20Version%201.0.0%20%2B%20S32K3%20RTD%204.0.0.%3CBR%20%2F%3E%20I%20did%20not%20use%20the%20examples%20provided%20by%20the%20official%20website%2C%20but%20used%20third-party%20examples.%20However%2C%20it%20shows%20that%20Spi.h%2C%20Spi_Cfg.h%2C%20etc.%20are%20missing.%20I%20want%20to%20know%20whether%20this%20is%20automatically%20generated%20by%20the%20tool%20or%20I%20need%20to%20specify%20the%20header%20file%20directory%20before%20linking.%3C%2FLINGO-BODY%3E