Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions extra/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ else
args="$*"
fi

# Check for debug flag and append
if [ x$2 == x"--debug" ]; then
args="$args -- -DEXTRA_CONF_FILE=../extra/debug.conf"
fi

echo
echo "Build target: $target $args"

Expand Down
29 changes: 29 additions & 0 deletions extra/debug.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-License-Identifier: Apache-2.0
# Debug configuration for Arduino Core Zephyr

# Enable debug mode
CONFIG_DEBUG=y

# Enable debug logging
CONFIG_LOG_MODE_IMMEDIATE=y
CONFIG_LOG_DEFAULT_LEVEL=4

# Workaround for TLS credentials issue fixed upstream
CONFIG_TLS_CREDENTIALS_LOG_LEVEL_INF=y

# Enable assertions
CONFIG_ASSERT=y
CONFIG_ASSERT_VERBOSE=y

# Enable stack overflow detection
CONFIG_STACK_SENTINEL=y

# Enable thread monitoring
CONFIG_THREAD_MONITOR=y
CONFIG_THREAD_NAME=y

# Disable compiler optimizations
CONFIG_DEBUG_OPTIMIZATIONS=y

# Enable additional LLEXT debugging
CONFIG_LLEXT_LOG_LEVEL_DBG=y
Loading