How to configure S32DS for S32K342 examples compile?

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

How to configure S32DS for S32K342 examples compile?

跳至解决方案
5,058 次查看
Jennie_Jing
Contributor II

hello,
I use S32DS.3.4 to open the S32K342 example project, and the RTD version is 2.0.0. ,and the tool chain is GCC 10.2. I did not change anything, but the compile failed. I think some configure is not well, so where is the problem?

 

0 项奖励
回复
1 解答
5,030 次查看
Jennie_Jing
Contributor II

yes, I tried. At the beginning, the .mex file cannot be open, and I edited it by replace the line of<mcu_data>, the line now is like this:

<mcu_data>PlatformSDK_S32K3_2022_03</mcu_data>

 the middle is quite the latest sdks version I download last night.

but after generate code,  new error still occurs. IDE cannot find the header files.

But today I realize that the directory I choose  when import the project is very import, don't choose the install path of SDK, but choose the path :

...S32DS.3.4\S32DS\software\PlatformSDK_S32K3_2022_03\SW32K3_RTD_4_4_2_0_0_D2203\Uart_TS_T40D34M20I0R0\examples\S32DS\Uart_Example_S32K342

Nothing need to be changed. It works well.

Thank you.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
5,050 次查看
Jennie_Jing
Contributor II

and here's the errors. Sorry for the topic cannot be re-edit. WeChat Image_20220418221702.png1073_109_1.25.png

0 项奖励
回复
5,052 次查看
Jennie_Jing
Contributor II

this is the example project I use.

1650291904(1).png

0 项奖励
回复
5,031 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@Jennie_Jing

have you try to update code?

Senlent_0-1650337681736.png

I tested this demo project, and it works fine on my side.

Senlent_1-1650337734799.png

BR!

      Jim,

0 项奖励
回复
4,728 次查看
krishnaraomane
Contributor II

Hi Team

I was compiling EBT example code from RTD with gcc 9.2.1 compiler using make build and observed complication fails at startup files krishnaraomane_0-1670379948708.png

also observing similar error while using GHS compiler as well with startup files.

 

Please let me know how to resolve this and generate elf files for GCC and GHS compilers

 

0 项奖励
回复
5,031 次查看
Jennie_Jing
Contributor II

yes, I tried. At the beginning, the .mex file cannot be open, and I edited it by replace the line of<mcu_data>, the line now is like this:

<mcu_data>PlatformSDK_S32K3_2022_03</mcu_data>

 the middle is quite the latest sdks version I download last night.

but after generate code,  new error still occurs. IDE cannot find the header files.

But today I realize that the directory I choose  when import the project is very import, don't choose the install path of SDK, but choose the path :

...S32DS.3.4\S32DS\software\PlatformSDK_S32K3_2022_03\SW32K3_RTD_4_4_2_0_0_D2203\Uart_TS_T40D34M20I0R0\examples\S32DS\Uart_Example_S32K342

Nothing need to be changed. It works well.

Thank you.

0 项奖励
回复