diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef-bl.dat index d6398e7f00..87a6bc1458 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-TE/hwdef-bl.dat @@ -33,3 +33,6 @@ PB12 OSD_CS CS PC13 FLASH_CS CS PC1 SDCARD_CS CS +# Turn on switched supply and camera switch/output during bootloader to match default +PA4 PINIO1 OUTPUT LOW +PB5 PINIO2 OUTPUT LOW diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef-bl.dat index d3862451d5..f2799e4460 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF765-Wing/hwdef-bl.dat @@ -41,3 +41,6 @@ PC4 IMU1_CS CS PB12 MAX7456_CS CS PD7 IMU2_CS CS PE11 SPARE_CS CS + +# turn switched supply on at power up +PE4 PINIO1 OUTPUT LOW diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef-bl.dat index 72e272971d..1bf46917e9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekH743/hwdef-bl.dat @@ -38,6 +38,9 @@ PA12 OTG_FS_DP OTG1 PA13 JTMS-SWDIO SWD PA14 JTCK-SWCLK SWD +# make sure Vsw is on during bootloader +PD10 PINIO1 OUTPUT LOW + PE3 LED_BOOTLOADER OUTPUT LOW define HAL_LED_ON 0