AvrUsbBoot on ATmega168
Posted: Sun Apr 13, 2008 11:06 pm
I have been trying to make AvrUsbBoot work with ATmega168. What I have done is set the appropriate parameters in bootloaderconfig.h, and alter the Makefile appropriately:
As far as I can see this should be all that I needed: The register defining IVCE and IVSEL is handled by the define on the command line. The correct MCU has been defined.
I have put in a little debugging code that lights a LED when the bootloader is activated, and this works as expected. In other words everything seems to be fine with fuse configuration etc.
Yet, all that happens when I plug in the device is that windows shows the "USB device not recognized" balloon. When I put my other code (my SpiffChorder firmware) in the device and set the fuses accordingly, the device works fine, so I believe the hardware should be OK.
Any suggestions to what I might be missing here would be appreciated.
Kind regards
Code: Select all
BOOTLOADER_ADDRESS = 3800
LDFLAGS += -Wl,--section-start=.text=$(BOOTLOADER_ADDRESS)
COMPILE = avr-gcc -Wall -Os -Iusbdrv -I. -mmcu=atmega168 -DGICR=MCUCR
As far as I can see this should be all that I needed: The register defining IVCE and IVSEL is handled by the define on the command line. The correct MCU has been defined.
I have put in a little debugging code that lights a LED when the bootloader is activated, and this works as expected. In other words everything seems to be fine with fuse configuration etc.
Yet, all that happens when I plug in the device is that windows shows the "USB device not recognized" balloon. When I put my other code (my SpiffChorder firmware) in the device and set the fuses accordingly, the device works fine, so I believe the hardware should be OK.
Any suggestions to what I might be missing here would be appreciated.
Kind regards