S32K342 LPUART unexpected signal interrupt

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

S32K342 LPUART unexpected signal interrupt

Jump to solution
1,635 Views
towenyu
Contributor III

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:

towenyu_0-1709706434818.png

 

And pretty default setting for LPUART module except change baudrate to 115200:

towenyu_1-1709706746669.png

 

Then program always get hang at a Uart_Send_Data_int() function:

towenyu_2-1709706901110.png

code for this function is pretty simple:

towenyu_3-1709707011146.png

 

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

0 Kudos
Reply
1 Solution
1,612 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Yu Wen,

You need to define the interrupt hander:

LPUART_UART_IP_3_IRQHandler

danielmartynek_0-1709818075566.png

 

Regards,

Daniel

 

 

View solution in original post

5 Replies
1,630 Views
towenyu
Contributor III

BTW I also checked memory map against linker file, looks like at least it fits in memory range. But I'm not so sure about it, so it would be great if anyone could help check those two files.

0 Kudos
Reply
1,622 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @towenyu,

Can you please attach the whole project?

 

Thanks,

BR, Daniel

Tags (1)
1,616 Views
towenyu
Contributor III

Here is the whole project. And this can be pretty easily reproduced by starting from example project and add LPUART module...

Thanks for helping,

Best Regards,

Yu Wen

0 Kudos
Reply
1,613 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Yu Wen,

You need to define the interrupt hander:

LPUART_UART_IP_3_IRQHandler

danielmartynek_0-1709818075566.png

 

Regards,

Daniel

 

 

1,602 Views
towenyu
Contributor III

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

0 Kudos
Reply