Hi,
Situation is as the following:
-> currently using : S32K3X4EVB-T172 evaluation board
-> installed S32DS, SDK, LIN Stack, RTD, ...
Then I want to use the LIN_Master example "Lin_Master_S32K344_Example_DS" and configured my board with S32DS but at compiling the project, it is missing the following files:
"lin_stack_cfg.h"
"lin_common_api.h"
"lin_commontl_api.h"
"lin_diagnostic_service.h"
Do you have any idea where the files come from? Are they generated out from a .ldf file (in S32DS?)
Thanks in advance.
Hi,
PMC is configured in
With above setting I was able to pass outlined code when set VDD_HV_A to 3.3V using J18.2-3 jumper setting.
Or if V15_MCU is sourced from ballast transistor using J31.2-3.
BR, Petr
Hello All,
So finally we can build the LIN example. The next problem is that the MCU is not getting over a generated/configured function in the file : "Power_Ip_PMC.c" in function "Power_Ip_PMC_PowerInit" exactly in this piece of code (highlighted line, line number 304):
If we go with debugger over the highlighted line , we are in some kind of deadlock/reset loop of the S32K3. Debugger is not working, we can not reset MCU. So we have to erease the whole memory of the chip with J-Flash Lite.
If we do this again with the debugger and just set "ConfigValue" (before execution in line 304) just to "0" we have a normal run.
Can anyone explain why? And where exactly we can find the configuration menu for this ConfigValue in S32DS? What is a optimal configuration for this register?
Thanks in advance.
Hi,
I tried to change the .mex file as you mentioned but I still got the same issue:
../src/main.c:30:10: fatal error: lin_stack_cfg.h: No such file or directory
30 | #include "lin_stack_cfg.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.What I did:
- Deleted old LIN example
- Opened LIN example again (with S32DS)
- Closed S32DS
- Changed mex file as you mentioned
- Opened S32DS
- Clicked on LIN example / Opened Configuration Tools
- Switched to my Package S32K344_172HDQFP
- Updated Code
--> Then I tried to build the whole project, where I got the error from above.
Hi,
it is part of linstack installation. On my RTD4.0.0 and linstack 2.0.4
c:\NXP\S32DS.3.5_RTD400\S32DS\software\PlatformSDK_S32K3\stacks\lin\documentation\LIN_UserManual.pdf
BR, Petr
Hi Petr,
Thanks a lot I will try. Can you help me where I can get the LinStack user manual? I just found LPUART and LIN with RTD - Training...
Hi,
I was able to built example following below steps.
-just open/create example
-modify mex file in external editor before opening in S32DS, search for src\LIN21.ldf and change it to src/LIN21.ldf
- do a code update and allow changes for generated LinIf.h and LInIf.c as described in LINStack user manual chapter 6 Known issues and limitations
Then project can be built and elf generated
BR, Petr