SMALL - espritmodel.com SMALL - Telemetry SMALL - Radio
Reply
Thread Tools
Old Sep 16, 2011, 04:23 PM
CL-OSD developer
Sverige, Östergötlands Län, Linköping
Joined Apr 2011
279 Posts
I doubt it, but I can't guarantee...
callelj is offline Find More Posts by callelj
Reply With Quote
Sign up now
to remove ads between posts
Old Sep 16, 2011, 05:02 PM
Registered User
Joined Jun 2010
83 Posts
Really sorry to hear about your osd's being bricked.

I just hooked up my G-OSD to an AVR programmer (usbasp in device manager).
Driver is installed, what do I do next? :P
There must be a simple GUI program for flashing these?
And if there is, how does one use it?

Just tried kkMulticopter Flash Tool 0.32 but that one doesn't seem to take eeprom files.

and now this happened
Code:
Flash the firmware file.

C:\Users\Tjerk\Desktop\avr\lib\avrdude\windows\avrdude.exe -C C:\Users\Tjerk\Desktop\avr\lib\avrdude\windows\avrdude.conf -p m88p -P usb -c usbasp -B 8 -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m 

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude.exe: Device signature = 0x1e930f
avrdude.exe: reading input file "0xe2"
avrdude.exe: writing lfuse (1 bytes):

Writing |  ***failed;  
################################################## | 100% 0.03s

avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0xe2:
avrdude.exe: load data lfuse data from input file 0xe2:
avrdude.exe: input file 0xe2 contains 1 bytes
avrdude.exe: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude.exe: verifying ...
avrdude.exe: verification error, first mismatch at byte 0x0000
             0xe2 != 0xf7
avrdude.exe: verification error; content mismatch

avrdude.exe done.  Thank you.

Error during setting the fuses.
Flashing of firmware aborted.
tried cl-osd.hex on atmega 88p/pa
Baggus is offline Find More Posts by Baggus
Last edited by Baggus; Sep 16, 2011 at 05:21 PM.
Reply With Quote
Old Sep 16, 2011, 05:39 PM
Registered User
Parity's Avatar
Joined Sep 2011
114 Posts
You shouldn't change fuses at all.
ATmega88PA is the right chip.

Edit: Which revision did you try to flash?
Parity is offline Find More Posts by Parity
Last edited by Parity; Sep 16, 2011 at 05:49 PM.
Reply With Quote
Old Sep 17, 2011, 03:46 AM
Registered User
Joined Jun 2010
83 Posts
Quote:
Originally Posted by Parity View Post
You shouldn't change fuses at all.
ATmega88PA is the right chip.

Edit: Which revision did you try to flash?
R29, because I read R30 was not tested yet
Baggus is offline Find More Posts by Baggus
Reply With Quote
Old Sep 17, 2011, 04:08 AM
Registered User
Parity's Avatar
Joined Sep 2011
114 Posts
Thats okay. r29 works fine.
I'm really sorry for callelj and his bricked osd's. Somehow sacrificed for the community.
Parity is offline Find More Posts by Parity
Reply With Quote
Old Sep 17, 2011, 05:39 AM
Registered User
Joined Jun 2010
83 Posts
Could someone please post how to correctly flash the firmware, dying to try it out here!

Already have usbasp installed and correctly connected.

If someone shows me the basic steps I can write a comprehensive tutorial.
Baggus is offline Find More Posts by Baggus
Reply With Quote
Old Sep 17, 2011, 02:08 PM
Up up and away!
FpvKiwi's Avatar
Sweden
Joined Oct 2010
701 Posts
Quote:
Originally Posted by Baggus View Post
and now this happened
If I'm reading your command line right, you're missing -u which is necessary when programming fuses:
"Disables the default behaviour of reading out the fuses three times before programming, then verifying at the end of programming that the fuses have not changed. If you want to change fuses you will need to specify this option ..."
(From here)
FpvKiwi is offline Find More Posts by FpvKiwi
Reply With Quote
Old Sep 17, 2011, 02:28 PM
Registered User
United States, CA, San Jose
Joined Jul 2009
1,369 Posts
For USBASP programmers I use eXtreme Burner to write .hex files to ATmega's as it's more GUI driven then AVR Dude.

Calle,

You might give it a go, just in case it's able to talk to or recgnoize your G-OSD/E-OSD board.
patricklupo is offline Find More Posts by patricklupo
Reply With Quote
Old Sep 17, 2011, 04:08 PM
Registered User
Joined Jun 2010
83 Posts
Quote:
Originally Posted by patricklupo View Post
For USBASP programmers I use eXtreme Burner to write .hex files to ATmega's as it's more GUI driven then AVR Dude.

