0

FEATHER 328p CANNOT BE PROGRAMED
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Fri Sep 17, 2021 11:26 pm

Hello everyone -- I recently purchased two 382P feather boards + OLED wings and plan to use them in an embedded project.
Unfortunately like a lot of other people I’ve discovered that the boards are difficult program. I’ve only assembled one board w/OLED wing and initially downloaded the OLED sketch to the board. Although the initial download worked, none have worked since. I get either a “port is not available” or a “not in sync error”.

Things I have checked

1. Cable is good
2. Re-instaled SiLabs USB drivers
3. I can see usb port via terminal

Have tried pressing reset when starting the upload — 100% failure rate for me.

I am on a MAC — OS 11.6
ARDUINO 1.8.13

I am shocked when google reported how common this issue is —

Suggestions and insights would be appreciated, and thank for any help that you offer,

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by mikeysklar on Sat Sep 18, 2021 2:22 pm

The reset button timing can be difficult to workout. We can help you transition to another Feather model if you like. I have had to do multiple reset presses spaced apart during upload to get the bootloader to grab. Of course make sure your board selection and com port are correct and not jumping around within the Arduino IDE.

mikeysklar
 
Posts: 5804
Joined: Mon Aug 01, 2016 8:10 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by adafruit2 on Sun Sep 19, 2021 12:32 am

@mikey the com port doesnt change on the feather 328p
@limin please post a screenshot of your tools menu

adafruit2
Site Admin
 
Posts: 20271
Joined: Fri Mar 11, 2005 7:36 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Sun Sep 19, 2021 1:48 am

E952F72D-2D74-4EDF-BA29-17CD466E2E49.jpeg
E952F72D-2D74-4EDF-BA29-17CD466E2E49.jpeg (239.33 KiB) Viewed 64 times
I

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Sun Sep 19, 2021 1:53 am

Which model feather would you recommend for a small wearable binary clock?

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by mikeysklar on Sun Sep 19, 2021 10:18 am

@Limnidytis,

Let's focus a bit on this setup first to understand where the issue is before transitioning.

Can you unlug the OLED and any other connected hardware from the Feather 328 and try uploading the default blink sketch? It will be under "Examples -> Basics -> Blink" from the IDE.

mikeysklar
 
Posts: 5804
Joined: Mon Aug 01, 2016 8:10 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Sun Sep 19, 2021 11:20 am

I tried previously, and again today -- no luck -- printout is below
one other thing that I should mention is that the yellow led is flashing several times a second.

avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/Users/jeb/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
User configuration file is "/Users/jeb/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbserial-0232A94F
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

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
Hardware Version: 83981627
Firmware Version: -356421472.32766
Topcard : STK502

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
Vtarget : 3268.0 V
Varef : 3.2 V
Oscillator : 0.001 Hz
SCK period : 35553.4 us


avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0xe0

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00
avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0xe0

avrdude done. Thank you.

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

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by adafruit2 on Sun Sep 19, 2021 3:51 pm

does the red LED blinkw hen you press the reset button on the feather

adafruit2
Site Admin
 
Posts: 20271
Joined: Fri Mar 11, 2005 7:36 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Sun Sep 19, 2021 6:42 pm

YES

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by adafruit2 on Sun Sep 19, 2021 9:37 pm

how many times does it blink?

adafruit2
Site Admin
 
Posts: 20271
Joined: Fri Mar 11, 2005 7:36 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Sun Sep 19, 2021 10:13 pm

1 PUSH = 3 FLASHES
2 PUSHES = 4 FLASHES 1 FOR 1ST + 3 for 2nd

I MADE A VIDEO, BUT IT WAS TOO BIG TO UPLOAD.

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by adafruit2 on Sun Sep 19, 2021 10:26 pm

well the bootloader is there, maybe check you have the right serial port selected? also you'll need hte CP210x driver installed

adafruit2
Site Admin
 
Posts: 20271
Joined: Fri Mar 11, 2005 7:36 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Mon Sep 20, 2021 9:29 pm

johnnybrian@Johnnys-iMac ~ % ls /dev/cu*
/dev/cu.BTIntuosProM-WacomPaper /dev/cu.URT1
/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbserial-0232A94F
/dev/cu.SLAB_USBtoUART
johnnybrian@Johnnys-iMac ~ %
it seems that the driver is installed - I use the usbserial port above.

Ive tried many tines how, but the board has never accepted any other programming -- what should I try now ?

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by adafruit2 on Mon Sep 20, 2021 10:38 pm

try the SLAB device

adafruit2
Site Admin
 
Posts: 20271
Joined: Fri Mar 11, 2005 7:36 pm

Re: FEATHER 328p CANNOT BE PROGRAMED

by Limnidytis on Tue Sep 21, 2021 1:30 am

BANG, there IT IS Now I can program the board with 100% success. To make it work, I have to wait until the download starts and then double click the reset

Thanks so much for your help and patience Now I need a find the smallest RTC for the project

Limnidytis
 
Posts: 8
Joined: Tue Jul 14, 2020 3:23 pm

Please be positive and constructive with your questions and comments.