Hey @mayliu1,
Thank you for the quick response.
I integrated the MCUX SDK LIN stack into Zephyr OS and I am testing it now on a S32K344-wb board, but I want to change the cfg files and I was wondering if there is a method through which I can automatically generate them from a .ldf file.
Solved! Go to Solution.
Hi@SarMol
I consulted an engineer who is familiar with MCUX.
The IDE does not support importing LDF files to generate these configuration and driver files. To put it simply, they are handwritten.
Hi@SarMol
Why do you use MCUX instead of S32 DS when using S32K3 series MCU?
Can't these things you said be done with S32 DS?
After installing S32 DS and RTD, find the corresponding version of LIN STANCK, import your LDF file, and generate the configuration file.
These practices can be done with S32 DS.
Hello @Senlent,
I am working with Zephyr and the only way (that I have found) to integrate the LIN stack into the OS is to use the MCUX version. This requires the lin_cfg.c/.h files and I took them from the demos that were present in the MCUX demo repository and modified them by hand just to see if my integration was successful, though I would like to have an automated method to generate them. I tried to generate them from S32DS, but the lin_stack_cfg.c/.h files were not compatible with what the MCUX version expected.
My question now is where did the lin_cfg.c/.h files from the demos come from? Were they written by hand or is there a tool capable of generating configuration files compatible with what the MCUX SDK LIN stack expects?
Hi@SarMol
I consulted an engineer who is familiar with MCUX.
The IDE does not support importing LDF files to generate these configuration and driver files. To put it simply, they are handwritten.