Getting rid of the Hobby King usbasp SCK error

User avatar
Crucial
Posts: 581
Joined: Tue Dec 27, 2011 6:56 pm
Country: -
Location: SE WI, USA

Re: Getting rid of the Hobby King usbasp SCK error

Post by Crucial »

Flaps, what OS do you use on your computer? The ad for your programmer says it doesn't work with win7. I wonder if that is actually true?

User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Getting rid of the Hobby King usbasp SCK error

Post by Flaps 30 »

I am running Ubuntu (Linux) here. I used Companion9X to test out the usbasp and the same again to reprogramme the usbasp using Companion9X putting in the following into extra arguments '-c usbasp -p atmega8 -P usb' and burning the usbabsp with 'main hex' as posted by Romolo earlier.
jbeebo
Posts: 107
Joined: Mon Nov 05, 2012 6:31 pm
Country: -
Location: Los Angeles burbs, CA

Re: Getting rid of the Hobby King usbasp SCK error

Post by jbeebo »

@Flaps30, I have the exact same programmer as you, but could not get it working with AVRDUDE in C9X. The thread Helle attached describes my odyssey with it. I've since purchased some other ones and am now functional, but would be nice to recover operation of these USBISP devices if only to have backups, maybe I'll try your method...

I'm very curious what OS, C9X, AVRDUDE versions and drivers did you use to get yours working? Maybe we should continue this discussion in the original thread about this programmer. viewtopic.php?f=10&t=2162
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Getting rid of the Hobby King usbasp SCK error

Post by Flaps 30 »

Sorry for the delay in responding.

OS here is Linux Ubuntu 12.04.1. AVRDUDE is 5.11.1-1 Companion Version 1.13 Rev 1600
User avatar
rperkins
Posts: 1422
Joined: Sun Jan 08, 2012 12:51 pm
Country: -

Re: Getting rid of the Hobby King usbasp SCK error

Post by rperkins »

Romolo wrote:Yes, that's the only difference.
In the spirit of opensource I'm providing the patch.
BTW I'm using the same firmware also on usbasp used for flashing stock radios without any trouble.
Finally got around to looking at this patch

Wanted to mention that it applies against the 2009 version of Usbasp, not the 2011 version. It also appears that most of this patch has been applied to the official 2011 version of Usbasp. But I'm thinking the main goal of the patch 'to force usbasp to emit always extended address' has not been applied to the 2011 version of Usbasp. I dont have any 2560 chips to test it on though :( Thanks again for providing the patch

Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Getting rid of the Hobby King usbasp SCK error

Post by Romolo »

Version 2011 is not reliable.

You need to disconnect and reconnect the programmer every time even between a read and write.
I didn't checked further but I stay on 2009.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

Hi, don't know if this is the right thread but here we go.
I'm building this. waiting for the Atmega8 at the moment.

http://www.fischl.de/usbasp/

What version of the software should I flash? I downloaded exactly the 2011 version from the site.

Thanks,

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Getting rid of the Hobby King usbasp SCK error

Post by Romolo »

João,
you can also flash the main.hex I posted in this thread
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

oh, must find it then, and then just flash it to the atmega8? It's an atmega 8 and not a 2560.. what fuses should I set?? Set fuses first or after flashing the application?? sorry if it is a stupid question.. I'm still learning ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Getting rid of the Hobby King usbasp SCK error

Post by Romolo »

Here is the hex
viewtopic.php?f=10&t=1363#p29615

for the fuses:
avrdude -c usbasp -p atmega8 -P usb -u -U hfuse:w:0xc9:m -U lfuse:w:0xef:m

replace -c usbasp and -P usb with appropriate programmer and port
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

Thanks.. will do.
João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
mbanzi
Posts: 223
Joined: Thu May 24, 2012 5:53 am
Country: -
Location: San Diego, CA

Re: Getting rid of the Hobby King usbasp SCK error

Post by mbanzi »

jhsa wrote:What version of the software should I flash? I downloaded exactly the 2011 version from the site.
If you use the software from fischl.de, use the 2009 version - I know it works. I've heard the 2011 version has issues, but I haven't tried it yet.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

Thanks.. will use the one Romolo linked above. I guess it is based on the 2009 version
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

Hey guys, got my Usbasp to work.. the atmegas 8 (the right ones) arrived today, placed 1 on the programmer, set the fuses, flashed Romolo's .hex and voilá, got a homemade UsbAsp ;)
Ah, no sck error..
Thank you.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Getting rid of the Hobby King usbasp SCK error

Post by Flaps 30 »

Now all you have to do is to rip out the M64 from one of your other TX's, replace it with a new M128 and see if you can program it.. :)
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

You bet I will.. :mrgreen:
But first want to finish the sound board for this one, so I can have a working tx.. At the moment both of them are open on the bench.. I guess now that Mike sorted that problem with the communication between the board and the atmega on the radio, there won't be more hardware changes and I can close the radios.. then will engage the vario project.. oops, just remembered that we don't have vario support on er9x :o :(
I'll do it anyway, I'm sure it is in Mike's to do list :mrgreen:

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Getting rid of the Hobby King usbasp SCK error

Post by Flaps 30 »

jhsa wrote: then will engage the vario project.. oops, just remembered that we don't have vario support on er9x :o :( I'll do it anyway, I'm sure it is in Mike's to do list :mrgreen:
Off Topic - You could always go over to Open9x as that offers Vario support as standard, including the new vario project that looks good. The only slight downside is the lack of some useful voice features that exists with Er9x. No doubt that will be corrected in the near future... When someone has time to do it. :)
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Getting rid of the Hobby King usbasp SCK error

Post by MikeB »

Vario is on its way, just slowly. FrSky are bringing out a new "real" vario, and the required code should be compatible with the vario project.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

