Page 1 of 1

AVRUSBBoot Atmega16

Posted: Wed Mar 05, 2008 2:15 am
by x37v
Hi, I'm trying to get AVRUSBBoot to work with an Atmega16.

The page claims that it has been tested with that chip but, i haven't had luck.

I've tested that USB does work with my circuit [I built and programmed it with the Powerswitch example], so I assume it must be something with the settings in the AVRUSBBoot project [for example, when I build the project 'checksize' fails, as it says:
*** code size 2078 exceeds limit of 2048

Anyways, has anyone got this working with the mega16? If so, do you have any advice?

Thanks,
Alex

Posted: Thu Mar 06, 2008 3:48 am
by Grendel
The error says it all -- your code is to big to fit into the boot loader section by 30 bytes.

There are different ways of solving this:

- try to squeeze 30 bytes out of your code
- use a 16MHz crystal, the code path is 106 bytes smaller than the 12MHz path
- use an older version of WIN-AVR, creates smaller code

Posted: Fri Mar 07, 2008 9:48 pm
by x37v
hmm, so I was able to make the driver smaller by reducing length of the name of the device [as queried through USB], but it still isn't working.. I can get it to go into 'bootloader mode' as well as 'leave bootloader mode' [i verified this by making leds light or flash]. But, my host still does not recognize the device as being a valid USB device:
dmesg:
[11542.388000] usb 2-1: new low speed USB device using uhci_hcd and address 54
[11542.804000] usb 2-1: device not accepting address 54, error -71

D+ and D-

Posted: Sat Mar 08, 2008 11:14 am
by horo
Hi,

your settings for D+ and D- are correct? For USBaspLoader I had to change USB_CFG_DMINUS_BIT - the default is PORT D4 in bootloaderconfig.h

Martin

Posted: Thu Mar 13, 2008 11:11 pm
by x37v
yes, I did change the bootloaderconfig.h to reflect the settings that i had working with the powerswitch example.

-Alex

Posted: Wed Sep 03, 2008 4:47 pm
by Guest
Grendel wrote: - use an older version of WIN-AVR, creates smaller code


...and where would I get _that_ from? sourceforge provides only the latest version ;)

Posted: Wed Sep 03, 2008 9:15 pm
by Grendel
Anonymous wrote:...and where would I get _that_ from? sourceforge provides only the latest version ;)

Oh, rly ? :P

mega164p

Posted: Thu Sep 04, 2008 6:41 am
by apollononnno
BootHID.hex

Posted: Thu Sep 04, 2008 9:32 am
by Guest
Grendel wrote:http://sourceforge.net/project/showfiles.php?group_id=68108&package_id=66543


you're my hero :D