avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-chat] avrdude arduino failed to connect to mega 644 chip via a Mega


From: Peter Saunderson
Subject: [avr-chat] avrdude arduino failed to connect to mega 644 chip via a Mega 2560 running mega-isp sketch - BUG FIX
Date: Sun, 30 Jun 2013 22:25:32 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7

Hi,

I started a 
threadhttp://forum.arduino.cc/index.php?topic=174857.msg1297970#msg1297970  to 
see if others have the same problem using mega-isp sketch with mega 2560 
Arduino board...
Steps to reproduce the problem
1. build latest avrdudehttp://www.nongnu.org/avrdude/
2. install mega-isp onto a SainSmart MEGA 2560 board
3. test connection using Serial Monitor ("1 ") produces the expected result
4. attempt to sync with avrdude - avrdude -b 9600 -c arduino -p m644p -t -vvvv 
-P /dev/ttyACM0

Expected output?
I expect to see avrdude: ser_recv() with some content indicating that the sketch has 
responded to the "0 " message.

Actual output?
         Using Port                    : /dev/ttyACM0
         Using Programmer              : arduino
         Overriding Baud Rate          : 9600
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.

avrdude Version 5.11svn-20111019
Running on Ubuntu 13.04
ArduinoISP-master downloaded fromhttps://github.com/rsbohn/arduinoisp

I have now fixed this problem with a change to avrdude and a change to mega-isp

avrdude-5.11svn-20111019/arduino.c
99c99,101
<   usleep(50*1000);
---

  /* Sleep to allow the Arduino board to reset */
  usleep(1000*1000);

ArduinoISP/ArduinoISP.ino
452c481,489
<     empty_reply();
---
    if (getch() == CRC_EOP) {
      // empty the input stream
      while (0<Serial.available()) getch();
      Serial.print((char)STK_INSYNC);
      Serial.print((char)STK_OK);
    } else {
        error++;
        Serial.print((char)STK_NOSYNC);
    }

I could not get registered on https://savannah.nongnu.org/ because of a bug in 
the New User creation script so could someone please apply this diff to the 
main avrdude branch for me?

Thanks in advance

Peter.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]