UART function does not work.

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

UART function does not work.

1,145 Views
kbj
Contributor IV

Hi,

I implementted LPUART function with S32KDS and SKD_S32K14x_09.

But the UART function does not work.

I attched my project.

Please review my project.

Best regards,

Byungju.

Labels (2)
Tags (3)
5 Replies

863 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I looked at you project and question is - how do you find out that UART doesn't work? In your project is only UART init function - returning STATUS_SUCCESS. 

Please look at lpuart_echo_s32k144 example for reference: 

pastedImage_1.png

Hope it helps. 

Jiri 

863 Views
kbj
Contributor IV

Dear Jiri,

Thanks to you, I can see UART message.

I have two questions.

1. How to get the S32K14x_RTM_SDK_V2.0.0? 

2. How to use UART interrupt? 

    I use LPUART_DRV_InstallRxCallback. But I think Interrupt does not be clear.

    Can you give me the guide of interrupt of uart?

Best regards,

Byungju.

0 Kudos

863 Views
jiri_kral
NXP Employee
NXP Employee

You can click on this message box - probably appeared after S32DS Launch to update S32DS:

pastedImage_2.png

If you don't see such message - update your S32DS Installation manually  - on main menu bar click on Help -> Install new software 

pastedImage_1.png

Click on available sites, choose PEMicro and S32DesignStudio, click on OK 

pastedImage_3.png

In Work with row select All Available sites - and when updates will be found - click on next.

pastedImage_4.png

As I mentioned above - best starting point is LPUART echo example - this example is available in any SDK version and uses interrupts. 

Hope it helps 

Jiri

863 Views
kbj
Contributor IV

Dear Jiri,

I have two questions.

1. How to import S32K14x_RTM_SDK_V2.0.0?

    I get the samplecode with S32K14x_RTM_SDK_V2.0.0.

    But I don't use S32K14x_RTM_SDK_V2.0.0.

    So I don't use some funtions.

1.PNG

2.PNG

2. How to clear UART interrupt?

    When I test send uart message of very big data size.

    Because interrupt does not clear, MCU is reset  because of watchdog time out. 

Best regards,

Byungju.

0 Kudos

863 Views
kbj
Contributor IV

Dear Jiri

Thanks for your help.

I will try it.

Best regards,

Byungju.

0 Kudos