Skip to content

Commit

Permalink
1.added SD card interface in the bootloader to allow loading firmware…
Browse files Browse the repository at this point in the history
… from the SD card.

2.changed serial protocol default setting.
3.updated README.
  • Loading branch information
TompsonTan committed Sep 27, 2024
1 parent 3fcc325 commit f6afc7e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Binary file modified Tools/bootloaders/X-MAV-AP-H743v2_bl.bin
Binary file not shown.
3 changes: 0 additions & 3 deletions libraries/AP_HAL_ChibiOS/hwdef/X-MAV-AP-H743v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ The AP-H743v2 supports up to 8 PWM outputs.

All the channels support DShot and BiDir DShot.


Channels 1-8 support bi-directional DShot.

Outputs are grouped and every output within a group must use the same output protocol:


Expand Down
14 changes: 14 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/X-MAV-AP-H743v2/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,17 @@ PC13 ICM42688P_CS CS
PD11 LED_ACTIVITY OUTPUT HIGH GPIO(91) #green
PB15 LED_BOOTLOADER OUTPUT HIGH GPIO(92) #blue
define HAL_LED_ON 1

# microSD support
PC12 SDMMC1_CK SDMMC1
PD2 SDMMC1_CMD SDMMC1
PC8 SDMMC1_D0 SDMMC1
PC9 SDMMC1_D1 SDMMC1
PC10 SDMMC1_D2 SDMMC1
PC11 SDMMC1_D3 SDMMC1
define FATFS_HAL_DEVICE SDCD1

# enable FAT filesystem support (needs a microSD defined via SDMMC)
define HAL_OS_FATFS_IO 1

define AP_BOOTLOADER_FLASH_FROM_SD_ENABLED 1
3 changes: 1 addition & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/X-MAV-AP-H743v2/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ COMPASS IST8310 I2C:ALL_INTERNAL:0x0E false ROTATION_YAW_90
define HAL_OS_FATFS_IO 1

#Serial Port defaults
define DEFAULT_SERIAL1_PROTOCOL SerialProtocol_MAVLink2
define DEFAULT_SERIAL3_PROTOCOL SerialProtocol_GPS
define DEFAULT_SERIAL4_PROTOCOL SerialProtocol_None
define DEFAULT_SERIAL6_PROTOCOL SerialProtocol_MSP_DisplayPort
define DEFAULT_SERIAL7_PROTOCOL SerialProtocol_RCIN
define DEFAULT_SERIAL8_PROTOCOL SerialProtocol_ESCTelemetry
Expand Down

0 comments on commit f6afc7e

Please sign in to comment.