All Forums > Programming Questions

Wiring 1.0 RC3 for Linux

(1/4) > >>

marlonj:
Hello There

I just download the new version of Wiring 1.0 RC3 for Linux
Thanks to Gabriel Zea !!!

- I can't program the Wiring 1.0 that i update to firmware 2.x, the serial port is recognized but when i try to upload the sketch the error : avrdude: stk500v2_ReceiveMessage(): timeout is show. I tested with Windows version and it works fine. I'm using Ubuntu 11.04 32 Bits
- I can't program the Arduino Uno, the serial port is not recognized, maybe is because the name of the serial port that is /dev/ttyACM0 and Wiring only recognize de ttyUSB type ?
- I was able to program a Freeduino (with the Arduino Uno Bootloader) that use a FTDI chip, so the Wiring can see the /dev/ttyUSB0 serial port

The debug info show when i try to upload the sketch :

/home/marlonj/sw/Wiring_1.0rc3/tools//avr/bin/avrdude -C/home/marlonj/sw/Wiring_1.0rc3/tools//avr/bin//avrdude.conf -v -v -v -v -patmega128 -cwiring -P/dev/ttyUSB1 -b115200 -D -Uflash:w:/home/marlonj/sw/Wiring_1.0rc3/examples/Basics/1.Getting Started/Blink/build/Blink.cpp.hex:i

avrdude: Version 5.10svn, compiled on Jun 30 2011 at 18:42:03
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/home/marlonj/sw/Wiring_1.0rc3/tools//avr/bin//avrdude.conf"
         User configuration file is "/home/marlonj/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB1
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding

zea:
Hy Marlon!

I'm working on this to solve the problem, can you please download and test this new version : http://files.randomlab.net/wiring/1.0/Wiring_1.0rc3.tar.gz

Cheers!

zea

marlonj:
Hello There

I just download the file but the problems persists :(
I think is not a problem with the Wiring IDE cause i try to upload the sketch using the avrdude package of Ubuntu and the same message is show. I think is a problem with my board

Not solution yet to discover the Arduino Uno port /dev/ttyACM0

Works fine with an Freeduino with optiboot and FTDI Usb-Serial

marlonj

barragan:
Could it be something related to this? http://ubuntuforums.org/showthread.php?t=1622981

There seems to be a solution here too: http://thenybble.de/projects/arduino-64-bit.html

marlonj:
Solutions for Arduino Uno Serial Port :

First Solution :
   Use the RXTX Java library patched to support the /dev/ttyACM* (easy)
   You need to download the Arduino IDE for Linux (32 or 64 bits) http://arduino.cc/en/Main/Software
   go to the directory arduino-0022/lib/ and copy the files RXTXcomm.jar librxtxSerial.so and replace
   the files at Wiring_1.0rc3/lib/serial   

Second Solution :
   Add a Symbolic link to the ttyACM* port (hard, needs root or sudo permissions)
   you need to create a rule where the kernel creates a symbolic link with the ttyUSB name for each ttyACM port
   KERNEL=="ttyACM*", SYMLINK+="ttyUSB%n"
   http://thenybble.de/projects/arduino-64-bit.html

I use the first Solution and works fine in my Ubuntu Linux 32bits
Maybe the patched version of RXTX can be added to the Wiring Linux Distribution

Troubleshooting

- Check if the librxtx-java package is installed and remove it or update to the last release

marlonj

Navigation

[0] Message Index

[#] Next page

Go to full version