0

Just got Circuit Playground Express, can't upload via Arduin
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Just got Circuit Playground Express, can't upload via Arduin

by ak_eric on Fri Aug 25, 2017 10:59 pm

Just picked up a new Circuit Playground Express board. Followed all the docs here:
https://learn.adafruit.com/circuit-play ... er-0/intro
The board can connect over USB, is seen as COM5 on my Win10 PC. I can browse to it via Windows Explorer.
It's the same USB I use to communicate with my 3d printer, so it's a valid, data-carrying USB cable.

btw, I'm not unfamiliar with Ardunio / microcontrollers, been using them for years.

Couple things are amiss:
1. When I double-press the reset button, it doesn't appear to go into bootloader mode like the docs describe; The red led is constantly pulsing on mine.
2. It came with a sketch installed that flashed lights, and made sounds. When I tried uploading the Hello_Blink sketch, that stopped. Now, all lights are solid green, with D13 slowly pulsing red.
3. Arduino IDE detects it correctly by name. however, when I upload, I get the below verbose data. But manily, it's this:
Code: Select all | TOGGLE FULL SIZE
Connecting to programmer: .avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
etc...


What isn't configured correctly here? Just installed the latest Arduino IDE 1.8.4 as well.

Code: Select all | TOGGLE FULL SIZE
PORTS {COM1, COM3, COM5, } / {COM1, COM3, COM5, } => {}
Uploading using selected port: COM5
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega32u4 -cavr109 -PCOM5 -b57600 -D -Uflash:w:C:\Users\Eric\AppData\Local\Temp\arduino_build_511927/Hello_Blink.ino.hex:i

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

         System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM5
         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: .avrdude: butterfly_recv(): programmer is not responding

avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
Found programmer: Id = "&"; type = H
    Software Version = h.u; Hardware Version = “.ð
avrdude: butterfly_recv(): programmer is not responding
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: leave prog mode
avrdude: butterfly_recv(): programmer is not responding
avrdude: error: programmer did not respond to command: exit bootloader

avrdude done.  Thank you.

the selected serial port
 does not exist or your board is not connected

ak_eric
 
Posts: 19
Joined: Tue Jan 08, 2013 12:06 pm

Re: Just got Circuit Playground Express, can't upload via Ar

by ak_eric on Fri Aug 25, 2017 11:04 pm

I should note, downloading a .uf2 file from Adafruit MakeCode, and dragging that to the CPE does work. So, progress. But I'd really like to get Arduino working.
Thanks!

ak_eric
 
Posts: 19
Joined: Tue Jan 08, 2013 12:06 pm

Re: Just got Circuit Playground Express, can't upload via Ar

by adafruit_support_mike on Fri Aug 25, 2017 11:07 pm

It looks like you have the wrong board selected under Tools->Board. The output messages say the uploader is trying to communicate with an ATmega32u4, and the Circuit Playground Express uses a SAMD21.

The build target will be under "Adafruit SAMD Boards" rather than just "Adafruit Boards".

adafruit_support_mike
 
Posts: 43324
Joined: Thu Feb 11, 2010 2:51 pm

Re: Just got Circuit Playground Express, can't upload via Ar

by ak_eric on Fri Aug 25, 2017 11:19 pm

AAAHhh.... so, the board Manager lists the "Circuit Playground" in two areas, but the "Circuit Playground Express" in only one. I failed to see that difference.
Fully functional now, many thanks!

ak_eric
 
Posts: 19
Joined: Tue Jan 08, 2013 12:06 pm

Re: Just got Circuit Playground Express, can't upload via Ar

by adafruit_support_mike on Sat Aug 26, 2017 11:24 pm

Glad to hear that did it. Happy hacking!

adafruit_support_mike
 
Posts: 43324
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.