Pages: [1] 2   Go Down
Author Topic: USBasp v2  (Read 5678 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is there a Arduino IDE support for http://www.ebay.com/itm/1PCS-USBasp-USBISP-3-3V-5V-AVR-Programmer-USB-ATMEGA8-New-/261021924011
?
I know theres the USBasp but this USBasp is different.
Is there any files to add the support for version 2?
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If the text on the pcb says "USBasp", it is a USBasp. Version 2 is no problem, just select USBasp.

It the text on the pcb says "USBisp", it is a USBisp and not a USBasp. The name 'USBasp' in the title at Ebay is misleading in that case.
If the proper firmware is installed, it acts just like a USBasp.
But the firmware is slightly different from the real USBasp, since other pins are used.
Conclusion: Use it as if it is a USBasp. If that doesn't work (old or wrong firmware) you have bad luck and you should get rid of it.
« Last Edit: March 08, 2013, 01:21:34 pm by Erdin » Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I made it work.
The one in the link seems legit.
I looked up into the drivers.
They were from 2005.
There was a link to the german site firschl.
I went there and found 2011 driver.
After I installed it and pressed burn bootloader in arduino IDE(note i didnt connect anything to the programmer)
it said that
Code:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: error: programm enable: target doesn't answer. 1
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Instead of not being able to find the programmer.
Anyway,where do I find the Atmega48 files necessary for arduino IDE to recognize it and be able to program onto it using USBasp?
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fischl is the developer of the USBasp, http://www.fischl.de/usbasp/

If the Arduino IDE connect to a target via the USBasp, the target must be connected.
So perhaps the firmware on the USBasp is just fine.

Does the text on the pcb actually say "USBasp" ?
Are you sure it is a ATmega48. As far as I know they are ATmega8 running at 12MHz.
The newest firmware is at the Fischl site.
You have to use another programmer and set a jumper to be able to program new firmware into the USBasp.
I have done that a few times, although it was not necessary.

Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it says USBasp.
I got that latest driver.
Bootloader flashing without target was just a test run to see if its recognized.
Also it's Atmega8.
The 2011 driver says that it has added support for Atmega8.
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16518
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fischl is the developer of the USBasp, http://www.fischl.de/usbasp/

If the Arduino IDE connect to a target via the USBasp, the target must be connected.
So perhaps the firmware on the USBasp is just fine.

Does the text on the pcb actually say "USBasp" ?
Are you sure it is a ATmega48. As far as I know they are ATmega8 running at 12MHz.
The newest firmware is at the Fischl site.
You have to use another programmer and set a jumper to be able to program new firmware into the USBasp.
I have done that a few times, although it was not necessary.



The USBasp programmer I bought at hobby king had a link to firmware files and showed one available for both mega8 and mega48 chips. Mine uses the mega8 chip.

So I think there are USBasp programmers that use either of those avr chips.

http://www.hobbyking.com/hobbyking/store/__21321__USBasp_AVR_Programming_Device_for_ATMEL_proccessors.html?strSearch=USBasp
Lefty
Logged

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 27
Posts: 582
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
After I installed it and pressed burn bootloader in arduino IDE(note i didnt connect anything to the programmer)
it said that...

That is a normal response if you don't have anything connected to the programmer.  It will probably work okay.  You don't necessarily need to update the firmware on the programmer, unless you plan to program AVR chips that run with clocking below 1 MHz.

I have one of those USBasp V2.0 programmers, by LCsoft Studio.  It uses an ATmega8A chip.  I was able to upgrade the firmware to the latest 2011 version.  Seems to be running fine and the slow clk option is also working correctly.

If you really need to update the firmware on the programmer then you will need another programmer to program it.  Do you need more info?



Logged

Offline Offline
Newbie
*
Karma: 1
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
After I installed it and pressed burn bootloader in arduino IDE(note i didnt connect anything to the programmer)
it said that...

That is a normal response if you don't have anything connected to the programmer.  It will probably work okay.  You don't necessarily need to update the firmware on the programmer, unless you plan to program AVR chips that run with clocking below 1 MHz.

I have one of those USBasp V2.0 programmers, by LCsoft Studio.  It uses an ATmega8A chip.  I was able to upgrade the firmware to the latest 2011 version.  Seems to be running fine and the slow clk option is also working correctly.

If you really need to update the firmware on the programmer then you will need another programmer to program it.  Do you need more info?


What i meant was that arduino recognized it.
I know it is supposed to say that when nothing is connected.

Logged

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 27
Posts: 582
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been able to use it (USBasp V2.0 Lcsoft Studio) with Arduino IDE 1.0.3 and with the ATtiny cores.  I have tested it successfully with programming an ATtiny85 at 8MHz and ATtiny13A running at 128Khz clock.

One thing to note with any USBasp working with the Arduino IDE,  there is a limitation that the IDE is not able to select a slow clk option with the USBasp programmers.  So I did have to jumper JP3 on the USBasp board to force the slow clk option to program the ATtiny13A running at 128KHz.

If you don't use the IDE and use avrdude from command line then you can use the -B 50 option to slow the programmer down.  But this only will work if the programmer is using the fischl.de firmware 2009 or 2011.  The older firmwares did not support this option.

Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16518
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
One thing to note with any USBasp working with the Arduino IDE,  there is a limitation that the IDE is not able to select a slow clk option with the USBasp programmers.  So I did have to jumper JP3 on the USBasp board to force the slow clk option to program the ATtiny13A running at 128KHz.

That is how my USBasp worked when I first got it, it would work but upon the completion of a action avrdude would print a warning message about needing a firmware updata to allow for CLK speed selection. So I found a newer firmware version on the hobby king support files folder, so I loaded the newest dated firmware file onto my USBasp and now it still works but the warning message is gone. My programmer did not have a J3 jumper for speed selection.

Lefty
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 72
Newbie !! so help me please...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ retrolefty

Please do you have a link for the lattest drivers.....
I get always the same problem.... update the drivers...
Bud i connot find a driver later as 2011-5

Please help me
Logged

Newbie !!  so help me please...
Heb een arduino ethernet met Solarmeter

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16518
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is the hex file I found attached below.

In the ad for the programmer
http://www.hobbyking.com/hobbyking/store/__21321__USBasp_AVR_Programming_Device_for_ATMEL_proccessors.html

Toward the end of the ad there is a purple tab labeled FILES, click on it and there will be a list of files.
Double click on the one labeled "No File Name", that will download a zip file which in it has a file named
usbasp.atmega8.2006-12-29.hex
That is the one I loaded into my USBasp programmer that caused the warning message after every use to go away.

Lefty

* USBasp-hex.txt (9.31 KB - downloaded 31 times.)
« Last Edit: April 19, 2013, 03:44:05 pm by retrolefty » Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 72
Newbie !! so help me please...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@ Retrolefty..
Thanks voor the link...
 i trayd and trayd....
Bud no result....
Always teh same problem
Code:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
avrdude: verification error, first mismatch at byte 0x1e000
         0xff != 0x0d
avrdude: verification error; content mismatch

And i have make a correct update of the driver .
Bud still there is something wrong..

I do not now how hex files working..


* ScreenShot065.jpg (69.57 KB, 679x555 - viewed 110 times.)
« Last Edit: April 20, 2013, 02:32:26 am by dylantje » Logged

Newbie !!  so help me please...
Heb een arduino ethernet met Solarmeter

Offline Offline
Jr. Member
**
Karma: 0
Posts: 72
Newbie !! so help me please...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did i fixed now???

How can i check what bootloader i have??


* ScreenShot066.jpg (181.97 KB, 1547x845 - viewed 111 times.)
Logged

Newbie !!  so help me please...
Heb een arduino ethernet met Solarmeter

Wahiawa, Hawaii
Offline Offline
God Member
*****
Karma: 27
Posts: 582
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Note the message to update firmware is not necessarily a bad thing.  It doesn't mean it failed or anything.  All it is pointing to is that it can't manually set the programmers sck clock speed via software control.  However, most USBasp programmers from China, including HobbyKing have an auto-speed feature built in.  So just because you are having a failure doesn't necessarily mean it's because of the programmer's firmware version.

If you are having verification errors with programming an ATmega2560, it is because of the larger memory space of those uC.  Most ISP programmers do not properly support the larger memory space including these USBasp programmers.  You will need a programmer that supports the stk500v2 protocol to address the larger memory space, like the AVRISPMkII programmer from Atmel.

The firmware version of the USBasp programmer can be found from the Details tab in the Device Properties.  Version 1.4 is the latest when using usbasp.atmega8.2011-05-28.hex from the http://www.fischl.de/usbasp/ site.





* USBasp_version.PNG (19.25 KB, 404x455 - viewed 257 times.)
Logged

Pages: [1] 2   Go Up
Jump to: