To simpify issues I encountered with S32K342 development, I started new project from standard example:
S32K3 RTD AUTOSAR 4.42.0.0 D2203 Example Projects -> Pit_Ip_example_S32K342
After successfully compiled and run, I added module LPUART to this project and assigned two ports for LPUART3:
And pretty default setting for LPUART module except change baudrate to 115200:
Then program always get hang at a Uart_Send_Data_int() function:
code for this function is pretty simple:
No idea of what could possiblly wrong. Only two interrupt enabled: PIT0 and LPUART3. Still wrong after diabled PIT0.
For comparison I created another example: LpuartFlexio_Uart_Ip_Example_S32K342. Using previous function and everything runs well.
Is there any similiar story anyone encounted? Highly appreciate letting me know what's went wrong.
Thanks and Best Regards,
Yu Wen
Solved! Go to Solution.
Hi Yu Wen,
You need to define the interrupt hander:
LPUART_UART_IP_3_IRQHandler
Regards,
Daniel
Hi Yu Wen,
You need to define the interrupt hander:
LPUART_UART_IP_3_IRQHandler
Regards,
Daniel
Thanks and your suggestion solved my issue.
Strange though I didn't manually input handler name, I guess it is automatically filled; somehow this time the tool didn't do that for me.
Maybe it is worthy to check the consistance -- as it has been check and enabled in "interrupt controller" page.
Thanks and Best Regards,
Yu Wen