Page 2 of 3

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sun Jan 13, 2013 3:47 pm
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?

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sun Jan 13, 2013 4:12 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Tue Jan 15, 2013 8:17 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Jan 23, 2013 10:18 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Mon Feb 04, 2013 9:42 am
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Tue Feb 05, 2013 7:50 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 12:09 am
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 12:27 am
by Romolo
João,
you can also flash the main.hex I posted in this thread

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 12:48 am
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 1:06 am
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 1:24 am
by jhsa
Thanks.. will do.
João

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 3:10 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Wed Feb 06, 2013 4:09 pm
by jhsa
Thanks.. will use the one Romolo linked above. I guess it is based on the 2009 version

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 3:00 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 4:27 pm
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.. :)

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 4:39 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 5:41 pm
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. :)

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 5:51 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 6:00 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 6:09 pm
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..

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 8:21 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 8:30 pm
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

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 9:13 pm
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?

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 9:49 pm
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?

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Feb 08, 2013 9:57 pm
by Romolo
Jumper j2 a single drop of lead to be removed after programming

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sat Mar 09, 2013 6:13 pm
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?

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sat Mar 09, 2013 6:20 pm
by Kilrah
The "Romolo hex" is complete so you just need to flash that.

Did you order all those at the same place??

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sat Mar 09, 2013 6:34 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Sat Mar 09, 2013 8:29 pm
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.

Re: Getting rid of the Hobby King usbasp SCK error

Posted: Fri Apr 05, 2013 6:14 pm
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?