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.
This commit is contained in:
Eduard Iten 2025-07-01 12:36:11 +02:00
parent b005fd5c11
commit 0d3696bf93
2 changed files with 6 additions and 5 deletions

View File

@ -2,8 +2,9 @@
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
CONFIG_PRINTK=y CONFIG_PRINTK=y
# Enable UART console # Disable UART console
CONFIG_UART_CONSOLE=y CONFIG_UART_CONSOLE=n
# Disable RTT console to avoid conflicts # Enable RTT console
CONFIG_RTT_CONSOLE=n CONFIG_RTT_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y

View File

@ -9,7 +9,7 @@
int main(void) int main(void)
{ {
while (1) { while (1) {
printk("Hello from Slave Node!\n"); printk("Hello from the updated Slave Node! Version 2.0\n");
k_msleep(1000); k_msleep(1000);
} }
return 0; return 0;