USBaspLoader - Bootloader Emulating USBasp

Registered forum users can contribute their rating for projects based on V-USB in this forum.

Please rate USBaspLoader on a scale from 0 (worst) to 5 (best):

(0)
0
No votes
(1) *
0
No votes
(2) **
0
No votes
(3) ***
0
No votes
(4) ****
0
No votes
(5) *****
7
100%
 
Total votes: 7

christian
Objective Development
Objective Development
Posts: 1369
Joined: Thu Nov 09, 2006 11:46 am

Postby christian » Sat Feb 23, 2008 1:25 pm

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.

Alloc
Rank 1
Rank 1
Posts: 20
Joined: Tue Feb 19, 2008 10:52 pm
Location: Germany (Hessen)
Contact:

Postby Alloc » Sat Feb 23, 2008 3:32 pm

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

Guest

Postby Guest » Wed Apr 09, 2008 5:53 pm

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?

christian
Objective Development
Objective Development
Posts: 1369
Joined: Thu Nov 09, 2006 11:46 am

Postby christian » Thu Apr 10, 2008 11:40 am

Yes, of course. The mechanism with the Reset button is in bootloaderconfig.h, function bootLoaderInit(). Just remove

Code: Select all

    if(!(MCUCSR & (1 << EXTRF)))    /* If this was not an external reset, ignore */
        leaveBootloader();
    MCUCSR = 0;                     /* clear all reset flags for next time */

from the function.

klaute_
Posts: 2
Joined: Thu Feb 11, 2010 1:57 pm
Location: Germany
Contact:

Re: USBaspLoader - Bootloader Emulating USBasp

Postby klaute_ » Thu Feb 11, 2010 2:15 pm

Hi,

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

https://stud.hs-heilbronn.de/~klauterb/ ... -02-10.htm

klaute

lxkarthi
Posts: 6
Joined: Tue May 15, 2012 12:17 pm

Re: USBaspLoader - Bootloader Emulating USBasp

Postby lxkarthi » Tue May 15, 2012 1:22 pm

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.

lxkarthi
Posts: 6
Joined: Tue May 15, 2012 12:17 pm

Re:

Postby lxkarthi » Wed May 16, 2012 7:46 am

[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?

fullmous
Posts: 2
Joined: Sun Feb 24, 2013 2:40 pm

Re: USBaspLoader - Bootloader Emulating USBasp

Postby fullmous » Mon Feb 25, 2013 2:09 am

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 ?


Return to “V-USB Project Ratings”

Who is online

Users browsing this forum: No registered users and 1 guest