AVRUSBBoot Atmega16
AVRUSBBoot Atmega16
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
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
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
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
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
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
Anonymous wrote:...and where would I get _that_ from? sourceforge provides only the latest version
Oh, rly ?
-
- Rank 1
- Posts: 25
- Joined: Wed Jul 23, 2008 5:31 am
- Location: JAPAN
mega164p
BootHID.hex
Last edited by apollononnno on Mon Sep 08, 2008 3:16 pm, edited 2 times in total.