HAL_ChibiOS: fixed board IDs and added more bootloaders

This commit is contained in:
Andrew Tridgell 2018-06-23 19:27:28 +10:00
parent 2f8a534243
commit b149089830
14 changed files with 143 additions and 12 deletions

View File

@ -12,7 +12,7 @@ STM32_PLLM_VALUE 8
FLASH_SIZE_KB 1024
USB_STRING_PRODUCT "f405-BL"
USB_STRING_PRODUCT "ArduPilot-KakuteF4-BL"
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0
@ -34,4 +34,5 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360

View File

@ -36,4 +36,5 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360

View File

@ -0,0 +1,42 @@
# hw definition file for processing by chibios_pins.py
# for airbotf4 bootloader
# MCU class and specific type
MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 128
# crystal frequency
OSCILLATOR_HZ 8000000
STM32_PLLM_VALUE 8
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
# LEDs
PB5 LED_BOOTLOADER OUTPUT LOW
define HAL_LED_ON 0
# the location where the bootloader will put the firmware
define FLASH_BOOTLOADER_LOAD_KB 64
# board voltage
STM32_VDD 330U
# order of UARTs
UART_ORDER OTG1
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 15360

View File

@ -7,7 +7,7 @@ MCU STM32F4xx STM32F405xx
HAL_CHIBIOS_ARCH_F405 1
# board ID for firmware load
APJ_BOARD_ID 70
APJ_BOARD_ID 128
# crystal frequency
OSCILLATOR_HZ 8000000

View File

@ -5,7 +5,7 @@
MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 70
APJ_BOARD_ID 12
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_CRAZYFLIE2

View File

@ -22,7 +22,7 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360
define HAL_COMPASS_DEFAULT HAL_COMPASS_NONE
define HAL_INS_DEFAULT HAL_INS_NONE

View File

@ -5,7 +5,7 @@
MCU STM32F4xx STM32F407xx
# board ID for firmware load
APJ_BOARD_ID 20
APJ_BOARD_ID 129
define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_F4BY
# USB setup

View File

@ -0,0 +1,43 @@
# hw definition file for processing by chibios_pins.py
# for omnibusf4pro bootloader
# MCU class and specific type
MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 131
# crystal frequency
OSCILLATOR_HZ 8000000
STM32_PLLM_VALUE 8
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
# LEDs
PB5 LED_BOOTLOADER OUTPUT LOW
PBB LED_ACTIVITY OUTPUT LOW
define HAL_LED_ON 0
# the location where the bootloader will put the firmware
define FLASH_BOOTLOADER_LOAD_KB 64
# board voltage
STM32_VDD 330U
# order of UARTs
UART_ORDER OTG1
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 15360

View File

@ -7,7 +7,7 @@ MCU STM32F4xx STM32F405xx
HAL_CHIBIOS_ARCH_F405 1
# board ID for firmware load
APJ_BOARD_ID 70
APJ_BOARD_ID 131
# crystal frequency
OSCILLATOR_HZ 8000000

View File

@ -39,4 +39,5 @@ PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360

View File

@ -120,7 +120,7 @@ define HAL_GPIO_RADIO_IRQ 100
define HAL_RCINPUT_WITH_AP_RADIO 1
define STORAGE_FLASH_PAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360
# setup defines for ArduCopter config
define TOY_MODE_ENABLED ENABLED

View File

@ -112,7 +112,7 @@ define HAL_GPIO_RADIO_IRQ 100
define HAL_RCINPUT_WITH_AP_RADIO 1
define STORAGE_FLASH_PAGE 1
define HAL_STORAGE_SIZE 16384
define HAL_STORAGE_SIZE 15360
# setup defines for ArduCopter config
define TOY_MODE_ENABLED ENABLED

View File

@ -0,0 +1,43 @@
# hw definition file for processing by chibios_pins.py
# for sparky2 bootloader
# MCU class and specific type
MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 130
# crystal frequency
OSCILLATOR_HZ 8000000
STM32_PLLM_VALUE 8
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
# LEDs
PB5 LED_BOOTLOADER OUTPUT LOW
PB4 LED_ACTIVITY OUTPUT LOW
define HAL_LED_ON 0
# the location where the bootloader will put the firmware
define FLASH_BOOTLOADER_LOAD_KB 64
# board voltage
STM32_VDD 330U
# order of UARTs
UART_ORDER OTG1
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 15360

View File

@ -5,7 +5,7 @@
MCU STM32F4xx STM32F405xx
# board ID for firmware load
APJ_BOARD_ID 70
APJ_BOARD_ID 130
# crystal frequency
OSCILLATOR_HZ 8000000