Skip to main content
Associate II
July 12, 2024
Solved

How to start using UART for SPC58EG?

  • July 12, 2024
  • 1 reply
  • 1427 views

I am currently developing UART functionality on the SPC58EG chip, and I want to use LinFlexD1 hardware channel to develop UART.

However, I cannot find relevant examples in the SPC5 Studio IDE.

I am referring to the official manual (RM0391), which mentions that the Peripheral Sensor Interface-Support module (PSI5-S) must be enabled and related registers modified to use LinFlexD as UART.

Are there any more specific example codes or projects that can be used as a reference for developing UART?

Thank you.

螢幕擷取畫面 2024-07-12 122658.png

Best answer by Erwan YVIN

Hello Fukai ,

There is no specific example for the IP PSI5-S modes.

I recommend to fork serial_lld.c in SPC5Studio

           Best regards

                      Erwan

 

 

 

1 reply

FuKaiAuthor
Associate II
July 12, 2024

螢幕擷取畫面 2024-07-12 170503.png

Picture to supplement the description

Erwan YVIN
Erwan YVINBest answer
ST Employee
July 12, 2024

Hello Fukai ,

There is no specific example for the IP PSI5-S modes.

I recommend to fork serial_lld.c in SPC5Studio

           Best regards

                      Erwan

 

 

 

FuKaiAuthor
Associate II
July 12, 2024

hi Erwan, 

thank you for your reply.

I find the definitions and functions for UART in serial_lld.c and its related files in SPC5Studio.

Can I use these files in other IDE directly or I can use in SPC5Studio only?