Skip to main content
Associate II
August 9, 2023
Solved

X-CUBE-SPN5 & UART Com

  • August 9, 2023
  • 1 reply
  • 1093 views

Dear All,

I am using the X-CUBE-SPN5 with the EWARM toolchain (F302R8 with IHM05A1) to control a stepper motor. For now, I can move the motor to a specific angle.

Now, I would like to transmit the target angle by Python. I have a USB to TTL Serial Cable. I would thus like to program the serial communication.

Can I use for example the UART provided functions by SPN7 and use it in the project derivated from SPN5?

 

Tanks in advance for your help ! :)

    This topic has been closed for replies.
    Best answer by Cristiana SCARAMEL

    Hello @user-stm 

    Any communication protocol via UART-VirtualCOM can be reused for this purpose.

    The code of the SPN7 library can be used as a guideline.

    If you agree with my answer, please accept it by clicking on "Accept as solution".

    1 reply

    Cristiana SCARAMEL
    Technical Moderator
    September 27, 2023

    Hello @user-stm 

    Any communication protocol via UART-VirtualCOM can be reused for this purpose.

    The code of the SPN7 library can be used as a guideline.

    If you agree with my answer, please accept it by clicking on "Accept as solution".

    "If you feel a post has answered your question, please click ""Accept as Solution"""