How to configure S32DS for S32K342 examples compile?

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

How to configure S32DS for S32K342 examples compile?

Jump to solution
5,115 Views
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 Kudos
Reply
1 Solution
5,087 Views
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.

View solution in original post

0 Kudos
Reply
5 Replies
5,107 Views
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 Kudos
Reply
5,109 Views
Jennie_Jing
Contributor II

this is the example project I use.

1650291904(1).png

0 Kudos
Reply
5,088 Views
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 Kudos
Reply
4,785 Views
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 Kudos
Reply
5,088 Views
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 Kudos
Reply