Orygun
Offline
Full Member
Karma: 0
Posts: 195
Don't let the smoke out!
|
 |
« Reply #150 on: February 07, 2010, 06:21:54 pm » |
Aruino-0018 has just been released... 
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #151 on: February 08, 2010, 07:45:00 am » |
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: 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. 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
God Member
Karma: 0
Posts: 588
LumiNet rocks
|
 |
« Reply #152 on: February 08, 2010, 07:50:03 am » |
Arduino Duemilanove as ISP
can you explain, how you use the Arduino as ISP?
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #153 on: February 08, 2010, 08:01:59 am » |
Mega isp that comes in the 0018 IDE.
|
|
|
|
« Last Edit: February 08, 2010, 08:15:53 am by axiomshift »
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 55
Arduino rocks
|
 |
« Reply #154 on: February 08, 2010, 08:04:53 am » |
its in the Tutorial pages and the sketch is included in version 18 http://arduino.cc/en/Tutorial/ArduinoISP
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #155 on: February 08, 2010, 08:14:38 am » |
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
Jr. Member
Karma: 0
Posts: 55
Arduino rocks
|
 |
« Reply #156 on: February 08, 2010, 08:31:42 am » |
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
God Member
Karma: 0
Posts: 588
LumiNet rocks
|
 |
« Reply #157 on: February 08, 2010, 09:28:28 am » |
tiny2313.upload.protocol=stk500v2
does the mega ISP support stk500v2? maybe change it to stk500, so: tiny2313.upload.protocol=stk500
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #158 on: February 09, 2010, 09:01:09 am » |
Ok, took off the v2 and I'm stil getting the same error Here is the bootloader error 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" 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
God Member
Karma: 3
Posts: 973
Arduino rocks
|
 |
« Reply #159 on: February 09, 2010, 09:58:30 am » |
still not clear to me how this is all connected.
|
|
|
|
|
Logged
|
|
|
|
|
Berlin, Germany
Offline
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #160 on: February 09, 2010, 10:11:36 am » |
ok, maybe it's time to get a real programmer...
|
|
|
|
|
Logged
|
|
|
|
|
ottawa, canada
Offline
God Member
Karma: 3
Posts: 973
Arduino rocks
|
 |
« Reply #161 on: February 09, 2010, 11:32:20 am » |
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
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #162 on: February 09, 2010, 12:10:48 pm » |
cool, do you know of any tutorials I could read?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
God Member
Karma: 0
Posts: 588
LumiNet rocks
|
 |
« Reply #163 on: February 09, 2010, 12:16:59 pm » |
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: 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
Newbie
Karma: 0
Posts: 13
Arduino rocks
|
 |
« Reply #164 on: February 09, 2010, 12:25:18 pm » |
Wicked! I'll give it a go asap. Vielen Dank Bohne=)
|
|
|
|
|
Logged
|
|
|
|
|
|