HAL_ChibiOS: default bootloader product string to XX-BL

This commit is contained in:
Andrew Tridgell 2018-06-28 09:35:43 +10:00
parent 946d0208e5
commit 54dc67e2a9
12 changed files with 4 additions and 24 deletions

View File

@ -12,8 +12,6 @@ STM32_PLLM_VALUE 8
FLASH_SIZE_KB 1024
USB_STRING_PRODUCT "ArduPilot-KakuteF4-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -7,8 +7,6 @@ MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 127
USB_STRING_PRODUCT "MatekF405Wing-BL"
# crystal frequency
OSCILLATOR_HZ 8000000
STM32_PLLM_VALUE 8

View File

@ -13,8 +13,6 @@ STM32_PLLM_VALUE 8
FLASH_SIZE_KB 1024
USB_STRING_PRODUCT "MatekF405-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -21,8 +21,6 @@ define STM32_PLLQ_VALUE 9
FLASH_SIZE_KB 1024
USB_STRING_PRODUCT "OmnibusF7V2-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -16,8 +16,6 @@ FLASH_SIZE_KB 1024
# don't allow bootloader to use more than 16k
FLASH_USE_MAX_KB 16
USB_STRING_PRODUCT "ArduPilot-airbotf4-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -29,7 +29,6 @@ FLASH_RESERVE_START_KB 0
USB_VENDOR 0x0483 # ST
USB_PRODUCT 0x5740
USB_STRING_MANUFACTURER "ArduPilot"
USB_STRING_PRODUCT "fmuv3-BL"
USB_STRING_SERIAL "%SERIAL%"
# baudrate to run bootloader at on uarts

View File

@ -7,9 +7,6 @@ MCU STM32F4xx STM32F427xx
# board ID for firmware load
APJ_BOARD_ID 11
# USB setup
USB_STRING_PRODUCT "fmuv4-BL"
# crystal frequency
OSCILLATOR_HZ 24000000

View File

@ -18,9 +18,6 @@ define STM32_PLLQ_VALUE 9
# board ID for firmware load
APJ_BOARD_ID 50
# USB setup
USB_STRING_PRODUCT "fmuv5-BL"
FLASH_SIZE_KB 2048
# bootloader is installed at zero offset

View File

@ -16,8 +16,6 @@ FLASH_SIZE_KB 1024
# don't allow bootloader to use more than 16k
FLASH_USE_MAX_KB 16
USB_STRING_PRODUCT "ArduPilot-omnibusf4pro-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -16,8 +16,6 @@ FLASH_SIZE_KB 1024
# don't allow bootloader to use more than 16k
FLASH_USE_MAX_KB 16
USB_STRING_PRODUCT "ArduPilot-revo-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

View File

@ -513,7 +513,10 @@ def write_USB_config(f):
f.write('#define HAL_USB_VENDOR_ID %s\n' % get_config('USB_VENDOR', default=0x0483)) # default to ST
f.write('#define HAL_USB_PRODUCT_ID %s\n' % get_config('USB_PRODUCT', default=0x5740))
f.write('#define HAL_USB_STRING_MANUFACTURER "%s"\n' % get_config("USB_STRING_MANUFACTURER", default="ArduPilot"))
f.write('#define HAL_USB_STRING_PRODUCT "%s"\n' % get_config("USB_STRING_PRODUCT", default="%BOARD%"))
default_product = "%BOARD%"
if args.bootloader:
default_product += "-BL"
f.write('#define HAL_USB_STRING_PRODUCT "%s"\n' % get_config("USB_STRING_PRODUCT", default=default_product))
f.write('#define HAL_USB_STRING_SERIAL "%s"\n' % get_config("USB_STRING_SERIAL", default="%SERIAL%"))
f.write('\n\n')

View File

@ -16,8 +16,6 @@ FLASH_SIZE_KB 1024
# don't allow bootloader to use more than 16k
FLASH_USE_MAX_KB 16
USB_STRING_PRODUCT "ArduPilot-sparky2-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0