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.
Solved! Go to Solution.
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
on the right side of the window that just appeared select "Add..."
In the new window select "Archive..."
Now search for the file you downloaded in step 1, and select "Add"
now one or more packages should be available to select, select them all
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
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.
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"
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.
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.
By the way, this is a screenshot of the compilation error
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
on the right side of the window that just appeared select "Add..."
In the new window select "Archive..."
Now search for the file you downloaded in step 1, and select "Add"
now one or more packages should be available to select, select them all
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
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.
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"
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.
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.