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.
_______________________________________________
AVR-chat mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-chat