Skip to main content
Visitor II
December 14, 2024
Question

connecting STM32 with Pycharm through serial at backend.

  • December 14, 2024
  • 2 replies
  • 971 views

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!

    This topic has been closed for replies.

    2 replies

    Super User
    December 14, 2024

    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

    Super User
    December 16, 2024

    @RachnaSoni wrote:

    I'm planning to connect stm32cubeIDE and pycharm

    AIUI, PyCharm is an IDE PyCharm: the Python IDE for data science and web development - yes?

    And STM32CubeIDE is certainly an IDE - it's in the name!

    So what do you mean by "connecting" these two IDEs together?

    Presumably, you mean connecting together the two apps created using these IDEs - yes?