Can't Upload with my PC anymore and Arduino is doing nothing... **solved

Hi there,

my problem is that i can't upload anymore from my PC. As i tried to upload from the Laptop of my Sister it worked. When i start upload ,the compiling works, and then it is kind of frozen because nothing happens anymore ( I tried install new usb and mainboard drivers,tried to install Arduino drivers again, but nothings worked. Also i 've read the troubleshooting for uploading problems, but they don't work either.

Before it began i tried to generate a tone to a speaker via Port 0 and since the RX led is on , i dont even know if this is normal i am pretty new to Arduino.

I use: Arduino Leonardo Win 7 Pro 64

So its up to you guys... what can i do/ try?

greetings ShuftY

Did you use the tone() function? And please be specific, what Arduino Pin Numbers did you use? (Ideally, post the code you last uploaded before the issue occurred.)

Yes i used the tone() function, specificly the toneMelody example, but on digitalport 0 instead of 8. But it did not work.

I have checked it again on the Laptop and it says only that the upload was complete, but the arduinino is surprisingly doing nothing.

 Plays a melody 
 * 8-ohm speaker on digital pin 8

This example code is in the public domain.
 #include "pitches.h"

// notes in the melody:
int melody[] = {

// note durations: 4 = quarter note, 8 = eighth note, etc.:
int noteDurations[] = {
  4, 8, 8, 4,4,4,4,4 };

void setup() {
  // iterate over the notes of the melody:
  for (int thisNote = 0; thisNote < 8; thisNote++) {

    // to calculate the note duration, take one second 
    // divided by the note type.
    //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc.
    int noteDuration = 1000/noteDurations[thisNote];
    tone(0, melody[thisNote],noteDuration);

    // to distinguish the notes, set a minimum time between them.
    // the note's duration + 30% seems to work well:
    int pauseBetweenNotes = noteDuration * 1.30;
    // stop the tone playing:

void loop() {
  // no need to repeat the melody.

Friendly advice: Please stop referring to "Pins" as "Ports". They are not ports. They are pins. (This will lead to confusion as a PORT contains many pins.)

There is a bug with the Leonardo and tone():

It is implied that pressing RESET (perhaps before the upload process starts?) will help fix the upload issue. For now (Arduino 1.0.1), tone() causes the Leonardo to lock up.

Oh ... Yes that was it.

something like that i tried before, but i guess it was not the right timing ;)

And know i even know the difference between ports and pins xD

Thank you very much =)