From 8bd5f902130fbde9235a0af750f59b9353ec3451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Betto?= <niccolo.betto@skywarder.eu> Date: Thu, 21 Mar 2024 16:42:25 +0100 Subject: [PATCH] Enable JTAG_DISABLE_SLEEP by default Disallow the CPU from going to sleep in the idle thread as JTAG debuggers lose communication with the device if it enters sleep mode --- miosix/default/config/miosix_settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miosix/default/config/miosix_settings.h b/miosix/default/config/miosix_settings.h index 5a4a6347..093a1a1e 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 -- GitLab