This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Python with MSP430G2553

Other Parts Discussed in Thread: MSP430G2553

Hi,

Is it possible to use Python language instead of 'C'  to program MSP430G2553 ?

I want to send a data using UART from MSP430G2553 and display that data using Python GUI . 

  • I'm not familiar with Python, but did you have a look at the python-msp430-tools?

    Displaying data in an GUI that comes from a serial connection like UART/RS232 is independent from the language you are programming in. It has the same data-format like 1 start-bit, 8 data-bits, 1 stop-bit @ 9600 baud with no parity enabled (just an example).

    Dennis

  • AFAIK, Python is an interpreted (script) language that makes heavy usage of the system libraries.. Unless you write a Python script interpreter that runs on the MSP, along with ports of the libraries, and executes your program there...
  • So your system consists of two parts:  (1) a workstation (desktop/laptop) computer and (2) a board with MSP430 chip.  The workstation can run Python and have its GUI and serial communication.  It doesn't matter what the MSP430 software is written in as long as the workstation's Python code is written to interpret the UART data the same way the MSP430 code does.

    The MSP430 should probably only run with C/C++.  Python probably will require too much overhead for it.  If you are just sending simple messages out the UART, the C program would not be hard to write.  If you plan to work in industry and work with microcontrollers, you cannot avoid learning C; may as well learn it now.

    I know there is a Python tool for MSP430 mentioned by Dennis, but if you were to work in industry and insist you will only write code in Python and the target is a tiny MCU like the 430, you will probably be laughed at and then your boss will tell you to do it in C anyway.  Python is great for larger processors with lots of speed and memory - but the overhead is laughably too high for tiny processors.

  • I know that this is an old thread -- but I stumbled across it trying to answer the same question myself.

    From what I understand, the tools that do exist -- that is, the python-msp430-tools, are for building your code once you've written in assembly / C -- we're talking about compiler tools (I do believe). It would be awesome if you could:

    import msp430

    while TRUE:
    pin1.write(HIGH,100)
    pin1.write(LOW,100)

    To get an LED blinking. But, alas.
  • Hi, have you managed to find an answer? I'm facing something similar

**Attention** This is a public forum