WIFI + AVRISP + avrdude: can't upload hex file
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hello
I am trying to use the sketch Arduino_Wifi_AVRISP, together with avrdude without success.
My setup:
Windows 10
Avrdude 6.3
Wemos D1 mini connected to Arduino Pro Mini:
ESP <-> ProMini
MISO (GPIO 12) - MISO (12)
MOSI (GPIO 13) - MOSI (11)
SCK (GPIO 14) - SCK (13)
RST (GPIO 5) - RST (RST)
3.3V - VCC
GND - GND
All copied in one directory.
Avrdude command:
avrdude -v -C avrdude.conf -c arduino -p atmega328 -P net:192.168.0.48:328 -U flash:w:firmware.hex:i
Result:
avrdude: Version 6.3, compiled on Feb 17 2016 at 09:25:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "avrdude.conf"
Using Port : net:192.168.0.48:328
Using Programmer : arduino
avrdude: ser_drain(): read error: Falscher Parameter.
avrdude: ser_drain(): read error: Falscher Parameter.
avrdude: ser_drain(): read error: Falscher Parameter.
AVR Part : ATmega328
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=0x14
avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10
Hardware Version: 4669920
Firmware Version: 0.2
Topcard : STK502
Vtarget : 1.8 V
Varef : 0.0 V
Oscillator : Off
SCK period : 0.1 us
avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01
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=0x10
avrdude done. Thank you.
The serialoutput of the ESP:
[AVRISP] connection pending
[AVRISP] programming mode
[AVRISP] now idle
Any Ideas?
Thank you very much
Sascha
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.