S32K312 The uart is abnormal after the MCU is powered off and then on. Procedure

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

S32K312 The uart is abnormal after the MCU is powered off and then on. Procedure

444 Views
guochuan
Contributor III

hi 

We used mcal to configure uart+idle mode, and the receipt sending and receiving were normal. However, after the program was burned, it was found that hardfault was entered after power-off and waiting for 10 seconds after power-off. UART is suspected to be the cause. The initialization process is as follows.

guochuan_0-1680334608957.png

  • Please help to analyze and provide the uart initialization process.

  • If Uart_AsyncReceive function is not called after uart is initialized, idle interrupt cannot receive data and MCU starts normally.
  • If Uart_AsyncReceive is called after the device is powered on, the MCU cannot be automatically started and can run normally after manual reset.
  • What is the process and precautions for mcal to configure uart? Could you help analyze it? Thank you
0 Kudos
Reply
0 Replies