Serial Monitor

Hi there,

im just starting using Arduino. I have an Atmega328p on an Duelmilanove, using a AVRISPmkII for programming

I can programm my setup, i just cant get the Serial Monitor running properly, not even with the first example code.

At some (wrong) Baudrates, i get at least junk data which is coming from the Atmega, but i dont get proper data?

Is there anything i miss? Since i read here it could be a Java problem, i updated my java, but it still doesnt work.

Any help would be appreciated.

Cheers
toben

Are you starting from a freshly programmed ATMega chip (as opposed to one that came with the board and was already set to use the external crystal)? If so, you need to set the fuses so it will run at 16mhz, instead of 1mhz (this can be done by doing burn bootloader with the programmer connected - even if, as you say, you're not planning to use the bootloader, and will just program via ISP only). If its running at the wrong speed, all the baud rates will be off.

When i click "burn bootloader", it gives me this (for different ATmega328), programmer and USB-cable connected:

Arduino: 1.6.7 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"

avrdude: stk500v2_command(): command failed
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

Fehler beim Brennen des Bootloaders.

Dieser Report hätte mehr Informationen mit
"Ausführliche Ausgabe während der Kompilierung"
aktiviert in Datei > Einstellungen.

toben123:
avrdude: stk500v2_program_enable(): bad AVRISPmkII connection status: Unknown status 0x00
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.

Looks like it is having trouble talking to you AVRISP MK II. Is it a genuine Atmel programmer or a clone?

on the Cover, there is an AVR - Atmel sign :). I also tried in Atmel Studio, there it gave me a FirmwareUpdate for the Programmer, but it still doesnt work. Still, i can upload programms with it.

Should i try another programmer?

Yes. If your programmer isn't working you might have to try a different programmer.