ardupilot/libraries/AP_HAL_ChibiOS/hwdef/AEROFOX-H7/hwdef-bl.dat
2024-12-07 18:10:09 +11:00

53 lines
1.1 KiB
Plaintext

# MCU class and specific type
MCU STM32H7xx STM32H743xx
# crystal frequency
OSCILLATOR_HZ 24000000
# board ID for firmware load
APJ_BOARD_ID AP_HW_AEROFOX_H7
FLASH_SIZE_KB 2048
# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0
# the location where the bootloader will put the firmware
# the H743 has 128k sectors
FLASH_BOOTLOADER_LOAD_KB 128
#define LED pins
PE14 LED_BOOTLOADER OUTPUT OPENDRAIN HIGH # red
PE12 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # green
PE13 LED_RED OUTPUT OPENDRAIN HIGH # blue
# order of UARTs (and USB)
SERIAL_ORDER OTG1 USART1
# UART1 is debug
PA9 USART1_TX USART1 NODMA
PA10 USART1_RX USART1 NODMA
PC13 VDD_3V3_SENSORS_EN OUTPUT LOW OPENDRAIN
PC4 nVDD_5V_PERIPH_EN OUTPUT HIGH OPENDRAIN
PE8 nVDD_12V_PERIPH_EN OUTPUT LOW OPENDRAIN
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
PA13 JTMS-SWDIO SWD
PA14 JTCK-SWCLK SWD
define HAL_USE_EMPTY_STORAGE 1
define HAL_STORAGE_SIZE 32768
define HAL_LED_ON 1
# define BOOTLOADER_DEBUG SD7
# Add CS pins to ensure they are high in bootloader
PD7 16470_CS CS
PD4 42688_1_CS CS
PC15 42688_2_CS CS
PD10 FRAM_CS CS SPEED_VERYLOW
PC14 FLASH_CS CS