mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 23:48:31 -04:00
hwdef: enable flash-from-SD on Pixhawk6C
Enabled flash-from-SD support on Pixhawk6C bootloader based off Pixhawk6X hwdef (3b230c4
).
This commit is contained in:
parent
8b5db8f233
commit
e6d35b08cb
@ -69,3 +69,30 @@ define HAL_LED_ON 0
|
|||||||
|
|
||||||
define HAL_USE_EMPTY_STORAGE 1
|
define HAL_USE_EMPTY_STORAGE 1
|
||||||
define HAL_STORAGE_SIZE 16384
|
define HAL_STORAGE_SIZE 16384
|
||||||
|
|
||||||
|
# support flashing from SD card:
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# microSD support
|
||||||
|
PD6 SDMMC2_CK SDMMC2
|
||||||
|
PD7 SDMMC2_CMD SDMMC2
|
||||||
|
PB14 SDMMC2_D0 SDMMC2
|
||||||
|
PB15 SDMMC2_D1 SDMMC2
|
||||||
|
PB3 SDMMC2_D2 SDMMC2
|
||||||
|
PB4 SDMMC2_D3 SDMMC2
|
||||||
|
define FATFS_HAL_DEVICE SDCD2
|
||||||
|
|
||||||
|
DMA_PRIORITY SDMMC* USART6* ADC* UART* USART* SPI* TIM*
|
||||||
|
|
||||||
|
# enable FAT filesystem support (needs a microSD defined via SDMMC)
|
||||||
|
define HAL_OS_FATFS_IO 1
|
||||||
|
|
||||||
|
define AP_BOOTLOADER_FLASH_FROM_SD_ENABLED 1
|
||||||
|
@ -256,6 +256,10 @@ DMA_PRIORITY SDMMC* USART6* ADC* UART* USART* SPI* TIM*
|
|||||||
define HAL_OS_FATFS_IO 1
|
define HAL_OS_FATFS_IO 1
|
||||||
|
|
||||||
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_f103_lowpolh.bin
|
ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_f103_lowpolh.bin
|
||||||
|
|
||||||
|
# build ABIN for flash-from-bootloader support:
|
||||||
|
env BUILD_ABIN True
|
||||||
|
|
||||||
# enable support for dshot on iomcu
|
# enable support for dshot on iomcu
|
||||||
ROMFS io_firmware_dshot.bin Tools/IO_Firmware/iofirmware_f103_dshot_lowpolh.bin
|
ROMFS io_firmware_dshot.bin Tools/IO_Firmware/iofirmware_f103_dshot_lowpolh.bin
|
||||||
define HAL_WITH_IO_MCU_BIDIR_DSHOT 1
|
define HAL_WITH_IO_MCU_BIDIR_DSHOT 1
|
||||||
|
Loading…
Reference in New Issue
Block a user