Manage Serial Port on macOS
When connected to a Mac, the MSP432 LaunchPad shows two serial ports.
Using screen on a Terminal window
Open a Terminal window and run the command to list the available ports.
$ ls /dev/tty.* /dev/tty.usbmodem00000001 /dev/tty.usbmodem00000004
You’ll notice the MSP432 provides two serial ports. Try the first and then the second with
$ screen /dev/tty.usbmodem00000001 9600 $ screen /dev/tty.usbmodem00000004 9600
The first one, /dev/tty.usbmodem00000001, corresponds to the serial console, to be used with Serial.print(), provided it has been configured with Serial.begin(9600).
The second, /dev/tty.usbmodem00000004, is used to upload the sketch, so there is no need to close the Serial console.
On Energia, just select the right serial port with the Tools > Port menu.
Disconnecting the board
Now, it is strongly recommended to always quit the serial console before disconnecting the board.
- Press ctrl-A ctrl-K for screen on the Terminal window, or
- Press cmd-W for the serial console on Energia.
This is a bug from macOS about the enumeration of the USB devices.