cancel
Showing results for 
Search instead for 
Did you mean: 

connecting STM32 with Pycharm through serial at backend.

RachnaSoni
Associate

Hello! 

i'm new to stm32 programming. i have been trying to connect stm32 nucleo 142zg board to a GUI. the GUI is made in pycharm using Tkinter library to control PWM signal coming as output from stm32 board. I'm planning to connect stm32cubeIDE and pycharm from backend using serial library. please help me out how i can do it. so far i have made the GUI which gets connected to stm32. it acknowledges the stm board. i just have to figure out stm32 part. 

any help with youtube videos, steps to implement it, etc is very much appretiated.

thank you!

1 REPLY 1

Welcome to the forum.

 


@RachnaSoni wrote:

i'm new to stm32 programming. !


Do you have experience with any other microcontroller(s) ?

This would be a good starting point: 

https://www.youtube.com/playlist?list=PLnMKNibPkDnFCosVVv98U5dCulE6T3Iy8

Lots to learn from here: https://www.st.com/content/st_com/en/support/learning/stm32-education/stm32-moocs.html

 

 


@RachnaSoni wrote:

I'm planning to connect stm32cubeIDE and pycharm from backend using serial library.


So the first thing to do is to get basic UART comms working.

Forget about the "pycharm" to start with - just work with a serial terminal.

https://wiki.st.com/stm32mcu/wiki/Getting_started_with_UART

https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step3_Introduction_to_the_UART 

https://community.st.com/t5/stm32-mcus/implementing-uart-receive-and-transmit-functions-on-an-stm32/ta-p/694926

Having got the basic UART transmission working, you might want to link it to the standard C printf:

https://community.st.com/t5/stm32-mcus/implementing-uart-receive-and-transmit-functions-on-an-stm32/tac-p/733967/highlight/true#M1095

 

Some tips here on debugging serial comms:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/706966/highlight/true#M49