Hi,
I have successuffly running the LIN stack example for S32K344.
So then I configured a second LIN channel with PIN configuration tool and so on. But it was not working, I got a Hard Reset Error while debugging.
So now I am trying to just configure the other LIN channel (not the one from the example) just configured as in the pictures below.
So configuration is working, also code generation and build of the SW. But after downloading firmware on the evaluation board I get a HardFault Error, as shown also in the Callback:
This is only happening for the second LIN channel (LPUART9, PTB9, PTB10)
while the other LIN channel (LPUART5, PTB28,PTB27) is working quite fine.
Can somebody support me?
Thanks!
Hi,
Yes this was the problem. Thanks a lot.
But if I know generate code the listed generated .c/.h files are not changed, just the .mex file. Where can I find the enabled CLCK for the peripheral UART 9 (which c./.h file,..)?
Hi
Please check the LPUART9 in McuPeripheral -> Peripheral Clock Enable
Refer to the discussion in S32K312EVB-Q172 UART Example not working
If this is not the reason, please send me the test project for checking.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
For sure I also configured LPUART_9RX