Browse Source

Change serial loader in makefile.

master
flabbergast 7 years ago
parent
commit
baecb2fe9e
  1. 4
      boards/STM32F042_BREAKOUT/board.h
  2. 5
      common.mk

4
boards/STM32F042_BREAKOUT/board.h

@ -236,8 +236,8 @@ @@ -236,8 +236,8 @@
PIN_OSPEED_40M(GPIOA_PIN6) | \
PIN_OSPEED_40M(GPIOA_PIN7) | \
PIN_OSPEED_40M(GPIOA_PIN8) | \
PIN_OSPEED_2M(GPIOA_PIN9) | \
PIN_OSPEED_2M(GPIOA_PIN10) | \
PIN_OSPEED_40M(GPIOA_PIN9) | \
PIN_OSPEED_40M(GPIOA_PIN10) | \
PIN_OSPEED_2M(GPIOA_USB_DM) | \
PIN_OSPEED_2M(GPIOA_USB_DP) | \
PIN_OSPEED_40M(GPIOA_SWDIO) | \

5
common.mk

@ -15,8 +15,9 @@ openocd: all @@ -15,8 +15,9 @@ openocd: all
SERIAL_PORT = /dev/tty.usbserial-DJ005LMJ
stm32flash: all
stm32flash -w $(BUILDDIR)/$(PROJECT).bin -v -R $(SERIAL_PORT)
serialflash: all
#stm32flash -w $(BUILDDIR)/$(PROJECT).hex -v $(SERIAL_PORT)
stm32loader.py -evw -b 57600 $(BUILDDIR)/$(PROJECT).bin
### dfu-util

Loading…
Cancel
Save