S32K312 MCAL ISSUE: LIN Module Compile error

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

S32K312 MCAL ISSUE: LIN Module Compile error

跳至解决方案
929 次查看
RyzeBai
Contributor I

Hi,

   I configured LIN Module the same way I configured the other modules. Then copy the include and src folders  into the project.But when I compile it says I can't find the file <Lin_43_LPUART_FLEXIO_Defines.h> .I searched and the file is under the generate_PC\include directory.There are other problems with copying this path in manually.How can I fix this error.

My MCAL is SW32K3_RTD_R21-11_3.0.0_P07.

0 项奖励
回复
1 解答
898 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello  @RyzeBai ,

Thanks for contacting NXP support. For what we understand you are trying to use the LIN drivers from the RTD's. If that is the case, your RTD's installation seems to be wrong. Please follow these steps to install your RTD's

  1. Download the RTD's file: from the page you originally downloaded the drivers, there should be a zip file with the word "Updatesite" at the end of the file name. for this example we will use "SW32K1_S32M24x_RTD_4.4_R21-11_2.0.0_D2308_DS_Updatesite.zip"
  2. Install the RTD's in S32 Design Studio: execute your S32 DS and then in the help menu you should see the option "Install New Software..."

     

    alejandro_e_3-1724703378966.png

     

    on the right side of the window that just appeared select "Add..."alejandro_e_4-1724703526362.png

    In the new window select "Archive..."

    alejandro_e_6-1724703645603.png

    Now search for the file you downloaded in step 1, and select "Add"


    alejandro_e_7-1724703737858.png

    now one or more packages should be available to select, select them all

    alejandro_e_8-1724703822960.png

    Click "Next" until you see the license agreement. Accept the license agreement, and clic "Finish". Now you will see the installation progress on the lower right side of the S32 SD

    alejandro_e_9-1724704087088.png

     

    once it finished I'll ask you to restart de IDE, click on "Restart now". At this point you should be able to use the modules you need. 
  3. Checking the installation by running an example:

Now you can try to run a LIN example to see if the drivers are correctly installed. Go to "File -> new -> Add S32D project from example"

alejandro_e_10-1724704326195.png

We are selecting the example "Lin_Flexio_MasterFrameTransfer_S32K118" but you can select the one you need. Then click on finish. 

using the "Pins" view and selecting your project, press the "Update code" button to generate all the necessary files for your project.

alejandro_e_11-1724704541038.png

Again you can see the progress on the lower right corner of the IDE. Once it finishes you can return to the "C/C++" view (on the left of the "Pins" view button). You now should be able to compile with the LIN libraries with no problem.

 

Please let us know it the provided information was useful. If our understanding is wrong let us know. 

 

 

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
924 次查看
RyzeBai
Contributor I

By the way, this is a screenshot of the compilation error

RyzeBai_0-1724653904610.png

 

0 项奖励
回复
899 次查看
alejandro_e
NXP TechSupport
NXP TechSupport

Hello  @RyzeBai ,

Thanks for contacting NXP support. For what we understand you are trying to use the LIN drivers from the RTD's. If that is the case, your RTD's installation seems to be wrong. Please follow these steps to install your RTD's

  1. Download the RTD's file: from the page you originally downloaded the drivers, there should be a zip file with the word "Updatesite" at the end of the file name. for this example we will use "SW32K1_S32M24x_RTD_4.4_R21-11_2.0.0_D2308_DS_Updatesite.zip"
  2. Install the RTD's in S32 Design Studio: execute your S32 DS and then in the help menu you should see the option "Install New Software..."

     

    alejandro_e_3-1724703378966.png

     

    on the right side of the window that just appeared select "Add..."alejandro_e_4-1724703526362.png

    In the new window select "Archive..."

    alejandro_e_6-1724703645603.png

    Now search for the file you downloaded in step 1, and select "Add"


    alejandro_e_7-1724703737858.png

    now one or more packages should be available to select, select them all

    alejandro_e_8-1724703822960.png

    Click "Next" until you see the license agreement. Accept the license agreement, and clic "Finish". Now you will see the installation progress on the lower right side of the S32 SD

    alejandro_e_9-1724704087088.png

     

    once it finished I'll ask you to restart de IDE, click on "Restart now". At this point you should be able to use the modules you need. 
  3. Checking the installation by running an example:

Now you can try to run a LIN example to see if the drivers are correctly installed. Go to "File -> new -> Add S32D project from example"

alejandro_e_10-1724704326195.png

We are selecting the example "Lin_Flexio_MasterFrameTransfer_S32K118" but you can select the one you need. Then click on finish. 

using the "Pins" view and selecting your project, press the "Update code" button to generate all the necessary files for your project.

alejandro_e_11-1724704541038.png

Again you can see the progress on the lower right corner of the IDE. Once it finishes you can return to the "C/C++" view (on the left of the "Pins" view button). You now should be able to compile with the LIN libraries with no problem.

 

Please let us know it the provided information was useful. If our understanding is wrong let us know. 

 

 

 

0 项奖励
回复