Leonardo: .avrdude: butterfly_recv():

Could you solve the problem?

I uploaded the code to the board from my Ubuntu desktop before, and all of the times they worked well without any trouble.I changed a small part of the code to keep track of the boards address, and tried to upload the new code. It failed and failed everytime from then. Even when I changed the code back, the code failed as well.



Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Does it fail at upload or at compile?

Please post the full error message that you get in the output pane. When an error occurs, a button "copy error messages" at the right hand side in the top of the output pane; that will copy the error messages to the clipboard. Next paste it here.

If the error messages are too big, attach as text file.