Pinetime does not have UART pins but UART-like connection can be achieved using RTT (Real Time Transfer) feature of Segger JLink debugger. RTT data can be accessed using the SEGGER tool (JLinkRTTViewer) or by using telnet connection to active debug session. Second method is recommended since it gives better throughput and allows bidirectional communication using Zephyr Shell (with RTT as backend). PuTTY can be used to telnet to debug session.
Prerequisites:
Following steps needs to be taken to run RTT shell in the application:
Enable logging and shell over RTT:
\
CONFIG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_SHELL=y
CONFIG_SHELL_BACKEND_RTT=y
``
Build and flash application.
\
west debug (will start gdb)
continue (in gdb console)
``Resources: