geekhack Projects > Making Stuff Together!
ATMega32U4 - can't stay in bootloader mode
Eszett:
Hi! I've got a keyboard PCB with ATMega32U4, and it almost does what it should. I can flash it, the firmware evokes letters, except that shorting the RST pin jumps to bootloader mode and immediatey back to application mode. What could be the problem there? And how to debug that?I attached the wiring scheme and the fuse settings.
fpazos:
Pushing it twice should keep the bootloader mode some seconds
Eszett:
I wish it would ... After shorting the RST pin, the "disconnect" Windows sound is followed immediately by the "connect" Windows sound, so my guess, that it doesn't stay in bootloader mode.
nevin:
the bootloader for a promicro 32u4 (if reset twice quickly in succession) will give you a max of 8 seconds (if my memory serves.... Catalina, AVR).
DFU on the other hand will stay in bootloader mode until it's power is cycled.
so it's probably not the chip but the bootloader you are using.
Eszett:
Hi Nevin, beeing unsure whether the chip came with a bootloader or not, I flashed the official bootloader by hand with the command
avrdude -c usbasp -p m32u4 -e -U flash:w:ATMega32U4-usbdevice_dfu-1_0_0.hex
I hope this was correct? With flashing I've got no errors. But maybe I should double check if everything turned out well? How do I?
Navigation
[0] Message Index
[#] Next page
Go to full version