diff --git a/software/apps/slave_node/boards/bluepill_f103rb.overlay b/software/apps/slave_node/boards/bluepill_f103rb.overlay index 8908b7e..0816af0 100644 --- a/software/apps/slave_node/boards/bluepill_f103rb.overlay +++ b/software/apps/slave_node/boards/bluepill_f103rb.overlay @@ -1,3 +1,17 @@ +/ { + chosen { + zephyr,console = &rtt; + zephyr,shell-uart = &rtt; // If using shell + }; + + rtt: rtt { + compatible = "segger,rtt-uart"; + #address-cells = <1>; + #size-cells = <0>; + label = "RTT"; + status = "okay"; + }; +}; &usart1 { modbus0 { compatible = "zephyr,modbus-serial"; diff --git a/software/apps/slave_node/src/main.c b/software/apps/slave_node/src/main.c index 8af411d..660bfd7 100644 --- a/software/apps/slave_node/src/main.c +++ b/software/apps/slave_node/src/main.c @@ -111,5 +111,10 @@ int main(void) LOG_ERR("Modbus RTU server initialization failed"); } LOG_INF("APP started"); + + while (1) { + k_sleep(K_MSEC(1000)); + } + return 0; -} +} \ No newline at end of file