Pages: 1 ... 5 6 [7]   Go Down
Author Topic: Programmer is not responding  (Read 33718 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hopefully people won't mind that I've responded to an old thread but I am experiencing the same problem as described many times above.

I bought an Arduino Mega a few weeks ago (my first Arduino) and spent a day playing with it, writing and compiling sketches with no problems. I put it away and when I wanted to continue my exploration a week later, the board didn't work anymore.

Uploading of compiled sketches is failing with the following error:
avrdude: stk500_recv(): programmer is not responding

When I give the upload command the ftdi activity is as follows:
txLed__txLed__txLed___________________txLed____________fail

From what I remember my last working sketch involved some serial test output but if I connect my board to my pc, the serial monitor doesn't show any output. The board also doesn't seem to respond to the reset button (S1 right?) or to connecting the reset pin to ground.

From reading the posts in this thread it seems there are usually two main causes for this error, a malfunctioning FTDI chip or a bootloader problem.

Can anyone tell me what my problem is likely to be and what could have led to the problem? What options are there to revive my board?

Sadly the Mega has a soldered AVR which means replacing the chip is out of the question.

Thanks.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey, just adding my info.

Running Ubuntu 9.10:
Code:
hvishal@dish-desk:~$ uname -a
Linux dish-desk 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
vishal@dish-desk:~$ lsusb
Bus 007 Device 002: ...
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ...
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[b]Bus 003 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
[/b]Bus 003 Device 002: ...
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

The first few times I tried running the code, it didn't work and I was afraid I'd gotten a bad board. The first few times, only /dev/ttyS0 was available. However, /dev/ttyUSB0 came available once inexplicably, and that did the trick.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,
I was too having same kinda of problem for some hours back.
Recently, I figured the problem with the circuit. The problem was with RX and TX communication and resetting the Atmega chip. The RX and TX communication can be re-estabilished with RTS and DTR pin by a resistor. Later the connection can be given to reset pin of the atmega chip with a capacitor. I've attached the arduino duemilanove circuit with the correction. It works fine for me, hope same for you as well.
here is the link for the picture of the modified circuit that works.

hxxp://ujwal.shrestha.me/avrdude-stk500_recv-programmer-is-not-responding/
Logged

0
Offline Offline
Full Member
***
Karma: 1
Posts: 125
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it's only the incompatibility of avrdude with the ubuntu... like 10.04.. but I don't know exactly how to do..
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 14
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

OK, here's what I had to do to get the UNO to program using an AVRISPMKII to work with 0021 either to load sketches or load the boot loader:

1. uninstall anything related to AVR studio, this includes AVRTools, AVR studio (latest 4.18 SP3) and Jungo using Win Xp's Add Remove programs
2. open windows Device Manager (or as I call it "mangler")
3. Go to the Jungo entry and Uninstall both entries
4. reboot/ log off Windows seems to work
5. Set preferences.txt to avrispmkii  - see http://arduino.cc/en/Hacking/Programmer
6. Connect the AVRISPMKII
7. When Winblows asks the New Hardware found do a manual install and point to the avrisp2.inf in the [where ever you have Arduino installed]\hardware\tools\avr\utils\libusb\bin subdirectory
8. let it load that.
9. open Arduino

This should work to upload sketches and bootloader from arduino's IDE...
« Last Edit: October 29, 2010, 10:31:48 am by ajawamnet » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I'm here to add to the number of people whose Arduinos wouldn't respond. There doesn't seem to be a solution here that works for me, nor in any of the other numerous threads concerning the same issue.
My code compiles and uploads perfectly if I use the Arduino IDE, but I need to code certain parts in assembly for precise timing and the inline assembler won't accept certain pseudo-opcodes like .dseg or the LOW() and HIGH() macro, which makes avr assembly tutorials difficult to follow. (I'd be happy with either a solution to the issue above or the uploading problem below)
I have a hex file now, and I need it uploaded onto my Atmega328 on an Arduino Duemilanove. I tried doing this with avrdude:
Code:
howard@howard-laptop:~/bin/gavasm$ avrdude -p m328p -P /dev/ttyUSB0 -c arduino -b 19200 -U flash:w:hello.hex -v -v -v -v

avrdude: Version 5.10, compiled on Mar 24 2010 at 03:10:01
         Copyright (c) 2000-2005 Brian Dean, [URL REDACTED]
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/howard/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

