S32K146 lpuart interrupt setting

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

S32K146 lpuart interrupt setting

618 Views
Zack_huang
Contributor II

I want to use the function of lpuart interrupt
The following is the way I set it, but it never enters "LPUART1_RxTx_IRQHandler"

main.c

Zack_huang_0-1632913555293.png

 

 

LPUART1_RxTx_IRQHandler funciton

Zack_huang_1-1632913555295.png

 

 

Pin_mux setting

Zack_huang_2-1632913555296.png

 

 

When I send commands from the PC to the MCU, none of them seem to enter IRQHandler

0 Kudos
1 Reply

602 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Zack_huang,

Please refer the lpuart_echo_s32k146 of S32K1xx SDK RTM v4.0.2 Example.

UART callback.png

You can check the register value of LPUART1 during debug. Does the LPUART1_STAT[RDRF] be set? Does the signal well connect to the LUPART1_RX PTC6?

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" 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.
-------------------------------------------------------------------------------

0 Kudos