
Network support for Arduino firmware tool avrdude.So, I’ve added network support in ser_drain() function and added drain (flush old data) in stk500_getparm before sending new command. Great, and thanks to Marius Greuel.ĭebugging above source (6.3.1.1), ser_drain() was missing network processing, and stk500_getparm() seems to be failing due to handling old data left in receive buffer.

While searching for avrdude source code, I found one with Visual Studio support. You see ser_drain(): and stk500_getparm(): errors. Lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00Ĭalibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00Īvrdude.exe: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x14Īvrdude.exe: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x10Īvrdude.exe: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x01Īvrdude.exe: initialization failed, rc=-1ĭouble check connections and try again, or use -F to overrideĪvrdude.exe: stk500_disable(): protocol error, expect=0x14, resp=0x10 Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBackĮeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.System wide configuration file is "c:\Program Files (x86)\Arduino\hardware\tools\avr\etc\nf"Īvrdude.exe: ser_drain(): read error: incorrect parameter.Īvrdude.exe: ser_drain(): read error: incorrect paramter. I using MAX7219 led matrix shield and shield is working and shown my lastest upload before error. I uploaded sketch 3-5 times but after give this error. I sure for selected correct arduino(Arduino uno),port is correct, tried another cable.

Can you please update it to use with Avrdude 6.3 There are small differences between 6.1 and 6.3 (e.g. I am using windows 10, IDE version 1.8.13. Really nice and helpfull piece of sw, but I have one request.
