diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/halconf.h b/libraries/AP_HAL_ChibiOS/hwdef/common/halconf.h index 1867345df7..f84b7fcdc8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/halconf.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/halconf.h @@ -458,7 +458,8 @@ * @note The default is 2 buffers. */ #if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__) -#if defined(STM32H7) +// more USB buffers works well on H7 and higher end F7 +#if defined(STM32H7) || (defined(STM32F7) && HAL_MEMORY_TOTAL_KB>=512) #define SERIAL_USB_BUFFERS_NUMBER 4 #else #define SERIAL_USB_BUFFERS_NUMBER 2