Problem solved.
It was the sketch, i connected pin 3 to 5 volt and could be able to upload anoyher sketch.
Lesson learned, very careful with atachinterrupt ![]()
But now i have another doubt:
I declared interrupt 0 on the sketch and in hardware details of leonardo this interrupt correspond to pin 2, i tried first with pin 2 connected to 5 volt and the problem persisted.
So am i missing something or interrupt pins are diferent in leonardo then in other boards?
Thanks a lot.