forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae5d04b
commit 244da02
Showing
4 changed files
with
186 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 53 additions & 13 deletions
66
libraries/AP_HAL_ChibiOS/hwdef/CubeOrangePlus/hwdef-bl.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,60 @@ | ||
# hw definition file for processing by chibios_hwdef.py | ||
# for F765 bootloader | ||
|
||
# MCU class and specific type | ||
MCU STM32H7xx STM32H757xx | ||
define CORE_CM7 | ||
define SMPS_PWR | ||
MCU STM32F7xx STM32F767xx | ||
|
||
include ../CubeOrange/hwdef-bl.inc | ||
# crystal frequency | ||
OSCILLATOR_HZ 16000000 | ||
|
||
undef USB_STRING_PRODUCT | ||
undef USB_STRING_MANUFACTURER | ||
undef APJ_BOARD_ID | ||
undef USB_PRODUCT | ||
# board ID for firmware load | ||
APJ_BOARD_ID 50 | ||
|
||
# USB setup | ||
USB_PRODUCT 0x1058 | ||
USB_STRING_MANUFACTURER "CubePilot" | ||
USB_STRING_PRODUCT "CubeOrange+-BL" | ||
FLASH_SIZE_KB 2048 | ||
|
||
APJ_BOARD_ID 1063 | ||
# bootloader is installed at zero offset | ||
FLASH_RESERVE_START_KB 0 | ||
|
||
# the location where the bootloader will put the firmware | ||
FLASH_BOOTLOADER_LOAD_KB 32 | ||
|
||
PC6 LED_BOOTLOADER OUTPUT HIGH | ||
PC7 LED_ACTIVITY OUTPUT HIGH | ||
define HAL_LED_ON 0 | ||
|
||
|
||
# order of UARTs (and USB) | ||
SERIAL_ORDER OTG1 USART2 UART7 | ||
|
||
define BOOTLOADER_DEBUG SD7 | ||
|
||
# USART2 is telem1 | ||
PD6 USART2_RX USART2 | ||
PD5 USART2_TX USART2 | ||
PD3 USART2_CTS USART2 | ||
PD4 USART2_RTS USART2 | ||
|
||
PF6 UART7_RX UART7 NODMA | ||
PE8 UART7_TX UART7 NODMA | ||
|
||
PA11 OTG_FS_DM OTG1 | ||
PA12 OTG_FS_DP OTG1 | ||
|
||
PA13 JTMS-SWDIO SWD | ||
PA14 JTCK-SWCLK SWD | ||
|
||
# Add CS pins to ensure they are high in bootloader | ||
PF10 MS5611_CS CS | ||
PF2 ICM20689_CS CS SPEED_VERYLOW | ||
PF3 ICM20602_CS CS SPEED_VERYLOW | ||
PF4 BMI055_G_CS CS | ||
PG10 BMI055_A_CS CS | ||
PF5 FRAM_CS CS SPEED_VERYLOW | ||
PF11 SPARE_CS CS | ||
PH5 AUXMEM_CS CS | ||
PI4 EXTERNAL1_CS1 CS | ||
PI10 EXTERNAL1_CS2 CS | ||
PI11 EXTERNAL1_CS3 CS | ||
PI6 EXTERNAL2_CS1 CS | ||
PI7 EXTERNAL2_CS2 CS | ||
PI8 EXTERNAL2_CS3 CS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,60 @@ | ||
# hw definition file for processing by chibios_hwdef.py | ||
# for Pixhawk4 bootloader | ||
# for F765 bootloader | ||
|
||
include ../fmuv5/hwdef-bl.dat | ||
# MCU class and specific type | ||
MCU STM32F7xx STM32F767xx | ||
|
||
# crystal frequency | ||
OSCILLATOR_HZ 16000000 | ||
|
||
# board ID for firmware load | ||
APJ_BOARD_ID 50 | ||
|
||
FLASH_SIZE_KB 2048 | ||
|
||
# bootloader is installed at zero offset | ||
FLASH_RESERVE_START_KB 0 | ||
|
||
# the location where the bootloader will put the firmware | ||
FLASH_BOOTLOADER_LOAD_KB 32 | ||
|
||
PC6 LED_BOOTLOADER OUTPUT HIGH | ||
PC7 LED_ACTIVITY OUTPUT HIGH | ||
define HAL_LED_ON 0 | ||
|
||
|
||
# order of UARTs (and USB) | ||
SERIAL_ORDER OTG1 USART2 UART7 | ||
|
||
define BOOTLOADER_DEBUG SD7 | ||
|
||
# USART2 is telem1 | ||
PD6 USART2_RX USART2 | ||
PD5 USART2_TX USART2 | ||
PD3 USART2_CTS USART2 | ||
PD4 USART2_RTS USART2 | ||
|
||
PF6 UART7_RX UART7 NODMA | ||
PE8 UART7_TX UART7 NODMA | ||
|
||
PA11 OTG_FS_DM OTG1 | ||
PA12 OTG_FS_DP OTG1 | ||
|
||
PA13 JTMS-SWDIO SWD | ||
PA14 JTCK-SWCLK SWD | ||
|
||
# Add CS pins to ensure they are high in bootloader | ||
PF10 MS5611_CS CS | ||
PF2 ICM20689_CS CS SPEED_VERYLOW | ||
PF3 ICM20602_CS CS SPEED_VERYLOW | ||
PF4 BMI055_G_CS CS | ||
PG10 BMI055_A_CS CS | ||
PF5 FRAM_CS CS SPEED_VERYLOW | ||
PF11 SPARE_CS CS | ||
PH5 AUXMEM_CS CS | ||
PI4 EXTERNAL1_CS1 CS | ||
PI10 EXTERNAL1_CS2 CS | ||
PI11 EXTERNAL1_CS3 CS | ||
PI6 EXTERNAL2_CS1 CS | ||
PI7 EXTERNAL2_CS2 CS | ||
PI8 EXTERNAL2_CS3 CS |