Another idea: Maybe the boot loader exits and jumps to the loaded application. Can you verify that? If it exits, the boot loader condition may have become false or the loader received a disconnect request via USB.
No, that wasn't the problem either ...
Sorry for bothering you alle the time, it was my fault
Thought the linker-address in the Makefile had to be in words, so I set it to 0x0C00, whereas it should've been 0x1800. (Don't know why the code ran at all with the wrong address)
Anyway, now it works just fine.
I compare BootloadHID and USBaspLoader with ATmega8, powered 5V from USB.
In BootloadHID at out/in of USB-cable the device automatically goes into a mode bootloader. Its good. However in USBaspLoader after out/in USB-cable it is required to press the button RESET to goes into a mode bootloader. The question - whether can be made so that USBaspLoader was automatically started without push the button RESET?
i have build a diff against USBaspLoader 2009-03-20 sources. It comes with the new V-USB Release and one or more lines added to get it work with a ATMega168 (20 MHz). Now it works for me, have at look at http://klautesblog.blogspot.com
I am trying to build usbasploader using atmega32. I am facing problems. after programming, the usb device is not recognised. & it says as unknown device. I use 3.6V zener diode at the D-, D+. use 100 ohm to connect to PD6 and PD2. I used PD1 as jumper. I use 1k for pull up for D- and 260K for pulldown for D+. I use 7800 as bootloader address. 16MHz crystal oscillator. Fuse are High:0xd6, low:0xdf. Please Correct me where i am going wrong.
PS:In the code in the website, i could not find option to configure for ATMEGA32. so, i took this code from some project at code.google.com.
[quote="Alloc"]No, that wasn't the problem either ... Sorry for bothering you alle the time, it was my fault :D Thought the linker-address in the Makefile had to be in words, so I set it to 0x0C00, whereas it should've been 0x1800. (Don't know why the code ran at all with the wrong address) Anyway, now it works just fine.
Good job you did there =)
Chris[/quote] Can you send me the working code and hex file?
Hi,I download USBaspLoader.2012-12-08.tar.gz,and compiled as mega8,12MHz.And when I uploaded the hex file to my mega8,windows report it as an unrecognized device.I found the my hex file is different with your mega8_12mhz.hex in hexfiles folder.Why ?