Skip to content

Commit

Permalink
Merge pull request stm32duino#2440 from fpistm/fix_uploadvid
Browse files Browse the repository at this point in the history
fix(upload_vid): wrong definitions
  • Loading branch information
fpistm authored Jul 15, 2024
2 parents 8ab4da9 + 6bd326d commit dd84578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2524,7 +2524,7 @@ GenF1.debug.server.openocd.scripts.2=target/stm32f1x.cfg
GenF1.vid.0=0x0483
GenF1.pid.0=0x5740
# DFU mode on built-in bootloader not available, assuming using STM32duino-bootloader
GenF1.upload.vid.0=0xleaf
GenF1.upload.vid.0=0x1eaf
GenF1.upload.pid.0=0x0003

# BLUEPILL_F103C6 board
Expand Down Expand Up @@ -12560,7 +12560,7 @@ GenFlight.menu.pnum.AFROFLIGHT_F103CB.build.board=AFROFLIGHT_F103CB
GenFlight.menu.pnum.AFROFLIGHT_F103CB.build.product_line=STM32F103xB
GenFlight.menu.pnum.AFROFLIGHT_F103CB.build.variant=STM32F1xx/F103C8T_F103CB(T-U)
GenFlight.menu.pnum.AFROFLIGHT_F103CB.build.variant_h=variant_AFROFLIGHT_F103CB_XX.h
GenFlight.menu.pnum.AFROFLIGHT_F103CB.upload.vid.0=0xleaf
GenFlight.menu.pnum.AFROFLIGHT_F103CB.upload.vid.0=0x1eaf
GenFlight.menu.pnum.AFROFLIGHT_F103CB.upload.pid.0=0x0003
GenFlight.menu.pnum.AFROFLIGHT_F103CB.debug.server.openocd.scripts.2=target/stm32f1x.cfg
GenFlight.menu.pnum.AFROFLIGHT_F103CB.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F1xx/STM32F103.svd
Expand All @@ -12574,7 +12574,7 @@ GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.build.board=AFROFLIGHT_F103CB_12M
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.build.product_line=STM32F103xB
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.build.variant=STM32F1xx/F103C8T_F103CB(T-U)
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.build.variant_h=variant_AFROFLIGHT_F103CB_XX.h
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.upload.vid.0=0xleaf
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.upload.vid.0=0x1eaf
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.upload.pid.0=0x0003
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.debug.server.openocd.scripts.2=target/stm32f1x.cfg
GenFlight.menu.pnum.AFROFLIGHT_F103CB_12M.debug.svd_file={runtime.tools.STM32_SVD.path}/svd/STM32F1xx/STM32F103.svd
Expand Down
6 changes: 4 additions & 2 deletions platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,10 @@ build.usb_flags=-DUSBCON {build.usb_speed} -DUSBD_VID={build.vid} -DUSBD_PID={bu
# Boards should specify either both, or neither of these.
build.vid={vid.0}
build.pid={pid.0}
upload.vid=0x0483
upload.pid=0xdf11
upload.vid.0=0x0483
upload.pid.0=0xdf11
upload.vid={upload.vid.0}
upload.pid={upload.pid.0}

# To customize the USB manufacturer or product string, must add defines
# for them, e.g.:
Expand Down

0 comments on commit dd84578

Please sign in to comment.