florisla / stm32loader

Flash firmware to STM32 microcontrollers using Python.
GNU General Public License v3.0
111 stars 55 forks source link

Allow to configure the serial port through an environment variable #12

Closed florisla closed 5 years ago

florisla commented 5 years ago

At the same time, make -p a required argument if the env variable is not set.

This allows us to drop the current default serial port, /dev/tty.usbserial-ftCYPMYJ which is incorrect for most people.

florisla commented 5 years ago

The environment variable is called STM32LOADER_SERIAL_PORT.

STM32LOADER_FAMILY is also available.

Released in v0.4.0.