S32K344 Example Not working, Unresolved inclusions

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

S32K344 Example Not working, Unresolved inclusions

跳至解决方案
2,291 次查看
pb632146
Contributor V

I am trying to use the Emios_Icu_Ip_BlinkLED and DIO_Example_S32K344  examples fond in S32K3xx AUTOSAR 4.4 - R21-11 RTD 3.0.0 D23 for really simple led blinking, but I am running into the issue of unresolved inclusions for the libraries within.

pb632146_1-1721857242713.png

 

pb632146_0-1721856680035.png

I can see the files in \NXP\S32DS.3.5\eclipse\mcu_data\components\PlatformSDK_S32K3\ but they just do not seem to be including after code generation, what should I do?

0 项奖励
回复
1 解答
2,228 次查看
pb632146
Contributor V

Found the issue, when trying to remake the example for the K342, the peripherals by default only had siul2 port by default which made only some of the headers valid after code generation which confused me, using the Siul2_dio_ip_Example_S32k344 example and manually adding the siul2_dio peripheral and then code generating let it work.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,264 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pb632146 

Before running the example is required to generate some configurations. Select the "S32 Configuration Tool" menu then click on the desired configuration tool (Pins, Cocks, Peripherals etc...) and select the current project. Make the desired changes(if any) then click on the S32 Configuration Tool > "Update Code" button.

 

BR, VaneB

0 项奖励
回复
2,252 次查看
pb632146
Contributor V

The Code generation is not doing anything for me and I do not understand why.

I can see where I presume the headers would be pulling from, is there a place I need to add the file path to to fix this or something?

pb632146_0-1721942770265.png

I've set a pin to be a digital output and the code generation updated but the code does not run, I think I am missing something fundamental on this.

pb632146_1-1721942859241.png

 

0 项奖励
回复
2,243 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pb632146 

The sample codes are provided ready to run out of the box, with no modifications required beyond generating configurations as mentioned above.

0 项奖励
回复
2,229 次查看
pb632146
Contributor V

Found the issue, when trying to remake the example for the K342, the peripherals by default only had siul2 port by default which made only some of the headers valid after code generation which confused me, using the Siul2_dio_ip_Example_S32k344 example and manually adding the siul2_dio peripheral and then code generating let it work.

0 项奖励
回复