From af3be52925912112703f3ce6bf8d7b42d62dadf9 Mon Sep 17 00:00:00 2001 From: richaravoil Date: Tue, 30 Apr 2024 16:56:29 +0200 Subject: [PATCH] AP_HAL_ChibiOS: adding active UART in the bootloader Adding USART6 to be active in bootloader phase to allow flashing with a serial connection. --- libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef-bl.dat | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef-bl.dat b/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef-bl.dat index 19fa51f746..dd81acb853 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef-bl.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/JHEM_JHEF405/hwdef-bl.dat @@ -21,7 +21,11 @@ FLASH_RESERVE_START_KB 0 FLASH_BOOTLOADER_LOAD_KB 48 # order of UARTs (and USB) -SERIAL_ORDER OTG1 +SERIAL_ORDER OTG1 USART6 + +# adding USART6 to be active in bl +PC6 USART6_TX USART6 +PC7 USART6_RX USART6 # PA10 IO-debug-console PA11 OTG_FS_DM OTG1