Pages: 1 ... 9 10 [11] 12 13 ... 19   Go Down
Author Topic: LumiNet (based on attiny84)  (Read 54564 times)
0 Members and 1 Guest are viewing this topic.
Orygun
Offline Offline
Full Member
***
Karma: 0
Posts: 195
Don't let the smoke out!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Aruino-0018 has just been released... smiley-wink
Logged

Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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!
Logged

0
Offline Offline
God Member
*****
Karma: 1
Posts: 588
LumiNet rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Arduino Duemilanove as ISP

can you explain, how you use the Arduino as ISP?
Logged


Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Mega isp that comes in the 0018 IDE.
« Last Edit: February 08, 2010, 08:15:53 am by axiomshift » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 55
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
God Member
*****
Karma: 1
Posts: 588
LumiNet rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
tiny2313.upload.protocol=stk500v2
does the mega ISP support stk500v2?

maybe change it to stk500, so:
Quote
tiny2313.upload.protocol=stk500
Logged


Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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....
Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 6
Posts: 990
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

still not clear to me how this is all connected.  
Logged

Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

ottawa, canada
Offline Offline
God Member
*****
Karma: 6
Posts: 990
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
God Member
*****
Karma: 1
Posts: 588
LumiNet rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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)
« Last Edit: February 09, 2010, 12:19:52 pm by bohne » Logged


Berlin, Germany
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 ... 9 10 [11] 12 13 ... 19   Go Up
Jump to: