Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Arduino board using USB to serial won't work

  1. #1
    Join Date
    Apr 2008
    Beans
    15

    Angry Arduino board using USB to serial won't work

    I have the Arduino microcontroller (Dec. clone bare bones board with 168 ) and the ftdi USB to serial cable.
    Ref: http://www.moderndevice.com/Images/BBBRevD800.jpg
    Ref: http://www.ftdichip.com/Products/Eva...s/TTL-232R.htm

    I am running under 8.04 on ia386. My problem is that I can not get the Arduino environment to program the board.

    I followed the instructions to install Arduino as per:http://www.arduino.cc/playground/Linux/Ubuntu
    Which I am recapping below:

    1. Using synaptic mgr, installed sun-java6-jre*, gcc-avr, avr-libc.
    2. Downloaded the arduino environment (arduino-0011-linux-tgz)
    3. Attempted to sudo update-alternatives --config java, but the msg stated it was not necessary since only one Java was found.
    4. Double clicked the Arduino file in the Arduino app folder.
    5. Application runs, I select an example sketch and compile it. Arduino Tools->Serial port shows /dev/usbtty0 selected as expected.
    6. When I attempt to upload, I get:
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_recv(): programmer is not responding

    Thinking that brltty was interfering, I uninstalled it. No change. *Then, thinking that since the instructions called for java5-jre instead of Java6-jre, I uninstalled the 6 and installed the 5. No change. Hardware Led is on, cables are attached. Rebooted, pressed reset before/after programming--all without effect.

    I know the hardware is likely ok since I can program it under winxp.

    I would like to hear from anyone who has this hardware/software combination that got it to work. Or, any other tips are welcome.

    Thanks in advance.
    Steve.

  2. #2
    Join Date
    Apr 2008
    Beans
    15

    Re: Arduino board using USB to serial won't work

    Come on, guys. Someone has to know this!

    Thanks.
    Steve.

  3. #3
    Join Date
    Apr 2008
    Beans
    15

    Re: Arduino board using USB to serial won't work

    See Arduino forum for possible work to fix this.

  4. #4
    Join Date
    Apr 2007
    Location
    Loveland, CO
    Beans
    523
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Arduino board using USB to serial won't work

    I'm not a linux guru, but i got the Arduino software to run on my 8.04 Heron system the other day.

    http://www.arduino.cc/playground/Learning/Linux

    Step one: get java runtime (jre. I searched for "jre" in synaptic package manager, and installed the "openjdk-6-jre" packages. Works great.

    Step two: install the "gcc-avr" tools. also, the "binutils-avr", and the "avrdude" packages from the repositories. also the "acr-libc" package.

    Step three: searched for the "brltty" package in synaptic, and removed it just in case.

    Step four: copy and extract the arduino software to my desktop. Open the folder. And double click on the "arduino" script file. When prompted what to do click "run"

    hope that helps.

    -Andrew
    -keen101

  5. #5
    Join Date
    Apr 2007
    Location
    Loveland, CO
    Beans
    523
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Arduino board using USB to serial won't work

    I don't know, but it might be a problem with your version of java. I coulden't get sun's version of java working, so i tried the "openjdk-6-jre" packages instead. Works great for me.

    My suggestion is to try removing sun java, and trying the "openjdk-6-jre" version.

  6. #6
    Join Date
    Apr 2008
    Beans
    15

    Re: Arduino board using USB to serial won't work

    Hi, keen101

    Pls see the hardware I am using.

    Especially note the programming cable.
    Is this the same as yours?

    Please give me a shout back.
    Thanks.
    Steve.

  7. #7
    Join Date
    Apr 2007
    Location
    Loveland, CO
    Beans
    523
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Arduino board using USB to serial won't work

    hmm... well,

    I'm not using the exact same hardware as you, but i don't think that really matters. And as for the cable, all ftdi cables and chips are pretty much the same as far as i know. I don't think it's the cable.

    this is the version I'm using here

    here is a link to someone who had a similar problem with a similar arduino. http://forum.sparkfun.com/viewtopic....ght=stk500recv

    turns out that they had a broken bootloader. But, since you said works on xp, then it's probably not that.



    I suspect it's either your version of java, or maybe you don't have all the required avrdude packages installed. Try using external power, see if that helps too. I don't know.

    But, i really can't say for sure. I'm not an arduino expert. That's just my opinion.'

    I really hope you get it working though.

    -Andrew
    -keen101

  8. #8
    Join Date
    Jan 2009
    Beans
    1

    Re: Arduino board using USB to serial won't work

    Quote Originally Posted by Keen101 View Post
    I'm not a linux guru, but i got the Arduino software to run on my 8.04 Heron system the other day.

    http://www.arduino.cc/playground/Learning/Linux

    Step one: get java runtime (jre. I searched for "jre" in synaptic package manager, and installed the "openjdk-6-jre" packages. Works great.

    Step two: install the "gcc-avr" tools. also, the "binutils-avr", and the "avrdude" packages from the repositories. also the "acr-libc" package.

    Step three: searched for the "brltty" package in synaptic, and removed it just in case.

    Step four: copy and extract the arduino software to my desktop. Open the folder. And double click on the "arduino" script file. When prompted what to do click "run"

    hope that helps.

    -Andrew
    -keen101

    Very helpfull! thanks! just a small thing...its not "acr-libc" its "avr-libc" in the synaptic package manager.For me , a fairly new linux and arduino user was a big deal...

    Dimitri

  9. #9
    Join Date
    Apr 2006
    Location
    Chicago
    Beans
    1,406
    Distro
    Ubuntu

    Re: Arduino board using USB to serial won't work

    I have the same problem.. It works in OSX but not linux.
    Constant development is the law of life, and a man who always tries to maintain his dogmas in order to appear consistent drives himself into a false position - Mahatma Gandhi

  10. #10
    Join Date
    Jan 2009
    Beans
    1

    Exclamation Re: Arduino board using USB to serial won't work

    Hi,
    sorry about bad english. Is not may native language but anyway I will tray to help.

    So, I'm Arduino user and use them in Ubuntu like Linux. Linux Mint. So, it's the same thing.

    There is little pyhon code. This code make Arduino bootloader wake up.

    Code:
    import serial
    import time
    import sys
    
    if len(sys.argv) != 2:
        print "Please specify a port, e.g. %s /dev/ttyUSB0" % sys.argv[0]
        sys.exit(-1)
        
    ser = serial.Serial(sys.argv[1], 19200, timeout=1)
    ser.setDTR(1)
    time.sleep(0.5)
    ser.setDTR(0)
    ser.close()
    There is shell script for uploading to Arduino board:
    Code:
    #!/bin/bash
    
    # There is 2 parameters. First is HEX faile name and second one is port adress. Example /dev/ttyUSB0
    
    if [ -z "$1" ]; then 
                  echo Use: $0 blablabla.hex /dev/ttyUSB0
                  exit
              fi
    
    python ./unix_pulsedtr.py $2
    ./arduino-0017/hardware/tools/avrdude -p m168 -C /etc/avrdude.conf -c avrisp -P $2 -b 19200 -F -U flash:w:$1
    Thats code realy work. Is tested and help for me.
    I'm opened for questions about Arduino using with Linux and GCC. With or without Arduino IDE.

    Thanks for Your attention

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •