SOLVED: avrdude: Can't find programmer id "wiring"

I recently installed 1.5.6-r2, updated the avr-g++ version to 4.3.3, and installed the latest tiny cores for 1.5x.

I am trying to use a Mega2560 as ISP to program a ATTINY 4313. My first problem is trying to upload the example sketch ArduinoISP to the Mega.

I get the error "avrdude.conf:332 unrecognized character: "w"" if i use my new avrdude.conf ($Id: avrdude.conf.in 991 2011-08-26 20:50:32Z joerg_wunsch)

Offending code in avrdude.conf:

#
# PROGRAMMER DEFINITIONS
#

# http://wiring.org.co/
# Basically STK500v2 protocol, with some glue to trigger the
# bootloader.
programmer
  id    = "wiring";
  desc  = "Wiring";
  type  =  wiring;
;

I get the error "avrdude: Can't find programmer id "wiring" if i use my old avrdude.conf ( $Id: avrdude.conf.in 916 2010-01-15 16:36:13Z joerg_wunschI)

I needed to upload into /avr/bin the latest avrdude.exe .

Basically, I am trying to program an ATTINY 4313 using the tools in IDE 1.5.6-r2.
It worked fine in IDE 1.0.5, but trying to do it in 1.5.6 is ugly.

  1. Install IDE 1.5.6
  2. Get latest tiny cores for 1.5.x, install in (Sketchbook)\hardware\tiny\avr
    In same directory, edit boards.text
  3. Get latest avrdude. Put avrdude.conf in avr/etc, avrdude.exe into avr/bin
    Add ATTINY4313 code to avrdude.conf
    4)Try to figure out why USBtinyISP or ArduinoISP programming options do not seem to work in 1.5.6-r2.