cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-SPN5 & UART Com

user-stm
Associate II

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 ! :)

1 ACCEPTED SOLUTION

Accepted Solutions
Cristiana SCARAMEL
ST Employee

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"

View solution in original post

1 REPLY 1
Cristiana SCARAMEL
ST Employee

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"