Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Fishtales

Pages: [1]
1
Programming Questions / Re: Programming with ISP
« on: January 11, 2012, 07:13:52 AM »
Yes, in Arduino (1.0), I have made an entry in boards.txt that looks like this:

usbtiny128.name=[usbtinyisp] ATmega128v@ 16 MHz
usbtiny128.upload.using=usbtinyisp
usbtiny128.upload.maximum_size=129024
usbtiny128.build.mcu=atmega128
usbtiny128.build.f_cpu=16000000L
usbtiny128.build.core=arduino

Then I select  Tools->Programmers->USBtinyISP and I can load a sketch directly to the board through the ISP header.

In wiring, I tried a couple variants of this in the boards.text file with no success.  For example:
usbtiny128.name=[usbtinyisp] ATmega128v@ 16 MHz
usbtiny128.upload.using=usbtinyisp
usbtiny128.upload.maximum_size=129024
usbtiny128.build.mcu=atmega128
usbtiny128.build.f_cpu=16000000L
usbtiny128.build.core=arduino

This shows up as a board, but when I try to upload a sketch I get this error message which seems to indicate that it's still trying to upload via a non existent bootloader:

java.lang.NumberFormatException: null
   at java.lang.Integer.parseInt(Integer.java:417)
   at java.lang.Integer.parseInt(Integer.java:499)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:85)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:55)
   at processing.app.Sketch.upload(Sketch.java:1611)
   at processing.app.Sketch.exportApplet(Sketch.java:1666)
   at processing.app.Sketch.exportApplet(Sketch.java:1621)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2476)
   at java.lang.Thread.run(Thread.java:680)

2
Programming Questions / Re: Wiring won't burn bootloader
« on: January 11, 2012, 06:52:14 AM »
I do have verbose turned on already, and I see all the detail when I'm compiling a sketch, but when I if I hold the shift key down while I select Burn Bootloader> w/USBtinyISP I get nothing but an instantaneous "Error while burning bootloader".

As I said in the earlier post, the USBtinyISP works fine with avrdude and I can take a Wiring compiled hex file and load it directly from from avrdude so I know the board works, the ISP works and the code compiled from Wiring works.  I just can't get a bootloader into the chip.
3
Programming Questions / Programming with ISP
« on: January 09, 2012, 11:07:11 PM »
With the Arduino IDE, it is easy to program directly to a board without a bootloader using an ISP.  Will this capability ever be possible in the Wiring IDE, and if so, when might that happen?
4
Programming Questions / Wiring won't burn bootloader
« on: December 27, 2011, 07:55:03 AM »
I'm trying to burn a bootloader into a Wiring V1.0 equivalent that I have breadboarded.   When I tell Wiring to burn bootloader  with USBtinyISP, I get an instant "Error while burning bootloader".  It doesn't even blink the red LED on the USBtinyISP.  I get no indication of what the error was. 

I know the programmer works fine because I've used it with this board directly from AVRdude to first burn the fuses, and then to load a blink test program to make sure that the board is working OK. 

If I try to burn the bootloader from AVRdude (trying to burn this build: "WiringBoot_Wiring-V1-Mega.hex")  I get the following error: avrdude: ERROR: address 0x10f810 out of range at line 2 of WiringBoot_Wiring-V1-Mega.hex

I suspect that this is the error that is happening when I try to burn the bootloader from Wiring but an online search yields no info on what may be the cause.

5
Hello,

I've built a wiring compatible board running an atmega128.  I can build and load programs into it with my tinyUSB ISP programmer.  I want to put a boot loader on it so that i can load programs directly from the IDE but I can't seem to locate the atmega128stk500boot.hex file that I need.  I've tried loading the Wiring version 1 boot loader thinking that it's a 128 also and should work but I get an error when I try to load it (some sort of bad address reference in line 2).

Question 1: where can I find the hex file that I need?

Question 2: is it possible to run the boot loader at 8Mhz instead of 16Mhz?  I'd like to try something using the internal oscillator instead of my external clock.

Thanks
Pages: [1]