Skip to content

Commit 59cf80c

Browse files
raiden00plxiaoxiang781216
authored andcommitted
boards/nucleo-h745zi: access CM4 core NSH over uart rpmsg
Command on the CM7 core: nsh-cm7> cu -l /dev/ttyproxy NuttShell (NSH) NuttX-10.4.0 nsh-cm4>
1 parent 8833501 commit 59cf80c

File tree

2 files changed

+23
-2
lines changed
  • Documentation/platforms/arm/stm32h7/boards/nucleo-h745zi
  • boards/arm/stm32h7/nucleo-h745zi/configs/nsh_cm4_rptun

2 files changed

+23
-2
lines changed

Documentation/platforms/arm/stm32h7/boards/nucleo-h745zi/index.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@ The commands to build ``nsh_xxx_rptun`` configurations are as follows::
1414
cmake --build build_h7m7
1515
cmake --build build_h7m4
1616

17+
Serial Console
18+
--------------
19+
20+
The STLINK virtual console uses Serial Port 3 (USART3) with TX on PD8
21+
and RX on PD9 and is used by the Cortex-M7 core by default.
22+
23+
================= ===
24+
VCOM Signal Pin
25+
================= ===
26+
SERIAL_RX PD9
27+
SERIAL_TX PD8
28+
================= ===
29+
30+
Access to the Cortex-M4 core can be acheived using an additional UART port
31+
or via RPMSG UART by setting ``CONFIG_RPMSG_UART_CONSOLE=y`` in CM4 configuration.
32+
33+
If the RPMSG UART console is enabled, we can connect to it from CM7 using ``cu``::
34+
35+
nsh-cm7> cu -l /dev/ttyproxy
36+
NuttShell (NSH) NuttX-10.4.0
37+
nsh-cm4>
38+
1739
Tools
1840
-----
1941

boards/arm/stm32h7/nucleo-h745zi/configs/nsh_cm4_rptun/defconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,12 @@ CONFIG_RAM_SIZE=245760
3737
CONFIG_RAM_START=0x10000000
3838
CONFIG_RAW_BINARY=y
3939
CONFIG_RPMSG_UART=y
40+
CONFIG_RPMSG_UART_CONSOLE=y
4041
CONFIG_RPTUN=y
4142
CONFIG_RPTUN_PING=y
4243
CONFIG_RR_INTERVAL=200
4344
CONFIG_SCHED_WAITPID=y
4445
CONFIG_START_DAY=6
4546
CONFIG_START_MONTH=12
4647
CONFIG_START_YEAR=2011
47-
CONFIG_STM32H7_USART1=y
4848
CONFIG_SYSTEM_NSH=y
49-
CONFIG_USART1_SERIAL_CONSOLE=y

0 commit comments

Comments
 (0)