Hi,
I have made a clone of a pro micro. got them from the pcb place today but they arent showing up in the arduino ide for me to burn a bootloader onto. just says USB device not recognised (device descriptor request failed). any help would be appreciated. schematic attached.
Schematic.pdf (151.7 KB)
You can't burn a bootloader via the USB, until a DFU capable bootloader is already installed. You have to burn that via ICSP.
@aarg Hi, sorry I should mention I have a Sparkfun pocket AVR programmer also. I tried this on a leonardo to burn bootloaders and i assumed it would work the same way. connect the programmer. connect the atmega and then brun bootloader via the arduino ide. is this not the correct way to do it ? thanks
You have to correctly set the programming tool in the IDE. What I posted is based on your comment that a USB port did not appear on your PC. Check your IDE Tool menu settings. Whatever you did to burn Leonardos should work the same with your board, if it is working.
@anon57585045 Yes the ide doesnt have the option to select the clone in order to bootload the atmega. windows just says device not recognised
Right, you can't "select the clone" if it has no bootloader. You have to select the Sparkfun tool. Doubtless, it was the same for the Leonardo you programmed that way.
@anon57585045 ok. just to clarify. when I tested on a leonardo. I selected the leonardo on the port option not the avr programmer and then selected the appropriate board to burn. then I simply selected the burn bootloader option. are you saying this isn't the case. because it worked for me so i assumed that was correct lol. there isn't an option for the bootloader I don't think. i did try all the other com port options but they all failed.
Probably then, the Leonardo already had a bootloader. You were just flashing a new one.
@anon57585045 yes you are correct it just reflashed to test. not sure what way round to do that as the avr programmer isnt an option in the port list
Right, it's not in the port list. It's a different menu option. Did Sparkfun not provide instructions on how to use their programmer?
@anon57585045 Yes. I followed the instructions as far as i'm aware. ill recheck just incase but I assumed I was doing it correctly.
If you are looking for USB ports, you can't be following the instructions. The USB port will not communicate without firmware loaded in flash.
@anon57585045 thanks maybe the pocket programmer is only for existing pre flashed chips
No, that can't be right. Not if it connects to the ICSP header. Helpful forum behaviour would be to post links to the programmer, and show details of how it's connected to your board.
@anon57585045 I just tried with the leonardo again and it worked the way you suggested. so hopefully its just me being silly. ill let you know if it finally works out. thanks for your help
@anon57585045 Unfortunately it didnt work for the clone i made i suspect other issues perhaps.
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: error: usbtiny_transmit: libusb0-dll:err [control_msg] sending control message failed, win error: A device attached to the system is not functioning.
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: error: usbtiny_transmit: libusb0-dll:err [control_msg] sending control message failed, win error: A device attached to the system is not functioning.
avrdude done. Thank you.
Error while burning bootloader.
@anon57585045
Here's the programmer
AVR pocket Programmer
I've uploaded a picture of the ISP header on the board which i believe to be the correct . Ive also re upped the plot of the schematic and re included the error inside the ide. Ive also tried with a genuine leonardo and it works fine.
Schematic.pdf (54.9 KB)
Programmer Type : USBtiny
Description : USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported
avrdude: Using SCK period of 10 usec
avrdude: error: usbtiny_transmit: libusb0-dll:err [control_msg] sending control message failed, win error: A device attached to the system is not functioning.
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: error: usbtiny_transmit: libusb0-dll:err [control_msg] sending control message failed, win error: A device attached to the system is not functioning.
avrdude done. Thank you.
Error while burning bootloader.
Have you done the hardware checks? For example, following traces around and testing Vcc and grounds with a DMM or scope? Since you didn't place the components yourself, have you done a deep inspection of the boards to look for placement or component ID errors?
BTW is there no ground plane on your PCB?
@anon57585045 to be honest the board was designed my someone else. i simply connected it together. yes there is a ground plane its just not visible. Also. i dont have any of the equipment needed to do those test. but yes that would be a good step. unfortunately i cant do them