I just soldered together my custom ATmega32U4 AVR dev board. It has a USB connector on it, a reset button, and HWB is tied to ground.
I've successfully managed to flash the software with the DFU bootloader, but on reset I always have to start the programmer with
dfu-programmer mega32u4 start
...my code won't run on reset; it must be started through the terminal.
I know this problem is because I tied HWB to ground... but is there any way (with fuses or other bootloaders) to get the bootloader to run for a very short time on reset, then start the program... basically, the reset would look like this:
1. Jump into DFU bootload mode
2. Wait 1 second
3. Start program
This functionality is kind of like the Arduino's bootloader.
How could I accomplish this?
Thanks in advance!