S32K312EVB-Q172 UART Example not working

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

S32K312EVB-Q172 UART Example not working

Jump to solution
409 Views
NewbieNerd
Contributor III

Hi, S32K3 Team

I can't operate Uart on the board.

Case 1:

  I'm trying a 'uart_example_S32K312' with S32K312EVB-Q172.

  Tera term set on Baud Rate,  Parity, Stop bit and Word Length, which according to example. 

  And UART pins were set on PTD2(gpio[98]) to TX and PTD3 (gpio[99]) to RX to output LPUART_3, which is the basic example setting.

  Project builds and debug work. But it doesn't do anything.(Input-not working, Output-not Working)

 

Case - 2 :

  Case-1 did not work, so it was set up by changing the Uart channel to 6, Pin Port(PTA16(gpio[16])-TX, PTA-15(gpio[15])-RX)  and Interrupt in the example.

  However, an HW Fault has occurred.

  -  BusFault: An imprecise (asynchronous) data access error has occurred.
  -  HardFault: A fault has been escalated to a hard fault.

Debugging showed that the value was not initialized for the rest of the structures except IP_LPUART_3 in the 'S32K312_LPUART.h' file.

 

Please help me with what I should try.

 

Installed Software

S32K3 RTD AUTOSAR 4.4 - Version 2.0.0

S32K3xx development package - Version 3.4.3

 

Regard

Tags (1)
0 Kudos
1 Solution
382 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

A1. Please follow the description.txt of Uart_Example_S32K312:
2.2.2 Connections
It uses Lpuart instance 3, comunicates with Flexio instance 0 channel 0 for Tx and channel 1 for Rx PTA0(J2.22) - PTD3(J2.10) and PTA1(J2.19) - PTD2(J2.7)

Uart_Example_S32K312 description.png

A2. Please configure the McuPeripheral -> Peripheral Clock Enable

McuPeripheral Peripheral Clock Enable.png

McuPeripheral Peripheral Clock Enable McuPeripheral Peripheral Clock Enable.png
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.
-------------------------------------------------------------------------------

View solution in original post

1 Reply
383 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

A1. Please follow the description.txt of Uart_Example_S32K312:
2.2.2 Connections
It uses Lpuart instance 3, comunicates with Flexio instance 0 channel 0 for Tx and channel 1 for Rx PTA0(J2.22) - PTD3(J2.10) and PTA1(J2.19) - PTD2(J2.7)

Uart_Example_S32K312 description.png

A2. Please configure the McuPeripheral -> Peripheral Clock Enable

McuPeripheral Peripheral Clock Enable.png

McuPeripheral Peripheral Clock Enable McuPeripheral Peripheral Clock Enable.png
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.
-------------------------------------------------------------------------------