What do I do on the Mac? Right now I have an STM32H743 board connected using the debug usb connector and I know that presents itself as a serial port. I would like to use it.
ioreg -c IOSerialBSDClient | grep usbIn the middle of the info this spews out was:
| | | | | "IOTTYBaseName" = "usbmodem"
| | | | | "IOTTYDevice" = "usbmodem103"
| | | | | "IOCalloutDevice" = "/dev/cu.usbmodem103"
| | | | | "IODialinDevice" = "/dev/tty.usbmodem103"
As it turned out /dev/tty.usbmodem103 was what I was looking for.
Ctrl-A Ctrl=\I do this:
brew install picocomThis gives my old friend "picocom". Typing Ctrl-A Ctrl-X gets me out.
picocom -b 115200 cu.usbmodem103Part of the trick was setting the baud rate. Both screen and picocom default to 9600 and this shows nothing at all with my device talking at 115200. Note: The name changes each time you plug in the board.
tom@chispa:~ ls -l /dev/cu* crw-rw-rw- 1 root wheel 0x9000005 Oct 4 07:33 /dev/cu.Bluetooth-Incoming-Port crw-rw-rw- 1 root wheel 0x9000001 Oct 4 07:32 /dev/cu.debug-console crw-rw-rw- 1 root wheel 0x9000003 Oct 4 07:57 /dev/cu.usbmodem21403No telling what cu.debug-console is. It is some kind of virtual serial port built into MacOS and definitely not what we are looking for.