mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 00:18:29 -04:00
c709959f4a
SkySakura H743 fc Support
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
# hw definition file for processing by chibios_pins.py
|
|
# for SakuraH743 bootloader
|
|
|
|
# MCU class and specific type
|
|
MCU STM32H7xx STM32H743xx
|
|
|
|
# board ID for firmware load
|
|
APJ_BOARD_ID 2714
|
|
|
|
# USB setup
|
|
USB_STRING_MANUFACTURER "SkySakura"
|
|
|
|
# crystal frequency, setup to use external oscillator
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
FLASH_SIZE_KB 2048
|
|
|
|
# bootloader starts 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
|
|
|
|
|
|
# order of UARTs (and USB). Allow bootloading on USB and telem1
|
|
SERIAL_ORDER OTG1 UART7
|
|
|
|
# UART7 (telem1)
|
|
PE7 UART7_RX UART7
|
|
PE8 UART7_TX UART7
|
|
PE10 UART7_CTS UART7
|
|
PE9 UART7_RTS UART7
|
|
|
|
# PA10 IO-debug-console
|
|
PA11 OTG_FS_DM OTG1
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
# make sure Vsw is on during bootloader
|
|
PE15 PINIO1 OUTPUT HIGH
|
|
|
|
PB5 LED_BOOTLOADER OUTPUT LOW
|
|
define HAL_LED_ON 0
|
|
|
|
# Add CS pins to ensure they are high in bootloader
|
|
PA4 IMU1_CS CS
|
|
PE11 IMU2_CS CS
|
|
PC5 BARO2_CS CS
|
|
PB12 EXT_CS CS
|
|
|
|
|
|
# enable DFU by default
|
|
ENABLE_DFU_BOOT 1
|
|
|
|
# enable flashing from SD card:
|
|
PC8 SDMMC1_D0 SDMMC1
|
|
PC9 SDMMC1_D1 SDMMC1
|
|
PC10 SDMMC1_D2 SDMMC1
|
|
PC11 SDMMC1_D3 SDMMC1
|
|
PC12 SDMMC1_CK SDMMC1
|
|
PD2 SDMMC1_CMD SDMMC1
|
|
|
|
# enable FAT filesystem support (needs a microSD defined via SDMMC)
|
|
define HAL_OS_FATFS_IO 1
|
|
define AP_BOOTLOADER_FLASH_FROM_SD_ENABLED 1
|
|
|
|
# FATFS support:
|
|
define CH_CFG_USE_MEMCORE 1
|
|
define CH_CFG_USE_HEAP 1
|
|
define CH_CFG_USE_SEMAPHORES 0
|
|
define CH_CFG_USE_MUTEXES 1
|
|
define CH_CFG_USE_DYNAMIC 1
|
|
define CH_CFG_USE_WAITEXIT 1
|
|
define CH_CFG_USE_REGISTRY 1 |