Hi guys! I'm new with this arduino stuff. Just got a atmega32u4 and tried to upload a sketch to it and it died after this. It was working fine before and I could see it on the comunication port but the exact moment I uploaded the code it unmounted and I got an error message saying "The last USB device you connected to this computer malfunctioned”.
Did you try powering down and reconnecting it? But with the 32U4, if you write a rogue sketch that messes with the DFU upload code, it can kill the USB connection. Then you have to follow Arduino instructions for un-bricking it.
When you are attempting to upload until you manage to get it working, use a dummy sketch like Blink, not your same sketch, for that reason.
Hey, thank you for pointing me at the right direction. Good news are I was able to unbrick the board by reseting it. The sad side of the story is: everytime I try to upload the sketch it "bricks" again. I tried some different board tipes with no success.
The board is discribed as: Pro Micro Leonardo Atmega32u4 16mhz 5V development board
I've tried sparkfun drivers with the exact specifications too, but it didn't work also.
Am I allowed to post the sketch code here? It's a code for a Megadrive/Genesis Pad to PC Engine/TurboGrafx Pad converter adaptor.
Does the problem also happen when you upload an innocent sketch? Below an alternative to blink; it blinks the RX led.
int RXLED = 17; // The RX LED has a defined Arduino pin
void setup()
{
// Serial.begin(57600);
// while(!Serial);
// Serial.println("ProMicro Blink (pin 17)");
pinMode(RXLED, OUTPUT); // Set RX LED as an output
}
void loop()
{
digitalWrite(RXLED, LOW); // set the RX LED ON
delay(500);
digitalWrite(RXLED, HIGH); // set the RX LED OFF
delay(500);
}
Guys, I searched to see if anyone had already done this project and found a couple of videos on youtube. In one of them the guy said that this is the expected behavior after sending the sketch to the board and that it would work the right way even though it is no longer recognized by windows. So I believe this post can be closed. Just out of curiosity and to help someone who may be interested in the topic or may be facing the same problem, this is the project's github repository with all the information.
I would like to thank you again for all the help. This community is very welcoming and I hope to be able to contribute to it in the future.