java.lang.NullPointerException attiny2313

Installed the tiny core 0022-0008 per the instructions. I am running 022 on os x 10.7. I am using the usbtinyISP programmer. I have added the correct entries to boards.txt ie: attiny2313at8.upload.using=usbtiny (8 mhz) and attiny2313at1.upload.using=usbtiny (1 mhz)

I have also tried arduino:usbtiny

I have double checked that no other upload.using statement is un-commented.

I have read all the posts I can find and have tried both 8 mhz and 1 mhz settings.

I can compile successfully and I can run the burn bootloader option successfully.

But when I try to upload blink to the 2313 I get the usual java message:

java.lang.NullPointerException
at processing.app.debug.AvrdudeUploader.getProgrammerCommands(AvrdudeUploader.java:106)

Any ideas?

Thanks

Joe

A quick check in programmers.txt and the answer is revealed...

attiny2313at8.upload.using=arduino:usbtinyisp

attiny2313at1.upload.using=arduino:usbtinyisp

Interesting, my programmers.txt file has usbtiny and not usbtinyisp. I will try this when I get home.

Thanks

Joe

Ok,

I completely re-installed 0022 Arduino IDE, I completely re-installed arduino-tiny-0022-0008.

I updated the FTDI drivers than came with 0022 Arduino. I installed the OSX Lion version of Java.

Here is the line from my perferences.txt file:

upload.using=usbtinyisp

But I have noticed that when I edit the perferences.txt file and change upload.using=usbtinyisp. When I reload Arduino IDE the upload.using= gets changed back to bootloader.

Here are the two lines from my boards.txt file:

attiny2313at1.upload.using=usbtinyisp
attiny2313at8.upload.using=usbtinyisp

Here is my programmers.txt file:

usbtinyisp.name=USBtinyISP
usbtinyisp.protocol=usbtiny

I have two USPTinyISP programmers I have tested both

I also have two atmega328 boards and have been successfully able to upload Blink to these boards.

I have two attiny2313 boards and have tested 8 different attiny2313 chips on these boards.

But when ever I try to upload blink to any of the attiny2313 boards with the board settings set to AtTiny2313 @ 8 mhz

The upload fails with:

java.lang.NullPointerException
at processing.app.debug.AvrdudeUploader.getProgrammerCommands(AvrdudeUploader.java:106)

Thanks

Joe

But I have noticed that when I edit the perferences.txt file

No need to change anything in the perferences.txt file. I suggest you leave it be.

Here is my programmers.txt file:

If you are referring to the programmers.txt file in the Arduino directory then...

attiny2313at1.upload.using=arduino:usbtinyisp
attiny2313at8.upload.using=arduino:usbtinyisp

Changed boards.txt to:

attiny2313at1.upload.using=arduino:usbtinyisp
attiny2313at8.upload.using=arduino:usbtinyisp

Still get the java null pointer exception

Thanks

Joe

From my boards.txt file...

The following DO work (pick one)...

attiny2313at8.upload.using=arduino:usbtinyisp

attiny2313at8.upload.protocol=avrispv2

attiny2313at8.upload.using=arduino:arduinoisp

# attiny2313at8.upload.using=pololu

The following DO work (pick one)...

attiny2313at1.upload.using=arduino:usbtinyisp

attiny2313at1.upload.protocol=avrispv2

attiny2313at1.upload.using=arduino:arduinoisp

# attiny2313at1.upload.using=pololu