diff --git a/Marlin/src/HAL/HAL_STM32/HAL.h b/Marlin/src/HAL/HAL_STM32/HAL.h
index 7d369d36c79ba4e7ac46d35ebbed786e4928df7c..84c57a1434fbf7bf43201c2e61650301b6fff10d 100644
--- a/Marlin/src/HAL/HAL_STM32/HAL.h
+++ b/Marlin/src/HAL/HAL_STM32/HAL.h
@@ -42,8 +42,6 @@
 #include "fastio_STM32.h"
 #include "watchdog_STM32.h"
 
-#include "HAL_timers_STM32.h"
-
 // --------------------------------------------------------------------------
 // Defines
 // --------------------------------------------------------------------------
@@ -101,6 +99,8 @@
   #define NUM_SERIAL 1
 #endif
 
+#include "HAL_timers_STM32.h"
+
 /**
  * TODO: review this to return 1 for pins that are not analog input
  */