Aparently communication problem to upload sketches

Play with it! Please tell us which board you're using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
yn1v
 
Posts: 5
Joined: Thu Jun 08, 2017 8:46 pm

Aparently communication problem to upload sketches

Post by yn1v »

I have a Circuit Playground Developer Edition. I got it about 10 months ago, played with it and stored. I saw recently a very interesting project and tried to copy the code and tried out. The project is a slouch detector. I have been puzzled trying to make the board to work properly

The most common error that I get is that I have a wrong signature.

Code: Select all

Arduino: 1.8.2 (Linux), Board: "Adafruit Circuit Playground"

Sketch uses 12816 bytes (44%) of program storage space. Maximum is 28672 bytes.
Global variables use 930 bytes of dynamic memory.
Forcing reset using 1200bps open/close on port /dev/ttyACM1
PORTS {/dev/ttyACM1, } / {} => {}
PORTS {} / {/dev/ttyACM0, } => {/dev/ttyACM0, }
Found upload port: /dev/ttyACM0
/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/bin/avrdude -C/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM0 -b57600 -D -Uflash:w:/tmp/arduino_build_803377/sketch_jun04a.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/neville/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 6.25s

avrdude: Device signature = 0x0d3f0d
avrdude: Expected signature for ATmega32U4 is 1E 95 87
         Double check chip, or use -F to override this check.

avrdude done.  Thank you.

Wrong microcontroller found.  Did you select the right board from the Tools > Board menu?
The error it is no helpful as I have read, maybe it is not good idea to avoid the check and in the very first line it said that I have the correct board selected.

I have tried changing the USB Cable and using a different USB port in my laptop.

Apparently the board also reinitialize during sketch upload sometimes and gives me this error

Code: Select all

Arduino: 1.8.2 (Linux), Board: "Adafruit Circuit Playground"

Sketch uses 4094 bytes (14%) of program storage space. Maximum is 28672 bytes.
Global variables use 147 bytes of dynamic memory.
An error occurred while uploading the sketch
Forcing reset using 1200bps open/close on port /dev/ttyACM2
PORTS {/dev/ttyACM2, } / {} => {}
PORTS {} / {/dev/ttyACM1, } => {/dev/ttyACM1, }
Found upload port: /dev/ttyACM1
/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/bin/avrdude -C/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM1 -b57600 -D -Uflash:w:/tmp/arduino_build_488383/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/neville/Downloads/arduino-1.8.2/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/neville/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM1
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
Programmer supports auto addr increment.
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x44

avrdude: devcode selected: 0x44
avrdude: AVR device initialized and ready to accept instructions

Reading |
I am not sure how to debug this problem any further. I think the Circuit Playground it is a beutiful product, and I feel frustrated not being able to play with it.

Thanks in advance for any help that you can provide.

User avatar
yn1v
 
Posts: 5
Joined: Thu Jun 08, 2017 8:46 pm

Re: Aparently communication problem to upload sketches

Post by yn1v »

I have been trying to recreate my problems and I maybe have found some explanation on how I got into problems.
I have been running Arduino IDE 1.6.4 that was installed from my software manager in Fedora 25. This has some issues with the library for Circuit Playground. So, I downloaded 1.8.2 and run it from the command line. When I was playing with the Circuit Playground I got it non-responsive, so I tried the reset-blink boot restore.

At the moment if I upload the blink example from 1.6.4 it works, but if I try it from 1.8.2 I got into all the problems described before.

I am thinking that I put a bootloader that is not optimal for Circuit Playground with the Arduino IDE 1.6.4. and it is not compatible with Arduino IDE 1.8.2 and its verification.

How I can correct this issue?

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Aparently communication problem to upload sketches

Post by adafruit_support_mike »

It sounds like you may have a mix of incompatible files in your Arduino15 folder. Try deleting that whole folder, then reinstalling the Adafruit board support packages in the 1.8.2 IDE's Boards Manager.

User avatar
yn1v
 
Posts: 5
Joined: Thu Jun 08, 2017 8:46 pm

Re: Aparently communication problem to upload sketches

Post by yn1v »

I un-installed the arduino 1.6.x using the software manager. Then, I deleted de uncompressed directory of arduino1.8.2, the Arduino directory at my home directory and also a hiden folder .arduino15. Then proceed to uncompress the updated software Arduino IDE 1.8.3 run the install script. Finally run the arduino IDE and find out and update for playground. Updated the library.

Tried to upload the blink sketch and the board reset during communication. I do not get the option to copy the error from the IDE. So I am copying the error from the terminal. I am at ACM5 as each time the board reset itself I get a new connection.

Code: Select all


Picked up JAVA_TOOL_OPTIONS: 
Archiving built core (caching) in: /tmp/arduino_cache_684063/core/core_arduino_avr_circuitplay32u4cat_60c6178d0760bf3b0fbb11525e9bf001.a
Sketch uses 4110 bytes (14%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes of dynamic memory.
Forcing reset using 1200bps open/close on port /dev/ttyACM4
PORTS {/dev/ttyACM4, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {/dev/ttyACM4, } => {/dev/ttyACM4, }
Found upload port: /dev/ttyACM4
/home/neville/arduino-1.8.3/hardware/tools/avr/bin/avrdude -C/home/neville/arduino-1.8.3/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -P/dev/ttyACM4 -b57600 -D -Uflash:w:/tmp/arduino_build_605524/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/home/neville/arduino-1.8.3/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/home/neville/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM4
         Using Programmer              : avr109
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega32U4
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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  9000  9000 0x00 0x00
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lock           0     0     0    0 no          1    0      0  9000  9000 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 : butterfly
         Description     : Atmel AppNote AVR109 Boot Loader

Connecting to programmer: .
Found programmer: Id = "CATERIN"; type = S
    Software Version = 1.0; No Hardware Version given.
avrdude: butterfly_recv(): programmer is not responding
Programmer supports buffered memory access with buffersize=128 bytes.

Programmer supports the following devices:
    Device code: 0x0d
Apparently it hangs out at mid connection. It happened several times at the same point.

Thanks for your help so far.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Aparently communication problem to upload sketches

Post by adafruit_support_mike »

Did you try to upload a new bootloader to the Circuit Playground at any time?

User avatar
yn1v
 
Posts: 5
Joined: Thu Jun 08, 2017 8:46 pm

Re: Aparently communication problem to upload sketches

Post by yn1v »

Yes, I did. I tried to upload a sketch and became non-responsive. So, I did the blink-reset trick to get back response from the circuit playground.
How I burn the proper boot-loader?

Thank you, so much. You have been very patient with me.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Aparently communication problem to upload sketches

Post by adafruit_support_mike »

Burning a bootloader requires an in-circuit programmer, or another microcontroller board like an Arduino set up to work as one. What did you use when you tried?

User avatar
yn1v
 
Posts: 5
Joined: Thu Jun 08, 2017 8:46 pm

Re: Aparently communication problem to upload sketches

Post by yn1v »

Sorry. I have been reading about burning a boot loader and found out that I was confused. I did not try to burn a bootloader.

What I did was entering to bootloader during upload using the reset switch.

Aparently due time out in communication during upliad the board is not showing as ACM device. I have tried again entering bootloader during upload, but the communication is lost at some point and never finish uploading the blink sketch.

Sorry for my confusion about burning the boot loader. Thanks for your support.

Locked
Please be positive and constructive with your questions and comments.

Return to “Circuit Playground Classic, Circuit Playground Express, Circuit Playground Bluefruit”