I have a "www.rototron.info" version of AVR-Doper, i.e. minus the HVSP.
I have compiled the latest firmware (AVR-Doper.2008-02-05.zip) and flashed it in. I left out the HID support since I only wanted the CDC part and I wanted more space for a bootloader. It is working well.
Now, I want to flash in a bootloader so that future firmware upgrades can be done over the USB interface.
As per the readme.txt file in the AVR-Doper firmware package, I looked at the Thomas Fischl's boot loader (http://www.fischl.de/avrusbboot/).
I could not get it to compile because the hardware configuration that the bootloader wants (and as defined in the source) is incompatible with the AVR-Doper's. Or maybe I don't know how to change the USB bus port pins that are defined in the bootloaders code correctly.
Now, is a suitable version of bootloader available in a compiled state somewhere ?
If not, then can someone help me get it to compile.
thanks.
BootLoader for AVR-Doper
Here's the bootloaderconfig.h file I used:
Don't remember what the boot loader condition was, but I guess it was the HID jumper.
BTW: It turned out that 10 ms delay is not enough for USB disconnect. For reliable detection, you need something like at least 250 ms.
Code: Select all
#define BOOTLOADER_INIT \
PORTB = 0; \
DDRB = 0; \
PORTC = 0; \
DDRC = 0; \
PORTD = 1 << 4; \
DDRD = (1<<USB_CFG_DMINUS_BIT) | (1<<USB_CFG_DPLUS_BIT);\
uchar i, j = 0; \
while(--j){ /* USB Reset by device only required on Watchdog Reset */\
i = 0; \
while(--i); /* delay >10ms for USB reset */\
} \
DDRD = 0;
#define BOOTLOADER_CONDITION ((PIND & (1 << 4)) == 0)
Don't remember what the boot loader condition was, but I guess it was the HID jumper.
BTW: It turned out that 10 ms delay is not enough for USB disconnect. For reliable detection, you need something like at least 250 ms.