Mike, this project is a real vario ;) unless FrSky is releasing a total energy vario. I think that's how it's called.
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

@flaps30. Yeah open9x is a great fw but as you say the audio is still a bit behind. I also like the AND switch at the end of the C.Switches and the timer in the C.Sw's too in er9x. Also we don't know if open will fully support the new sound board..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Getting rid of the Hobby King usbasp SCK error

Post by Rob Thomson »

jhsa wrote:@flaps30. Yeah open9x is a great fw but as you say the audio is still a bit behind. I also like the AND switch at the end of the C.Switches and the timer in the C.Sw's too in er9x. Also we don't know if open will fully support the new sound board..
Can we get a list of the things you feel are missing audio wide on open9x?

Best bet is to open an issue/request on the project page.

It is impossible for the developers to keep on top of all the diffefences/features. If you feel something is missing... Log a request and suggest how to improve it :mrgreen:

Sent from my GT-I9300 using Tapatalk 2
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Getting rid of the Hobby King usbasp SCK error

Post by jhsa »

I wasn't talking to you.. was talking to Flaps30 :mrgreen:

No, really you're right, instead of being here moaning about it I should have said the same to the developers.. well, I guess I just did?? 8-) :P :mrgreen:

I do think open9x has some very cool and usefull features. And with the Atmega128 even the stock board can take advantage of it. My plan is to have one radio with er9x and the other with open9x. It's a tributte and respect to the great people that work FOR FREE on these fw's. But I would like some of the options from er9x I'm used to in open9x.. But i also would like to have other stuff from open9x. for example the curves, the vario, the complete GVARS.. It's all cool and it's a shame we can't have it all.. :(

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Flaps 30
Posts: 1490
Joined: Tue Dec 27, 2011 6:04 pm
Country: -
Location: Wokingham Berkshire

Re: Getting rid of the Hobby King usbasp SCK error

Post by Flaps 30 »

You tell him João :twisted:
jhsa wrote:@flaps30. Yeah open9x is a great fw but as you say the audio is still a bit behind. I also like the AND switch at the end of the C.Switches and the timer in the C.Sw's too in er9x. Also we don't know if open will fully support the new sound board..
Ohh,... I forgot about the AND swtich. I used that a few times to good effect.
Rob Thomson wrote:Can we get a list of the things you feel are missing audio wide on open9x?

Best bet is to open an issue/request on the project page.

It is impossible for the developers to keep on top of all the diffefences/features. If you feel something is missing... Log a request and suggest how to improve it :mrgreen:
I know from what you said a while back on the thread below that the Open9x team were very busy working on other projects.

The list of things from my point of view concerning the way that the voice side of the package is dealt with, is covered to some extent in the posts on that thread. I wouldn't wish to push things, or ask for something that no one else using Open9x doesn't want. Also to try and put into words any suggestions would take a lot of writing, when all it takes is a bit of playing around with Er9x to see its advantages. This is the thread where some of this was discussed. It has become buried and is now on page three in the Open9x forum. ----> viewtopic.php?f=45&t=1257&start=90

Is there a way of splitting this off to another thread or something, as it is way off topic?
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Getting rid of the Hobby King usbasp SCK error

Post by JustinTime »

To get back on topic, I have the board shown in this thread in the first three posts. viewtopic.php?f=10&t=2571 Where do I make the jumper to program that board?
Romolo
9x Developer
Posts: 1109
Joined: Sat Dec 31, 2011 12:11 am
Country: -
Location: Massa (MS), Tuscany, Italy

Re: Getting rid of the Hobby King usbasp SCK error

Post by Romolo »

Jumper j2 a single drop of lead to be removed after programming
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Getting rid of the Hobby King usbasp SCK error

Post by JustinTime »

To make a long story short, I now have three programmer and a fourth on it's way. The third one arrived today and is the one in the picture. It has no resistor array and it says V2 on it. The other two have arrays on them. One is an old one and has the 100ohm array and the date is 2009 and one has a 220ohm array and the date is 2011. I will remove the 220ohm array. My question is what should I flash it with. Only the Romolo hex or the 2009 program too. If the 2009 should be flashed, does it gets flashed together with the Romolo hex or does the hex gets flashed afterwards?
Attachments
No Array Programmer.jpg
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Getting rid of the Hobby King usbasp SCK error

Post by Kilrah »

The "Romolo hex" is complete so you just need to flash that.

Did you order all those at the same place??
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Getting rid of the Hobby King usbasp SCK error

Post by JustinTime »

No, I had one a long time ago. I ordered the one in the pic to program the first. It didn't arrive and I got my money back from paypal. I bought another one since I have to reprogram the first. It arrived a few days ago. Today I got the one that was canceled and where paypal gave me my money back. It took it 6 weeks to arrive. The fourth one is on it's way do to my misunderstanding a Ebay message. They only cost $3.50 each shipped so I don't worry too much.
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Getting rid of the Hobby King usbasp SCK error

Post by JustinTime »

Using WinAVR I now flashed all three programmer with the main.hex. In the programmer pictured above I added two pins where the J2 holes are. Should I have to reflash this programmer I will not have to solder anymore, just add a jumper plug. The other two programmer I had to solder and un-solder the J2 positions.
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Getting rid of the Hobby King usbasp SCK error

Post by JustinTime »

Romolo wrote:Here is the hex
http://openrcforums.com/forum/viewtopic ... 363#p29615

for the fuses:
avrdude -c usbasp -p atmega8 -P usb -u -U hfuse:w:0xc9:m -U lfuse:w:0xef:m
Do I have to set the fuses before I flash the main.hex or can I flash without the above command? And if yes, do I have to reset them after the flashing with another command?

Post Reply

Return to “PROGRAMMERS”