Atmega328 and AVRISP mkII - Help / Problem

Help? :-?

Chip: Arduino duemilanove; Atmega328
Programmer: AVRISP mkII build date: (2009.08.21)
OS: Windows XP Home SP3
IC programming knowledge level: Banana-less Chimpanzee

I am using the ICSP pins on the arduino to program the 328.

I attempted to do the apparently "easy" way and use the arduino software. I get a error: "avrdude: usbdev_open(): did not find any USB device "usb"".

If you believe it would matter I will set upload.verbose=true then see the error, I will do so.

Settings in programmer.txt:
(stripped to just the one I am using)

avrispmkii.name=AVRISP mkII
avrispmkii.communication=usb
avrispmkii.protocol=stk500v2

Settings in Boards.txt:
(stripped to just the one I am using)

atmega328.name=Arduino Duemilanove or Nano w/ ATmega328

atmega328.upload.protocol=stk500
atmega328.upload.maximum_size=30720
atmega328.upload.speed=57600

atmega328.bootloader.low_fuses=0xFF
atmega328.bootloader.high_fuses=0xDA
atmega328.bootloader.extended_fuses=0x05
atmega328.bootloader.path=atmega
atmega328.bootloader.file=ATmegaBOOT_168_atmega328.hex
atmega328.bootloader.unlock_bits=0x3F
atmega328.bootloader.lock_bits=0x0F

atmega328.build.mcu=atmega328p
atmega328.build.f_cpu=16000000L
atmega328.build.core=arduino

Settings in Preference.txt:

update.id=6842143608949844381
export.application.platform.windows=true
preproc.save_build_files=false
preproc.substitute_floats=true
run.options=
run.display=1
editor.divider.size=2
serial.port=COM14
preproc.enhanced_casting=true
editor.divider.size.windows=2
last.sketch1.path=C:\Documents and Settings\terror\Desktop\arduino-0017\hardware\libraries\LiquidCrystal\examples\HelloWorld\HelloWorld.pde
editor.font=Monospaced,plain,12
console.auto_clear=true
console.output.file=stdout.txt
last.sketch.count=0
export.application.platform=true
default.window.height=600
export.application.stop=true
serial.parity=N
serial.databits=8
board=atmega328
preproc.output_parse_tree=false
editor.external=false
editor.indent=true
last.screen.height=600
upload.using=bootloader
run.present.bgcolor=#666666
preproc.web_colors=true
editor.tabs.expand=true
run.present.stop.color=#cccccc
preproc.color_datatype=true
last.screen.width=1024
apple.laf.useScreenMenuBar=true
export.application.platform.linux=true
export.application.platform.macosx=true
editor.antialias=false
export.applet.separate_jar_files=false
editor.tabs.size=2
console.error.file=stderr.txt
preproc.substitute_unicode=true
console=true
run.present.exclusive.macosx=true
console.lines=4
run.options.memory.maximum=256
browser.linux=mozilla
preproc.imports=java.applet,java.awt,java.awt.image,java.awt.event,java.io,java.net,java.text,java.util,java.util.zip,java.util.regex
update.check=true
last.sketch0.path=C:\DOCUME~1\terror\LOCALS~1\Temp\untitled1652.tmp\sketch_nov22a\sketch_nov22a.pde
run.window.bgcolor=#EBE9ED
sketchbook.path=C:\Documents and Settings\terror\My Documents\Arduino
last.sketch0.location=262,0,500,600,420
update.last=1259108251031
export.delete_target_folder=true
platform.auto_file_type_associations=true
default.window.width=500
editor.caret.blink=true
serial.stopbits=1
serial.debug_rate=9600
run.options.memory.initial=64
upload.verbose=false
run.options.memory=false
last.sketch1.location=164,0,500,600,420
editor.invalid=false
editor.font.macosx=Monaco,plain,10
export.application.fullscreen=false
console.length=500
run.present.exclusive=false

Anyone at all?

Do you actually have an Arduino Duemilanove board?

If that is the case then you don't need AVRISP programmer as the board already have a bootloader in it. Just use IDE with an USB cable to program the board.

If you are using a blank Atmega328 chip then use the AVRISP programmer to progam the bootloader in. You would need to the AVR Studio that come with the AVRISP.

http://www.skpang.co.uk/catalog/

I have an actual duemilanove, pre-assembled.

Hi,
you have to set the key

upload.using=bootloader

in the preferences.txt file to

upload.using.avrispmkii

You also might want to set
upload.verbose=true
to see its actually working.

One thing to mention :
You can only chnage the settings in preferences.txt when the IDE is not running. The IDE does not check for changes to the user-settings at runtime and (even worse) overrides any changes you made when it shuts down.

This also has been documented here:

Eberhard

Hi,
you have to set the key

upload.using=bootloader

in the preferences.txt file to

upload.using.avrispmkii

You also might want to set
upload.verbose=true
to see its actually working.

One thing to mention :
You can only chnage the settings in preferences.txt when the IDE is not running. The IDE does not check for changes to the user-settings at runtime and (even worse) overrides any changes you made when it shuts down.

This also has been documented here:
http://www.arduino.cc/en/Hacking/Programmer

Eberhard

Take note I am just trying to use the programmer to write the boot loader to the 328.

Do I still have to change the "upload.using=" pref?

I am getting the above errors when selecting tools > burn bootloader

You shouldn't need to do anything extra than hop into the IDE.

That's ASSUMING you've downloaded and installed the drivers required? That's what I would check first. Make sure both the Arduino and the programmer are actually installed and in working condition:P

Thank you Captainobvious. snicker

Yes both the arduino and programmer are in working order.

Which drivers did you install for the AVRISP mkII? The burn bootloader command in the Arduino IDE uses libusb, which actually requires uninstalling (not just disabling) the Jungo (I think) driver that comes with AVR Studio. You should be able to remove it using the AVR Studio setup program.