Calle,

You might give it a go, just in case it's able to talk to or recgnoize your G-OSD/E-OSD board.
Thanks for the advice, but I already tried that program and it doesn't recognize the atmega88pa.
Baggus is offline Find More Posts by Baggus
Reply With Quote
Old Sep 17, 2011, 07:40 PM
Registered User
Parity's Avatar
Joined Sep 2011
114 Posts
Argh, nasty bug in myReverse().
The loop in there should be for (i = 0; i <= size/2; i++)
Took some time to figure that out...
It lead to longer numbers getting a bit obscure in the middle.
For instance for a distance from home of 1650 meters you got displayed 1560.
Fixed it in my modified r29. Got RSSI working too.

Parity

PS: I flash the OSD with an AVR mkII (USB) right from AVR Studio. Explanation and pictures wanted?
Parity is offline Find More Posts by Parity
Reply With Quote
Old Sep 18, 2011, 12:29 AM
Registered User
Joined Aug 2011
17 Posts
Quote:
Originally Posted by Parity View Post
PS: I flash the OSD with an AVR mkII (USB) right from AVR Studio. Explanation and pictures wanted?
Yes please! Every documentation is valuable, newbies like me need that.

I am just about to get programmer, can I just get the cheapest one off ebay (like this one: http://www.ebay.co.uk/itm/USBASP-USB...#ht_3870wt_907 )?
Jancis is offline Find More Posts by Jancis
Last edited by Jancis; Sep 18, 2011 at 12:41 AM.
Reply With Quote
Old Sep 18, 2011, 07:23 AM
Registered User
Joined Jun 2010
83 Posts
Quote:
Originally Posted by Jancis View Post
Yes please! Every documentation is valuable, newbies like me need that.

I am just about to get programmer, can I just get the cheapest one off ebay (like this one: http://www.ebay.co.uk/itm/USBASP-USB...#ht_3870wt_907 )?
I second that!

And I already have the programmer in your link
Baggus is offline Find More Posts by Baggus
Reply With Quote
Old Sep 18, 2011, 07:34 AM
Registered User
Parity's Avatar
Joined Sep 2011
114 Posts
So in a very short form here is what to do with a AVR mkII in AVR Studio. AVR Studio is free.

1: Download cl-osd.hex and cl-osd.eep
This is the compiled program (and eeprom memory). If you do not want to make changes in the code of the program, you will not need any other files.

2: Connect programmer to G-OSD and USB-Port of the PC, then connect battery to the G-OSD.

3: Start AVR Studio, choose Tools -> AVR Programming (see picture)

4. Final window, choose your programmer from the list, choose the ATmega88PA and ISP, then click "Apply".

4b. (optional) You may want to check connection to your chip by clicking "Read" next to device ID. If G-OSD is connected you will get somthing like I did in the screenshot.

5. Select "Memories" and browse to the two files. cl-osd.hex for the flash-memory, cl-osd.eep for the EEPROM. Click "Program" button for the Flash, wait until its done (like 3 to 5 seconds), then click "Program" button for the EEPROM.


Done.

PS: I cannot tell you if or how that works with ebay-programmers. No experience with that.
Parity is offline Find More Posts by Parity
Reply With Quote
Old Sep 18, 2011, 02:32 PM
Registered User
Joined Jun 2010
83 Posts
dammit... i only have a cheap usbasp ebay programmer, don't want to wait another month to get a proper one

is there a way to make avr studio think i have a genuine programmer?

does anyone have the command line needed by avrdude?
Baggus is offline Find More Posts by Baggus
Reply With Quote
Old Sep 18, 2011, 02:36 PM
CL-OSD developer
Sverige, Östergötlands Län, Linköping
Joined Apr 2011
279 Posts
Parity: Are you sure it's a ATmega88PA? I have always programmed as a ATmega88. Maybee there is no difference?

The USBASP do not work in AVR Studio. At least not mine...
But my stk500 and my AVR mkII works.
callelj is offline Find More Posts by callelj
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Build Log Super OSD ($90): Open Source Graphic OSD: Vario, 6xADC, Games, Datalog, Dual Video tom66 FPV Equipment 1928 May 24, 2014 11:07 AM
Discussion Open Source Remote Control System (OSRC) Gizmoman31 Radios 152 Apr 24, 2012 06:01 PM
Discussion Open source OSD for FPV UFO_MAN FPV Talk 75 Sep 07, 2011 02:03 PM
Question Open Source Octo Design Available...Looking for someonw who can cut a copy for me... Schatham421 Multirotor Talk 14 Apr 12, 2011 05:22 PM