stevearc/vim-arduino

Serial Port/Serial Monitor Not Working

kamenomagic opened this issue · 3 comments

Arduino IDE itself, everything works perfectly as expected.

In vim-arduino, it is able to upload to the board perfectly. Awesome stuff.

But, it is unable to execute the "ArduinoChoosePort" command and therefore the "ArduinoUploadAndSerial" doesn't work either, reporting:

Error detected while processing function arduino#ChoosePort:
line    7:
No likely serial ports detected!

It's strange that it is able to upload on the correct port but then can't display or allow choosing of the ports.

Any thoughts?

We're looking for the serial port based on a couple of glob patterns which you can find here:

if !exists('g:arduino_serial_port_globs')
let g:arduino_serial_port_globs = ['/dev/ttyACM*',
\'/dev/ttyUSB*',
\'/dev/tty.usbmodem*',
\'/dev/tty.usbserial*']
endif

If you can find out what the port actually is, it's easy to set the g:arduino_serial_port_globs value in your vimrc to match it properly. I'd also be curious to know what the pattern is for your port to see if it's something I should add to the default list of globs.

#10 I promised a pull request so here it is