From 0d3696bf938a92c8f877590597e584f6ae9de888 Mon Sep 17 00:00:00 2001 From: Eduard Iten Date: Tue, 1 Jul 2025 12:36:11 +0200 Subject: [PATCH] feat(slave_node): Switch to RTT console output - Reconfigure the project to use SEGGER RTT for console output instead of UART. - Update the main loop with a new printk message for testing purposes. --- software/apps/slave_node/prj.conf | 9 +++++---- software/apps/slave_node/src/main.c | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/software/apps/slave_node/prj.conf b/software/apps/slave_node/prj.conf index 1ed07ab..a918445 100644 --- a/software/apps/slave_node/prj.conf +++ b/software/apps/slave_node/prj.conf @@ -2,8 +2,9 @@ CONFIG_CONSOLE=y CONFIG_PRINTK=y -# Enable UART console -CONFIG_UART_CONSOLE=y +# Disable UART console +CONFIG_UART_CONSOLE=n -# Disable RTT console to avoid conflicts -CONFIG_RTT_CONSOLE=n \ No newline at end of file +# Enable RTT console +CONFIG_RTT_CONSOLE=y +CONFIG_USE_SEGGER_RTT=y diff --git a/software/apps/slave_node/src/main.c b/software/apps/slave_node/src/main.c index c5e0746..e1ded0a 100644 --- a/software/apps/slave_node/src/main.c +++ b/software/apps/slave_node/src/main.c @@ -9,7 +9,7 @@ int main(void) { while (1) { - printk("Hello from Slave Node!\n"); + printk("Hello from the updated Slave Node! Version 2.0\n"); k_msleep(1000); } return 0;