Skip to content

Commit 3ad3b66

Browse files
raiden00plxiaoxiang781216
authored andcommitted
boards/thingy52: use RTT console as default
External JLink is required to program the board, so the console via RTT is available anyway. It is much more convenient to use than soldering the P4 connector and working with an external UART converter.
1 parent 59cf80c commit 3ad3b66

File tree

2 files changed

+19
-5
lines changed
  • Documentation/platforms/arm/nrf52/boards/thingy52
  • boards/arm/nrf52/thingy52/configs/nsh

2 files changed

+19
-5
lines changed

Documentation/platforms/arm/nrf52/boards/thingy52/index.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,27 @@ Battery monitoring No
2929
Serial Console
3030
==============
3131

32+
At default serial console is available with Segger RTT driver.
33+
For access to the RTT console use this commands::
34+
35+
JLinkGDBServer -if SWD -device stm32h743zi -speed 16000
36+
sudo socat -d -d PTY,link=/dev/ttyRTT0,raw,ignoreeof TCP:127.0.0.1:19021,reuseaddr
37+
minicom -D /dev/ttyRTT0
38+
39+
An alternative option is to use the P4 connector and connect an external UART converter:
40+
3241
===== ========== ==========
3342
Pin Signal Notes
3443
===== ========== ==========
35-
P0.02 UART TX P4 header
36-
P0.03 UART RX P4 header
44+
P0.02 UART0 TX P4 header
45+
P0.03 UART0 RX P4 header
3746
===== ========== ==========
3847

48+
For this you need to select the following options in your configuration::
49+
50+
CONFIG_NRF52_UART0=y
51+
CONFIG_UART0_SERIAL_CONSOLE=y
52+
3953
Configurations
4054
==============
4155

@@ -49,7 +63,7 @@ Where <subdir> is one of the following:
4963
nsh
5064
----
5165

52-
Basic NuttShell configuration (console enabled in UART0, exposed via P4 header, at 115200 bps).
66+
Basic NuttShell configuration (console enabled on Segger RTT channel).
5367

5468
Flash & Debug
5569
=============

boards/arm/nrf52/thingy52/configs/nsh/defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ CONFIG_ARCH_STDARG_H=y
1919
CONFIG_BOARD_LOOPSPERMSEC=5500
2020
CONFIG_INIT_ENTRYPOINT="nsh_main"
2121
CONFIG_MM_REGIONS=2
22-
CONFIG_NRF52_UART0=y
2322
CONFIG_NSH_ARCHINIT=y
2423
CONFIG_NSH_FILEIOSIZE=512
2524
CONFIG_NSH_LINELEN=64
@@ -30,9 +29,10 @@ CONFIG_RAM_START=0x20000000
3029
CONFIG_RAW_BINARY=y
3130
CONFIG_RR_INTERVAL=200
3231
CONFIG_SCHED_WAITPID=y
32+
CONFIG_SERIAL_RTT0=y
3333
CONFIG_START_DAY=26
3434
CONFIG_START_MONTH=3
3535
CONFIG_SYMTAB_ORDEREDBYNAME=y
36+
CONFIG_SYSLOG_RTT=y
3637
CONFIG_SYSTEM_NSH=y
3738
CONFIG_TASK_NAME_SIZE=0
38-
CONFIG_UART0_SERIAL_CONSOLE=y

0 commit comments

Comments
 (0)