glasspusher

Things are better- I didn't realize the board had to be powered as well as the mkII, so it burned the boot loader. However, I'm using a 168 with an old NG board, and it doesn't work after burning the new bootloader. I'm going to see if I can find an old bootloader to try on it...

glasspusher

Also, it took about 10 minutes to burn the boot loader. Maybe put in the avr messages as it's doing this, 10 minutes is a long time for an app to be unresponsive. I remember it taking this long from the command line when I did it last year, but it worked. It also seems to take about as long from the command line now.

The mkII's seem to die relatively easily. Did you have NG selected in the Boards menu when you burned the bootloader? If you had Diecimila selected, you'll have the bootloader with a very short timeout, since it's intended for boards that auto-reset. You should be able to burn the NG bootloader from the IDE.

And yea, there should probably be some sort of progress notification as you burn the bootloader.

glasspusher

Hi Mellis,Yeah, I tried burning the bootloader as the 168 on an NG board, but so far NG It looks like my mkII is still working, the lights still do their thing and I don't get any error messages, but who knows?

I have 4 diecimila boards on order, they should should be here next week, so even if this doesn't work I won't be out of commision too long.

One other thing I've noticed in my 10 months or so away from this stuff- the sketches I had from version 7, when re-compiled with 8, 9 or 10 are much smaller and didn't work on the NG boards I had with Atmega8 chips. Any ideas?

yerg2k

Hello,I have yesterday received my AVRISP mkII and had troubles using the builtin arduino burn bootloader function which uses avrdude.

The error I'm getting is,avrdude: usbdev_open(): did not find any USB device "usb"

I did however find this guide useful:http://www.arduino.cc/playground/Learning/Burn168

This resulted in success burning my blank mega168 using an older arduino NG. Maybe being able to manually verify fuse bits and such, made it seem more likely to work.

Please note the following from the above link:

Quote

8. Click the "Board" panel, set and write the ISP frequency. If this is a virgin chip you must select 125.0 kHz. If you have already flashed this chip you can set it to 2.0 Mhz without issues. It will be a long day of programming if you don't take this step, as burning at 1.049 Khz takes forever.

This explains why some such as glasspusher experienced extremely long burntimes. Appropriately setting this frequency sped things up quite a bit.

leKuk

just wanted to throw in that i'm successfully burning bootloaders to atmega168s using an mkII + an arduinoNG on an Intel Macbook running 10.4.9thank you very much for this feature. if it does not work for anyone and you're sure that your mkii is not dead, check those 3 things mentioned before:

- arduino has to get power from an external source (wall plug)- set the power source jumper on your arduino accordingly- plug-in the ICSP-cable correctly.

if the programmers shows the green light (instead of red or orange or blinking or something ) the hardware part should be fine. Start the arduino application _now_ and begin burning your bootloader (or sketch soon :-).

the arduino app seemed frozen when i did it the first times, not telling me something new for a couple of minutes, just a "burning bootloader". the process takes something like 5-10 minutes on this machine, but it works. After some lightshow, the programmer shows the green light again, and arduino tells me "Done burning bootloader". No other messages in between, which you just have to know.

If it's that slow, you might want to speed it up with AVR studio under windows. I don't remember what the setting is called - some type of clock or timing parameter that seems to be set somewhat randomly by default.

leKuk

well i did burn my first bootloaders under AVR Studio and it was _much_ faster. is there any way to speed it up from within arduino? or do you recommend using AVR studio? i don't really mind the ten minutes for the handful burns that i do.

ps:

how does the board-selection in version 0010 work? i can't get the Diecimila bootloader burned on an atmega168 (inside an arduinoNG). burning completes successfully, but the chip is useless. it just continously blink on pin13. if i select the ArduinoNG as a board and bootloader everything works fine. just with the old bootloader, which doesn't timeout on invalid data, or does it?with version 0009 i had no problems burning each with the same hardware setup!?