1996301_en-US

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

1996301_en-US

1996301_en-US

S32K3X4EVB-T172 second LIN channel not working

Hi,

I have successuffly running the LIN stack example for S32K344. 

Screenshot 2024-11-18 120210.jpg


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.

Screenshot 2024-11-18 120444.jpgScreenshot 2024-11-18 120531.jpgScreenshot 2024-11-18 120603.jpgScreenshot 2024-11-18 120659.jpg


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:

Screenshot 2024-11-18 120924.jpg



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!

Re: S32K3X4EVB-T172 second LIN channel not working

Update Code Open Update Code Dialog.jpgMcuPeripheral  Peripheral Clock Enable change Power_Ip_VS_0_PBcfg.c.jpgMcuPeripheral  Peripheral Clock Enable change Power_Ip_VS_0_PBcfg.c C Compare Viewer.jpg

Re: S32K3X4EVB-T172 second LIN channel not working

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,..)?

Re: S32K3X4EVB-T172 second LIN channel not working

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.
-------------------------------------------------------------------------------

Re: S32K3X4EVB-T172 second LIN channel not working

For sure I also configured LPUART_9RX
Screenshot 2024-11-18 121321.jpg

Tags (1)
No ratings
Version history
Last update:
‎11-21-2025 02:59 PM
Updated by: