diff --git a/src/bsps/stm32f205rc_ciuti/config/miosix_settings.h b/src/bsps/stm32f205rc_ciuti/config/miosix_settings.h
index 22c33aa669e90ce3ce872c672a623f431203bc2d..a6e59ded3cb9592b5f37241c567c14290414dd7d 100644
--- a/src/bsps/stm32f205rc_ciuti/config/miosix_settings.h
+++ b/src/bsps/stm32f205rc_ciuti/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-// #define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_con_rig/config/miosix_settings.h b/src/bsps/stm32f429zi_con_rig/config/miosix_settings.h
index 5fe66bf6c7986666ec94c8c52588f3c5d8cfef58..5bb339e02447493b119574e5027f4970721d88bf 100644
--- a/src/bsps/stm32f429zi_con_rig/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_con_rig/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_death_stack_v1/config/miosix_settings.h b/src/bsps/stm32f429zi_death_stack_v1/config/miosix_settings.h
index dcffa1b92935ab23b831f202ea04735c0becd2a5..10946aeba9077c07d1b692eb1713a26d1431a55a 100644
--- a/src/bsps/stm32f429zi_death_stack_v1/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_death_stack_v1/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_death_stack_v2/config/miosix_settings.h b/src/bsps/stm32f429zi_death_stack_v2/config/miosix_settings.h
index 5006e0bcaa1ae584f1ab62ed191167433d3746c2..aaee8b547e5996e93ae14c79aa38ea091cab45e6 100644
--- a/src/bsps/stm32f429zi_death_stack_v2/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_death_stack_v2/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_death_stack_v3/config/miosix_settings.h b/src/bsps/stm32f429zi_death_stack_v3/config/miosix_settings.h
index cdef9ddab8da3e0805cb40b1267421740b358929..ee7e8487d9952b6c54a6a1b1be15b262e2731c86 100644
--- a/src/bsps/stm32f429zi_death_stack_v3/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_death_stack_v3/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_nokia/config/miosix_settings.h b/src/bsps/stm32f429zi_nokia/config/miosix_settings.h
index 2b82675b7ea6bda4d370257b9a2a932ebb711d8a..760430d5c876ece665abec6356665703fbbe03f9 100644
--- a/src/bsps/stm32f429zi_nokia/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_nokia/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_parafoil/config/miosix_settings.h b/src/bsps/stm32f429zi_parafoil/config/miosix_settings.h
index 5006e0bcaa1ae584f1ab62ed191167433d3746c2..aaee8b547e5996e93ae14c79aa38ea091cab45e6 100644
--- a/src/bsps/stm32f429zi_parafoil/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_parafoil/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_pyxis_auxiliary/config/miosix_settings.h b/src/bsps/stm32f429zi_pyxis_auxiliary/config/miosix_settings.h
index 5006e0bcaa1ae584f1ab62ed191167433d3746c2..aaee8b547e5996e93ae14c79aa38ea091cab45e6 100644
--- a/src/bsps/stm32f429zi_pyxis_auxiliary/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_pyxis_auxiliary/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f429zi_rig/config/miosix_settings.h b/src/bsps/stm32f429zi_rig/config/miosix_settings.h
index 5fe66bf6c7986666ec94c8c52588f3c5d8cfef58..5bb339e02447493b119574e5027f4970721d88bf 100644
--- a/src/bsps/stm32f429zi_rig/config/miosix_settings.h
+++ b/src/bsps/stm32f429zi_rig/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f756zg_nucleo/config/miosix_settings.h b/src/bsps/stm32f756zg_nucleo/config/miosix_settings.h
index 25ff282354a7b536cf65c740980c39de3be6eca7..924bbc52a40b6a327ce1f3fd61337a017ce87d71 100644
--- a/src/bsps/stm32f756zg_nucleo/config/miosix_settings.h
+++ b/src/bsps/stm32f756zg_nucleo/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_automated_antennas/config/miosix_settings.h b/src/bsps/stm32f767zi_automated_antennas/config/miosix_settings.h
index 5a19de638c12a439c7614beed3ef70f990fc280d..4df5735cec0075381011304085875d00a309d003 100644
--- a/src/bsps/stm32f767zi_automated_antennas/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_automated_antennas/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_compute_unit/config/miosix_settings.h b/src/bsps/stm32f767zi_compute_unit/config/miosix_settings.h
index e1ca4aac6bef352c5b4d367b3ba84ff5f4445499..64b0670cab5f4cdfc3d8e06db7cc06e913deae15 100644
--- a/src/bsps/stm32f767zi_compute_unit/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_compute_unit/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_compute_unit_v2/config/miosix_settings.h b/src/bsps/stm32f767zi_compute_unit_v2/config/miosix_settings.h
index e1ca4aac6bef352c5b4d367b3ba84ff5f4445499..64b0670cab5f4cdfc3d8e06db7cc06e913deae15 100644
--- a/src/bsps/stm32f767zi_compute_unit_v2/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_compute_unit_v2/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_death_stack_v4/config/miosix_settings.h b/src/bsps/stm32f767zi_death_stack_v4/config/miosix_settings.h
index 5fe66bf6c7986666ec94c8c52588f3c5d8cfef58..5bb339e02447493b119574e5027f4970721d88bf 100644
--- a/src/bsps/stm32f767zi_death_stack_v4/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_death_stack_v4/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_gemini_gs/config/miosix_settings.h b/src/bsps/stm32f767zi_gemini_gs/config/miosix_settings.h
index 1b49a8e7ca34bfda7db31258fda251eb142e34f1..a83f2a517a69131baa3e820b0754ae58a4eb0b0e 100644
--- a/src/bsps/stm32f767zi_gemini_gs/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_gemini_gs/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_gemini_motor/config/miosix_settings.h b/src/bsps/stm32f767zi_gemini_motor/config/miosix_settings.h
index e1ca4aac6bef352c5b4d367b3ba84ff5f4445499..64b0670cab5f4cdfc3d8e06db7cc06e913deae15 100644
--- a/src/bsps/stm32f767zi_gemini_motor/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_gemini_motor/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag
diff --git a/src/bsps/stm32f767zi_rig_v2/config/miosix_settings.h b/src/bsps/stm32f767zi_rig_v2/config/miosix_settings.h
index e1ca4aac6bef352c5b4d367b3ba84ff5f4445499..64b0670cab5f4cdfc3d8e06db7cc06e913deae15 100644
--- a/src/bsps/stm32f767zi_rig_v2/config/miosix_settings.h
+++ b/src/bsps/stm32f767zi_rig_v2/config/miosix_settings.h
@@ -153,7 +153,7 @@ const unsigned char MAX_OPEN_FILES = 8;
  * mode, so to use debugging it is necessary to disable sleep in the idle
  * thread. By default it is not defined (idle thread calls sleep).
  */
-//#define JTAG_DISABLE_SLEEP
+#define JTAG_DISABLE_SLEEP
 
 #if defined(WITH_DEEP_SLEEP) && defined(JTAG_DISABLE_SLEEP)
 #error Deep sleep cannot work together with jtag