Hello,
I need to configure a S32K144 board as a LIN Slave using the Autosar API, but do not have much of an idea how to go about it. I am using S32DS v3.5 and only got so far as to configure LinNodeType as Slave in LinGlobalConfig.
But as far as the code goes, I have no idea how to receive data and respond accordingly to a LIN Master and I can't seem to find any examples where this is handled. If anyone could point me in the right direction with some example or anything, I'd be very grateful.
Regards
Tereza
Hello Tereza,
There are examples in SW32K1 SW32M24X LIN Stack version 1.0.2, which is an extension to S32K1_S32M24X Real-Time Drivers ASR 4.4 & R21-11 Version 2.0.0.
Read the description.txt of the examples.
Regards,
Daniel
Hi,
after installing the package and generating the code, I find that the lin files are not automatically generated. After some digging around I found out about some tool called NCFtool for generating but the example doesn't provide a .npf file. The description.txt does not state any information on how to generate the necessary files to make the example work and neither do I see any option for it in the config tools. Am I missing something?
Hi tkubincova,
I think your generate code way is incorrect. Basically we just need to hit "Update code" after doing all configurations.
I think there's no different with the LIN example.
Please help me to try this.
Thank you,
Nam.
Hello,
the Update Code only generates the RTD files in my case, not the LIN stack files, specifically these:
#include "lin_stack_cfg.h"
#include "lin_common_api.h"
#include "lin_commontl_api.h"
#include "lin_diagnostic_service.h"
so the code does not compile. How do I get these source files? What packages do I need to have installed? (I already have the packages mentioned in daniel's reply)
Regards,
Tereza
Hi tkubincova,
I mostly support about RTD and not familiar with LIN stack, but did you try to find the LIN stack from NXP?
E.g this RTM release, please consider to follow this.
Design : Product Download : Files (flexnetoperations.com)
Thank you,
Nam.
Thanks for your information.
Thank you,
Nam.
I tried closing and opening design studio and it seems to have fixed the problem, I can now see the middleware tab which is used for the configuration (it wasn't there before for some reason) . Sorry for the inconvenience and thank you for your help!
Regards,
Tereza