Home | Projects | Notes > Bootloader > Host Machine Setup (Python)

Host Machine Setup (Python)

 

Host Machine Setup (for Python Applications)

  1. Install Python on your machine

  2. Install pyserial

    • For Windows

    • For Ubuntu

    • For MAC

  3. Run host.py (See the The Host Application section below)

  4. Enter the COM port to use (e.g., COM5)

    • To see all active ports, just press Enter.

  5. Follow the instruction displayed by the python program.

 

The Host Application (host.py)

The following code is provided by "Kiran Nayak" from the "FastBit Embedded Brain Academy". (https://github.com/niekiran/BootloaderProjectSTM32/blob/master/SourceCode/HOST/python/STM32_Programmer_V1.py)