Browse Source

usb: Update Python scripts

master
Andreas Berthoud 5 years ago
parent
commit
e84712b20c
  1. 2
      download.py
  2. 3
      serial_communication.py

2
download.py

@ -8,7 +8,7 @@ logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger("Download")
APPLICATION_NAME = "nucleo-wb55-dongle-usb"
APPLICATION_NAME = "nucleo-wb55-dongle-blinky"
#APPLICATION_NAME = "nucleo-wb55-dongle-blinky"
PORT="USB1"
CLI_PATH = Path("/Applications/STMicroelectronics/STM32Cube/STM32CubeProgrammer/STM32CubeProgrammer.app/Contents/MacOs/bin/STM32_Programmer_CLI")
ELF_FILE = Path.home() / Path(f"Documents/git/nucleo-playground-workspace/{APPLICATION_NAME}/Debug/{APPLICATION_NAME}.elf")

3
serial_communication.py

@ -4,7 +4,8 @@ from typing import Sequence
import serial
DEVICE_ID = "/dev/tty.usbmodem207E3283544E1"
#DEVICE_ID = "/dev/tty.usbmodem207E3283544E1"
DEVICE_ID = "/dev/tty.usbmodem2067368F32521"
BAUDRATE = 115200
logging.basicConfig(level=logging.DEBUG)

Loading…
Cancel
Save