Go Down

Topic: LumiNet (based on attiny84) (Read 62 times) previous topic - next topic

capt.tagon

Aruino-0018 has just been released... ;)

axiomshift

Ok, Bohne, I'm running your IDE in 32 bit mode now so the "unsigned long" error is gone but now I'm getting this:
Quote
uncaught exception in main method: java.lang.NumberFormatException: null


Bill, here's my setup:
MacBook osx10.5.8
Arduino 0018
Arduino Duemilanove as ISP
using the program provided in 0018

here's my boards entry for the 2313, I've tried it with and without the bootloader and still get the same error.

Code: [Select]
tiny2313.name= tiny2313 based board (8MHz ext. crystal)


tiny2313.upload.protocol=stk500v2
###tiny2313.upload.protocol=siprog
tiny2313.upload.maximum_size=2048
###tiny2313.upload.speed=9600


tiny2313.bootloader.low_fuses=0xEE
tiny2313.bootloader.high_fuses=0xDF
atmega8.bootloader.path=tn2313bl
atmega8.bootloader.file= tn2313bl.hex
tiny2313.bootloader.extended_fuses=0xFE


tiny2313.build.mcu=attiny2313
tiny2313.build.f_cpu=8000000L
tiny2313.build.core=attiny2313



Thanks for all the help!

bohne

Quote

Arduino Duemilanove as ISP


can you explain, how you use the Arduino as ISP?
http://www.dorkbot.de
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254
http://www.luminet.cc

axiomshift

#153
Feb 08, 2010, 02:01 pm Last Edit: Feb 08, 2010, 02:15 pm by axiomshift Reason: 1
Mega isp that comes in the 0018 IDE.

Arnonh

its in the Tutorial pages and the sketch is included in version 18
http://arduino.cc/en/Tutorial/ArduinoISP

axiomshift

Yo, That's what I've been trying but with a breadboarded 2313 complete with crystal and everything. From what I'm seeing, I can only us this to burn the bootloader onto an arduino? which is where you're ide comes in =) but I can't get that to work...

Arnonh

From reading the code it should work with Attiny on a breadboard
and an Arduino as a programmer
But i didn't try it my self because i don't have any Attiny at hand

bohne

Quote

tiny2313.upload.protocol=stk500v2

does the mega ISP support stk500v2?

maybe change it to stk500, so:
Quote

tiny2313.upload.protocol=stk500

http://www.dorkbot.de
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254
http://www.luminet.cc

axiomshift

Ok, took off the v2 and I'm stil getting the same error
Here is the bootloader error
Quote

avrdude: invalid byte value (null) specified for immediate mode
avrdude: write to file 'null' failed

and here's what happens when I try to upload "Blink"
Quote
java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:415)
    at java.lang.Integer.parseInt(Integer.java:497)
    at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:76
)
    at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java
:55)
    at processing.app.Sketch.upload(Sketch.java:1498)
    at processing.app.Sketch.exportApplet(Sketch.java:1465)
    at processing.app.Sketch.exportApplet(Sketch.java:1420)
    at processing.app.Editor$46.run(Editor.java:2219)
    at java.lang.Thread.run(Thread.java:613)


... I might try bootloading a atmega to see if that works....

bill2009

still not clear to me how this is all connected.  

axiomshift

ok, maybe it's time to get a real programmer...

bill2009

my best results programming the tiny's has been using avrdude from the command line and an arduino with avrisp as the programmer.  I couldn't get that combination to work thru the ide but avrdude direct worked fine.

axiomshift

cool, do you know of any tutorials I could read?

bohne

#163
Feb 09, 2010, 06:16 pm Last Edit: Feb 09, 2010, 06:19 pm by bohne Reason: 1
tiny2313.upload.speed=9600
should be set to the right value and not commented out... I don't know the mega ISP from Arduino0018, but the IDE needs the upload.speed information.

and the bootloader is not specified... you write atmega8 instead of tiny2313...

So to sum it up: use this boards.txt entry:
Code: [Select]

tiny2313.name= tiny2313 based board (8MHz ext. crystal)


tiny2313.upload.protocol=stk500
tiny2313.upload.maximum_size=2048
tiny2313.upload.speed=9600
tiny2313.bootloader.low_fuses=0xEE
tiny2313.bootloader.high_fuses=0xDF
tiny2313.bootloader.path=tn2313bl
tiny2313.bootloader.file= tn2313bl.hex
tiny2313.bootloader.extended_fuses=0xFE
tiny2313.build.mcu=attiny2313
tiny2313.build.f_cpu=8000000L
tiny2313.build.core=attiny2313

and of course: make sure you have the files in the right directories (e.g. tn2313bl)
http://www.dorkbot.de
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1236434254
http://www.luminet.cc

axiomshift

Wicked! I'll give it a go asap. Vielen Dank Bohne=)

Go Up