mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
board/stm32f401rc-rs485: Add USB console support
This commit adds support to use NSH over USB without connecting an external USB/Serial adapter. Signed-off-by: Rodrigo Sim <rcsim10@gmail.com>
This commit is contained in:
@@ -224,6 +224,27 @@ nsh
|
||||
Configures the NuttShell (nsh) located at apps/examples/nsh. This
|
||||
configuration enables a serial console on USART6.
|
||||
|
||||
|
||||
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.
|
||||
|
||||
sdcard
|
||||
------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user