Problem uploading to Seeeduino

If you need technical help with anything you've bought from Dawn Robotics, please post here.

Problem uploading to Seeeduino

Postby bennalar » Fri Apr 24, 2015 8:52 pm

I'm having problems uploading sketches to Seeeduino. I can upload small sketch files but as soon as the file exceeds a certain size, the upload hands and produces a tk500_recv(): programmer is not responding message.

It seems to be that you can only upload a file if it is written and validated within around 4-5 seconds of being powered.

My current setup is: Arduino: 1.6.3 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"

I am not using pins 0 or 1, I have the reset switch set to AUTO and the voltage to 5V.

Here's an example of the verbose output when I upload blink:

Code: Select all
Sketch uses 1,030 bytes (3%) of program storage space. Maximum is 30,720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2,039 bytes for local variables. Maximum is 2,048 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbserial-A603VKLM -b57600 -D -Uflash:w:/var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/Blink.cpp.hex:i

avrdude: Version 6.0.1, compiled on Mar 30 2015 at 12:15:29
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

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

         Using Port                    : /dev/cu.usbserial-A603VKLM
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.16
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "/var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/Blink.cpp.hex"
avrdude: writing flash (1030 bytes):

Writing | ################################################## | 100% 0.57s

avrdude: 1030 bytes of flash written
avrdude: verifying flash memory against /var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/Blink.cpp.hex:
avrdude: load data flash data from input file /var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/Blink.cpp.hex:
avrdude: input file /var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/Blink.cpp.hex contains 1030 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.49s

avrdude: verifying ...
avrdude: 1030 bytes of flash verified

avrdude done.  Thank you.




If I try and upload the wall follower or any other file with lots of data I get a message like this:
Code: Select all
Sketch uses 10,506 bytes (34%) of program storage space. Maximum is 30,720 bytes.
Global variables use 404 bytes (19%) of dynamic memory, leaving 1,644 bytes for local variables. Maximum is 2,048 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbserial-A603VKLM -b57600 -D -Uflash:w:/var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/rover_5_wall_follower.cpp.hex:i

avrdude: Version 6.0.1, compiled on Mar 30 2015 at 12:15:29
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

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

         Using Port                    : /dev/cu.usbserial-A603VKLM
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.


I've also had it crash during the writing phase too:
Code: Select all
Arduino: 1.6.3 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"

Build options changed, rebuilding all

Sketch uses 10,506 bytes (34%) of program storage space. Maximum is 30,720 bytes.
Global variables use 404 bytes (19%) of dynamic memory, leaving 1,644 bytes for local variables. Maximum is 2,048 bytes.
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbserial-A603VKLM -b57600 -D -Uflash:w:/var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/rover_5_wall_follower.cpp.hex:i

avrdude: Version 6.0.1, compiled on Mar 30 2015 at 12:15:29
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

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

         Using Port                    : /dev/cu.usbserial-A603VKLM
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.16
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "/var/folders/qf/bf0ctj0n2k57xvbfh4nh9jgw0000gn/T/build8848567624418515422.tmp/rover_5_wall_follower.cpp.hex"
avrdude: writing flash (10506 bytes):

Writing | ##########################
avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x30
#avrdude: stk500_cmd(): programmer is out of sync
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.


Any help would be appreciated.

Thanks,

Phil
bennalar
 
Posts: 4
Joined: Fri Apr 24, 2015 8:34 pm

Re: Problem uploading to Seeeduino

Postby Alan » Sat Apr 25, 2015 12:04 am

Hi Phil,

Welcome to the forums.

Sorry to hear that you're having problems with your Seeeduino. That is very odd behaviour. Could you try with a different version of the Arduino environment please? I'm fairly sure for example that it works with IDE version 1.0.5. If you have a Linux or Windows install to try with a different operating system then that may also help, although I can't think why it would have an affect.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am

Re: Problem uploading to Seeeduino

Postby bennalar » Sat Apr 25, 2015 9:41 pm

Alan,

Thanks for your quick response. I installed verison 1.0.5 and it works like a dream. It's a bit strange that the newer version doesn't work!

Phil
bennalar
 
Posts: 4
Joined: Fri Apr 24, 2015 8:34 pm

Re: Problem uploading to Seeeduino

Postby Alan » Sun Apr 26, 2015 11:45 pm

Hi Phil,

That's good to hear. Thanks for letting me know.

Odd to hear that the Seeeduino has a problem with the new Arduino IDE. I'll try to download that this week to see if I get the same problem.

Regards

Alan
Alan
Site Admin
 
Posts: 311
Joined: Fri Jun 14, 2013 10:09 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 0 guests