From a49677046e2e03f759a06dd46eed8196c009e331 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Thu, 23 Jan 2025 16:13:29 -0300 Subject: [PATCH] boards/stm32h7: Fix wrong usbnsh name and fix Documentation Fixes the incorrect board profile name to 'usbnsh' used on WeAct-STM32H743 board. Signed-off-by: Alan C. Assis --- .../stm32h7/boards/weact-stm32h743/index.rst | 24 +++++++++++++++++-- .../configs/{nshusb => usbnsh}/defconfig | 0 2 files changed, 22 insertions(+), 2 deletions(-) rename boards/arm/stm32h7/weact-stm32h743/configs/{nshusb => usbnsh}/defconfig (100%) diff --git a/Documentation/platforms/arm/stm32h7/boards/weact-stm32h743/index.rst b/Documentation/platforms/arm/stm32h7/boards/weact-stm32h743/index.rst index 363e93d849a84..54cb496d5dde2 100644 --- a/Documentation/platforms/arm/stm32h7/boards/weact-stm32h743/index.rst +++ b/Documentation/platforms/arm/stm32h7/boards/weact-stm32h743/index.rst @@ -59,9 +59,9 @@ USART1 Each weact-stm32h743 configuration is maintained in a sub-directory and can be selected as follow:: - tools/configure.sh weact-stm32h743: + ./tools/configure.sh weact-stm32h743: - Where is one of the following: +Where is one of the following: Configuration Directories @@ -73,3 +73,23 @@ nsh Configures the NuttShell (nsh) located at apps/examples/nsh. This configuration enables a serial console on UART1. +usbnsh +------ + +Configures the NuttShell (nsh) located at apps/examples/nsh. This +configuration enables a serial console over USB. + +After flasing and reboot your board you should see in your dmesg logs:: + + [ 2638.948089] usb 1-1.4: new full-speed USB device number 16 using xhci_hcd + [ 2639.054432] usb 1-1.4: New USB device found, idVendor=0525, idProduct=a4a7, bcdDevice= 1.01 + [ 2639.054437] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 + [ 2639.054438] usb 1-1.4: Product: CDC/ACM Serial + [ 2639.054440] usb 1-1.4: Manufacturer: NuttX + [ 2639.054441] usb 1-1.4: SerialNumber: 0 + [ 2639.074861] cdc_acm 1-1.4:1.0: ttyACM0: USB ACM device + [ 2639.074886] usbcore: registered new interface driver cdc_acm + [ 2639.074887] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters + +You may need to press **ENTER** 3 times before the NSH show up. + diff --git a/boards/arm/stm32h7/weact-stm32h743/configs/nshusb/defconfig b/boards/arm/stm32h7/weact-stm32h743/configs/usbnsh/defconfig similarity index 100% rename from boards/arm/stm32h7/weact-stm32h743/configs/nshusb/defconfig rename to boards/arm/stm32h7/weact-stm32h743/configs/usbnsh/defconfig