From ac7c228a8c57c9a410131659619c51a972ec2091 Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Thu, 3 Nov 2022 17:31:32 +0200 Subject: [PATCH] app: zephyr: enable CONFIG_ASSERT in debug overlay Enable CONFIG_ASSERT=y in SOF debug overlay. Also add a commented out list of additional useful Zephyr debugging tools to the overlay. These incur a higher runtime cost, so are left disabled by default. These are all debug tools that have been tested to work with SOF and found useful. Signed-off-by: Kai Vehmanen --- app/debug_overlay.conf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/debug_overlay.conf b/app/debug_overlay.conf index 015a031f2410..439af1b67ea0 100644 --- a/app/debug_overlay.conf +++ b/app/debug_overlay.conf @@ -1 +1,11 @@ CONFIG_DEBUG=y +CONFIG_ASSERT=y + +# Following options can be enabled additionally, +# but will incur a higher runtime cost, so are thus +# disabled by default. +# +# CONFIG_STACK_SENTINEL=y +# CONFIG_SYS_HEAP_VALIDATE=y +# CONFIG_SPIN_VALIDATE=y +# CONFIG_SPIN_LOCK_TIME_LIMIT=50000