[C.CC USERS] Almost there with Ubuntu

Omer Kilic omer at concurrency.cc
Tue Apr 20 01:31:57 BST 2010


Hello Dennis,

Dennis Meade wrote the following on/at 20/04/2010 01:11:
> ... but "make upload" fails with the following.
> 
> avr-objcopy -O ihex -R .eeprom tvm-arduino tvm-arduino.hex
> ./reset-arduino /dev/ttyUSB0
> Traceback (most recent call last):
>   File "./reset-arduino", line 7, in <module>
>     ser = serial.Serial(sys.argv[1], 57600)
>   File "/usr/lib/python2.6/dist-packages/serial/serialutil.py", line 
> 166, in __init__
>     self.open()
>   File "/usr/lib/python2.6/dist-packages/serial/serialposix.py", line 
> 175, in open
>     raise SerialException("could not open port %s: %s" % (self._port, msg))
> serial.serialutil.SerialException: could not open port /dev/ttyUSB0: 
> [Errno 2] No such file or directory: '/dev/ttyUSB0'
> make: *** [upload] Error 1

The upload script is looking for '/dev/ttyUSB0' and as it is not present 
in your system (judging by the `lsusb` output you have provided) it fails.


> In the Windows Device Manager everything looks ok with the USB port 
> masquerading as COM3.

   - Right click on your VM instance within the Virtualbox window and 
select 'Settings'
   - Go to the USB tab and click the 'Add filter from device' button, 
the one with a USB plug and a green plus symbol
   - Select 'FTDI FT232R UART' from the list and press OK

Now, when you start your VM you will see that the FTDI VCP driver will 
stop working (COM3 will disappear) and it will be replaced by the 
'VirtualBox USB' driver, the filter driver for the USB devices.

Try doing `lsusb` after those and hopefully you should see the FTDI 
device under /dev/ttyUSBx.


Hope this helps,
Omer.




More information about the users mailing list