diff --git a/Tools/AP_Bootloader/bl_protocol.cpp b/Tools/AP_Bootloader/bl_protocol.cpp index 146095aed5..7267a1c637 100644 --- a/Tools/AP_Bootloader/bl_protocol.cpp +++ b/Tools/AP_Bootloader/bl_protocol.cpp @@ -224,8 +224,10 @@ jump_to_app() // resetting the clocks is needed for loading NuttX rccDisableAPB1(~0, 0); rccDisableAPB2(~0, 0); +#if HAL_USE_SERIAL_USB == TRUE rccResetOTG_FS(); rccResetOTG_HS(); +#endif // disable all interrupt sources port_disable();