Arduino 1.8.7 and AVRDUDE

I installed Arduino IDE version 1.8.7.
It apparently installs a new version of AVRDUDE.EXE. Now it won't recognize the PICKIT2 which I use as a SPI programmer. I have re-added Pickit2 in programmers.txt and in avrdude.conf but it still does not work.
I returned to version 1.8.4 and everything is ok again. Problem with latest avrdude.exe ?

What exactly do you mean by "it still does not work"?

What I meant with "It still doesn't work": With 1.8.7. and the AVRDUDE.EXE installed along with it, and after having checked if PICKIT2 still appears correctly in programmers.txt and in avrdude.conf, it does not find my PICKIT2 programmer. It works all again after returning back to 1.8.4 with the older AVRDUDE.EXE ...
PS : I also use Atmel Studio 7 and also there it failed with the avrdude.exe coming with 1.8.7 ... That's why I suspect something is wrong with this latest avrdude.exe ...

Still not really enough information to help you. Please post the full verbose AVRDUDE output.

Ok - I reinstalled Arduino 1.8.7 and yes, avrdude.exe is overwritten. I have now version 6.3-20171130 and it was 6.3.
"PicKit2" has disappeared from the file "programmers.txt" and I have added it :

pickit2.name=PicKit2 (MightyCore)
pickit2.communication=usb
pickit2.protocol=pickit2
pickit2.program.protocol=pickit2
pickit2.program.tool=avrdude
pickit2.program.extra_params=-v -V

The output of "upload with programmer" is :

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cpickit2 -v -V -Uflash:w:C:\Users\LIEVEN~1\AppData\Local\Temp\arduino_build_358644/L7_Knob_Angle.ino.hex:i

avrdude: Version 6.3-20171130
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 : usb
Using Programmer : pickit2
avrdude: error: could not find PICkit2 with vid=0x4d8 pid=0x33

avrdude done. Thank you.

de geselecteerde seriƫle poort
bestaat niet of uw board is niet aangesloten.

(The last 2 lines translated : The selected serial port does not exist or your board is not connected")

I then installed Arduino 8.1.6 and have exactly the same problem (I get avrdude 6.3.20171130).
I then installed Arduino 8.1.5 and get avrdude.exe 6.3 with it.
Again I need to add Pickit2 to programmers.txt.

Now, doing the same upload, it all works again and I get :

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cpickit2 -v -V -Uflash:w:C:\Users\LIEVEN~1\AppData\Local\Temp\arduino_build_686628/L7_Knob_Angle.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 : usb
Using Programmer : pickit2
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 : PICkit 2 Microcontroller Programmer
Description : MicroChip's PICkit2 Programmer

avrdude: MicroChip's PICkit2 Programmer firmware version 2.32.0
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: MicroChip's PICkit2 Programmer firmware version 2.32.0
avrdude: reading input file "C:\Users\LIEVEN~1\AppData\Local\Temp\arduino_build_686628/L7_Knob_Angle.ino.hex"
avrdude: writing flash (4002 bytes):

Writing | ################################################## | 100% 3.05s

avrdude: 4002 bytes of flash written

avrdude done. Thank you.

Hope this helps ...