Arduino Returns error while uploading bootloader [SOLVED] - Page 1
Forum section: electronics / projects

author: anishkgt
author_rank: Frequent Contributor
timestamp: August 18, 2018, 03:36:45 pm
content: Hello All,I am trying to burn a bootloader via an arduino TQFP32 which already as the Arduino ISP loaded into it. Wiring are as followsMaster SLAVEMOSI -> MOSIMISO -> MISOSCK -> SCKRESET -> To reset via 0.1uf cap (RST pin in schematic)VCC -> VCCGND -> GNDhere is the verbose error logArduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"C:\Users\georget\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\georget\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM12 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:mavrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53Copyright (c) 2000-2005 Brian Dean,http://www.bdmicro.com/Copyright (c) 2007-2014 Joerg WunschSystem wide configuration file is "C:\Users\georget\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"Using Port : COM12Using Programmer : stk500v1Overriding Baud Rate : 19200AVR Part : ATmega328PChip Erase delay : 9000 usPAGEL : PD7BS2 : PC2RESET disposition : dedicatedRETRY pulse : SCKserial program mode : yesparallel program mode : yesTimeout : 200StabDelay : 100CmdexeDelay : 25SyncLoops : 32ByteDelay : 0PollIndex : 3PollValue : 0x53Memory Detail :Block Poll Page PolledMemory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xffflash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xfflfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00Programmer Type : STK500Description : Atmel STK500 Version 1.x firmwareavrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x02avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x04Hardware Version: 4728160Firmware Version: 0.4598883avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x01avrdude: stk500_getparm(): (a) protocol error, expect=Error while burning bootloader.0x14, resp=0x10Vtarget : 420030.5 VVaref : 199919366.4 VOscillator : 3.686 MHzSCK period : 0.1 usavrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x10avrdude: initialization failed, rc=-1Double check connections and try again, or use -F to overridethis check.avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00avrdude done. Thank you.

author: retrolefty
author_rank: Super Contributor
timestamp: August 18, 2018, 04:26:06 pm
content: Check your wiring plan for programming bootloader via ISP. Reset for the device to have bootloader burned should go to a digital output pin from the master (arduino acting as ISP programmer), with no series resistor used. The output pin to use is defined in the arduino as ISP programmer sketch.

author: anishkgt
author_rank: Frequent Contributor
timestamp: August 18, 2018, 04:31:56 pm
content: Quote from: retrolefty on August 18, 2018, 04:26:06 pmThanks I doubted that. Just doing it now.Www.Georgehobby.wordpress.comEquipments: DSO104z, Hakko FX888D, Brymen BM869s

author: anishkgt
author_rank: Frequent Contributor
timestamp: August 19, 2018, 04:06:51 pm
content: Though the arduino sketch has the reset on Pin 10 i see it is the same pin named as SS. What is the difference ? Just that it is controlled by the sketch or is it something else ?

author: rrinker
author_rank: Super Contributor
timestamp: August 20, 2018, 07:17:40 pm
content: I've built two different Arduino as ISP devices, one is for ATTiny 8 pin chips, the other is to program ATMega328. In both cases, I just wired to the actual pins and not the ICSP header, though they SHOULD be the exact same pins.The Tiny85 programmer is a shield that fits on an UNO. The only capacitor is a 10uF on the Uno's reset, to keep the Uno from resetting.The Mega328 programmer is a little fancier, I made a PCB for that, it uses a Nano for the Arduino running the Arduino as ISP sketch, and has a ZIF socket for the 328 being programmed.Both had the 3 indicator LEDs mentioned in the Arduino as ISP sketch comments for the programming status. And both have an LED and resistor attached to a pin so that a basic blink sketch can be loaded to test the programming and the chip. The 328 programmer has a 16MHz oscillator and the associated caps, plus a 10uF on the Nano's reset pin. The Tiny85 one is set up to use the internal clock.