Each time it does the "avrdude: Send: 0 [30]   [20] " part, the RX LED on the Arduino flashes. I checked the port, and it matches the one used in the IDE. If I use -c stk500v1, I get the same thing. I tested other baud rates as well and tried various combinations of pressing the reset button, unplugging and replugging, and uploading. What can be wrong with it?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 176
Posts: 12283
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Open the Arduino IDE.  Create or load a simple Sketch (like Blink).  Ensure the Sketch verifies (compiles) without error.  Hold the shift key and click the Upload button.  The AVRDUDE command line is output in the status area (window area below the editor).  Compare the command line that works with the command line you are trying to execute.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

=D Such a simple solution! Thank you.
Apparently, the baud rate is 57600.
« Last Edit: December 28, 2010, 09:13:29 am by howardh » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The solution in my case is I had the incorrect serial port selected in Arduino software:
Tools > Serial Port > /dev/ttyACM0

I had first incorrectly selected /dev/ttyS0, but it refers to a "real" serial port and not the USB-serial port I'm using on my Uno
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey there!
I've just bought an Ardiuino Duemilanove with ATMEGA328P-PU and I'm using Mac OS X 10.6.6 as well as Arduino IDE v0021. I soldered a 2x2x2 LED cube together and connected it to the board. I uploaded some simple programms and animations and everything worked well. Then I tried a little more complex programm, and it worked, too. It just did not do, what I expected it to do. I found a bug, fixed it and tried to reupload it. But it failed.
All this demands it might be an hardware error make me feel very sad, I had about 3 days of fun with it, and for an pupil like me 26euros is not that less money.
I did not touch the Arduino between uploading all the programms, neither hooked it up to another port or switched any "tool" preferences. It just happend with no apperant reason. When I try to upload the programm in verbose mode I get this error:
Code:
Binary sketch size: 1224 bytes (of a 30720 byte maximum)
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P/dev/tty.usbserial-A700dZYX -b57600 -D -Uflash:w:/var/folders/ER/ER00C9kOGCSQaa8DXG3yJ++++TI/-Tmp-/build2915355439927595079.tmp/testing.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct  9 2007 at 11:20:31
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/Philipp/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port            : /dev/tty.usbserial-A700dZYX
         Using Programmer      : stk500v1
         Overriding Baud Rate  : 57600
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude: Send: Q [51]   [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
When I disconnect and reconnect the Arduinothe TX and RX LEDs flash three times, the PWR LED indicates in switched on and the L LED and an LED on pin 13 andGND flash all the time. When I hit the S1 button, the L LED stops flashing as long as I keep the button hold down. Once I release it, it begins to flash again.
I think only software could have caused that error since I or anything else did touch the board or the cube or did influence it in any physical way.
You can take a look at my poor setup on YouTube https://www.youtube.com/watch?v=X0gDEQZMm9U (I'm still waiting for the breadboard and jumperwires coming from ebay..)

I hope you can help me, as I would love to explore the world of microcontrolers!

The program I tried to upload as it crashed was:
Code:
/*
 *      x   x   x
 *      0   1   2
 *
 * y0   0 - 1 - 2
 *      |   |   |
 * y1   3 - 4 - 5
 *      |   |   |
 * y2   6 - 7 - 8
 *
 *      |---n---|
 *
 *    p = n * y + x
 */

// height level pins, cathode, LOW
int lvl[2] = {7, 4};
// ground grid pins, anode, HIGH
int grd[2] = {0, 9};
// number of LEDs on one edge
int ledNumber = 1;


void reset(int ledNumber){
  // set all anodes to LOW & all cathodes to HIGH
  for(int i = 0; i < ledNumber; i++){
    digitalWrite(lvl[i], HIGH);
    digitalWrite(grd[i], LOW);
  }
}

void light(int x, int y, int z, int ledNumber, int duration){
  // coordinate mapping
  int pos = ledNumber * y + x;
  
  reset(ledNumber);

  // set LEDs
  digitalWrite(lvl[z], LOW);
  digitalWrite(grd[pos], HIGH);
  
  delay(duration);
  
  // specific reset
  digitalWrite(lvl[z], LOW);
  digitalWrite(grd[pos], HIGH);
}


void setup(){
  // set all OUTPUT pins
  for(int i = 0; i < ledNumber; i++){
    pinMode(lvl[i], OUTPUT);
    pinMode(grd[i], OUTPUT);
  }
  
  reset(ledNumber);
}

void loop(){
  // set LEDs
  digitalWrite(lvl[7], LOW);
  digitalWrite(grd[0], HIGH);
  
  delay(500);
  
  // specific reset
  digitalWrite(lvl[7], HIGH);
  digitalWrite(grd[0], LOW);
  
  delay(500);
 /*
  for(int i = 0; i < ledNumber; i++){
    for(int j = 0; j < ledNumber; j++){
      for(int k = 0; k < ledNumber; k++){
        light(i, j, k, ledNumber, 500);
        delay(500);
      }
    }
  }  
  */
}

My preferences are:
Code:
export.application.fullscreen=false
preproc.imports.list=java.applet.*,java.awt.Dimension,java.awt.Frame,java.awt.event.MouseEvent,java.awt.event.KeyEvent,java.awt.event.FocusEvent,java.awt.Image,java.io.*,java.net.*,java.text.*,java.util.*,java.util.zip.*,java.util.regex.*
editor.font.macosx=Monaco,plain,10
preproc.web_colors=true
export.application.platform=true
update.check=true
update.id=9058176843049598110
editor.indent=true
serial.stopbits=1
serial.databits=8
editor.font=Monaco,plain,10
editor.window.height.default=600
run.options.memory=false
editor.divider.size=0
editor.caret.blink=true
preproc.color_datatype=true
export.applet.separate_jar_files=false
preproc.output_parse_tree=false
run.window.bgcolor=#FFFFFF
console.lines=4
upload.using=bootloader
console.error.file=stderr.txt
run.options.memory.maximum=256
editor.tabs.expand=true
editor.window.height.min=450
editor.keys.home_and_end_travel_far=true
board=atmega328
console=true
run.present.exclusive.macosx=true
serial.parity=N
editor.tabs.size=2
console.length=500
last.sketch0.location=311,60,807,895,752
serial.port=/dev/tty.usbserial-A700dZYX
run.options=
console.auto_clear=true
update.last=1295037360877
editor.window.width.min=400
run.present.exclusive=true
export.application.platform.linux=true
editor.keys.home_and_end_travel_far.macosx=true
editor.window.height.min.windows=530
run.present.bgcolor=#666666
export.application.platform.windows=true
target=arduino
run.options.memory.initial=64
editor.keys.alternative_cut_copy_paste=false
editor.window.width.default=500
console.output.file=stdout.txt
preproc.substitute_unicode=true
run.present.stop.color=#cccccc
editor.external=false
last.screen.height=1200
editor.keys.shift_backspace_is_delete=true
editor.window.height.min.macosx=450
last.sketch.count=1
export.delete_target_folder=true
last.sketch0.path=/Users/Philipp/Documents/Arduino/testing/testing.pde
preproc.substitute_floats=true
editor.keys.alternative_cut_copy_paste.macosx=false
browser.linux=mozilla
editor.invalid=false
serial.debug_rate=9600
sketchbook.path=/Users/Philipp/Documents/Arduino
export.application.stop=true
editor.divider.size.windows=2
last.sketch1.path=/Applications/Arduino.app/Contents/Resources/Java/examples/1.Basics/Blink/Blink.pde
preproc.enhanced_casting=true
run.display=1
last.sketch1.location=361,110,807,895,752
platform.auto_file_type_associations=true
editor.antialias=false
preproc.save_build_files=false
last.screen.width=1920
export.application.platform.macosx=true
« Last Edit: January 14, 2011, 09:30:45 pm by Ps0ke » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

very good!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello everyone,
I was too having same kinda of problem for some hours back<a href="http://www.burberryhome.org">.</a>
Recently, I figured the problem with the circuit. The problem was with RX and TX communication and resetting the Atmega chip. The RX and TX communication can be re-estabilished with RTS and DTR pin by a resistor. Later the connection can be given to reset pin of the atmega chip with a capacitor. I've attached the arduino duemilanove circuit with the correction<a href="http://www.burberryonline.net">.</a> It works fine for me, hope same for you as well.
here is the link for the picture of the modified circuit that works.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you at least tell me, weather its a hardware or software error?
Do you think, buying a new atmega328 chip would solve this (I don't know how to burn the bootloader yet) or do I have to buy a whole new Arduino?
And, is it possible to demage the Arduino if you only use OUT pins?
Logged

Pages: 1 ... 5 6 [7]   Go Up
Jump to: