2024-12-14 03:33 AM
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!
2024-12-14 05:45 AM
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
Having got the basic UART transmission working, you might want to link it to the standard C printf:
Some tips here on debugging serial comms: