diff --git a/miosix/default/config/miosix_settings.h b/miosix/default/config/miosix_settings.h
index 5a4a634718015bd5a59c10e93b0addd984481e11..093a1a1efc244f448891ff90b40bbf86070fc182 100644
--- a/miosix/default/config/miosix_settings.h
+++ b/miosix/default/config/miosix_settings.h
@@ -158,7 +158,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