Er9x128

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
mbanzi
Posts: 223
Joined: Thu May 24, 2012 5:53 am
Country: -
Location: San Diego, CA

Re: Er9x128

Post by mbanzi »

Select "Burn" > "Configure" from the menu then add "-B 100" in the "Extra Arguments" field on the dialog. I think it's the same for Companion9x or EEPE.

JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

I had done the '-B 100' and that's when I got the 'program ready: target doesn't answer' error.

EDIT: After thinking about it I think I may have done 'B' and not '-B'. So I tried it again. I have four USBASP's. Three flashed with the main.hex and one not. Of the three flashed two have the 100ohm array. When I hooked one of the flashed and 100 array programmer to the radio I got a chime sound from the computer which is normally a sign that the chip is connected to the programmer. I didn't get the chime sound before or with any of the other programmers. Only with one. I tried to burn the fuses, erase them, in Companion9x and got this error:

avrdude.exe: set SCK frequency to 8000 Hz
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x000102
avrdude.exe: Expected signature for ATMEGA128 is 1E 97 02
Double check chip, or use -F to override this check.

avrdude.exe done. Thank you.

It's kind of a success. First, it means the chip is not fried. Second, at least one programmer is working, sort of. What I don't understand is why I get the sck period error even though I flashed it with the main.hex. Also, what do I do about the signature error? Can I do anything?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

Those m128's are a pain to start as far as I know..
My first one didn't want to work as well with more or less the same errors as yours.. I was using an mySmartUSB Light programmer.. Nothing that I would do made it work.. Just before replacing the chip took it to a friends house and used his Hobbyking UsbAsp.. It worked first time.. Since then it works perfectly with my other programmer and not so good with the UsbAsp.. go figure. :o

My second chip was also very strange.. Didn't want to work with any of the programmers, and then suddenly it set the fuses with the UsbAsp but only programmed the first flash with the other. Now it works with both. crazy.. :o

So, unfortunately I can't use my experience with the m128's to help you because I don't know what the heck I did to make them work.. They just decided to start working by themselves at some point.. Tricky little buggers, they are. :)

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
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: Er9x128

Post by kaos »

Reading all about M128. My diagnosis for M128 is Congenital Arrhythmia, usbasp works like a defibrillator , you have to shock the chip a few times before it revives. once is not enough. :mrgreen:
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

Funny how diagnosis can be so different.. I thought my first chip had a sexual problem.. :mrgreen: :mrgreen:
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
gohsthb
Posts: 1412
Joined: Wed Dec 28, 2011 2:32 pm
Country: -
Location: Naperville, IL

Re: Er9x128

Post by gohsthb »

The signature error is being caused by too high clock speed from the programmer. You have the error"cannot set sck speed". Look for rperkins on this board, he is selling working usbasps, and somewhere has directions on how to upgrade yours so it will work correctly.
-Gohst

Sent from my LG-P999 using Tapatalk 2
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

gohsthb wrote:The signature error is being caused by too high clock speed from the programmer.
Will it help if I hook up an external oscillator? I have one coming in the mail.
gohsthb wrote: You have the error"cannot set sck speed". Look for rperkins on this board, he is selling working usbasps, and somewhere has directions on how to upgrade yours so it will work correctly.
-Gohst
I thought that the main.hex by romolo was supposed to cure the programmer from this error.
kaos wrote:Reading all about M128. My diagnosis for M128 is Congenital Arrhythmia, usbasp works like a defibrillator , you have to shock the chip a few times before it revives. once is not enough.
I like that analysis. I'll try some more TLC and we'll see what'll happen. :)
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Er9x128

Post by ReSt »

The factory delivers the chips, at least they write it for the M64, with oscillator set to internal RC-oscillator set to 1Mhz

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

Re: Er9x128

Post by Flaps 30 »

JustinTime wrote:
gohsthb wrote: You have the error"cannot set sck speed". Look for rperkins on this board, he is selling working usbasps, and somewhere has directions on how to upgrade yours so it will work correctly. Gohst
I thought that the main.hex by romolo was supposed to cure the programmer from this error.
It does. So I would question if it was actually was flashed correctly.
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

Now that I get at least one programmer to talk to the chip, sort of talk, I tried it with eXtreme Burner. It reads the eeprom and the flash but first reports that it didn't find the Atmega 128 chip and if I want to continue. I said yes since reading, I figure, can not harm the chip. I then tried to write the fuses, 0e, 81, FF and again it says 'Incorrect chip found'. Will it hurt the chip if I go and write the fuses anyway? Even if the program thinks it's a different chip than the one I specified?
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Er9x128

Post by Kilrah »

YES. If it doesn't recognise the chip it means communication isn't working as it should, so writing something will just do some random bad thing.

What's the exact error? Does it say what chip it thinks it's seeing?
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

This is what is says. As you can see it reads with no errors. Just the chip report as the wrong chip but it doesn't say which chip type is reporting back. I have it, obviously, set to Atmega128. I tried to set it to all the options in the list, from ATtiny13A to ATmega128 and all report as 'incorrect chip'.
Attachments
Untitled.png
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

jhsa wrote:Those m128's are a pain to start as far as I know..
My first one didn't want to work as well with more or less the same errors as yours.. I was using an mySmartUSB Light programmer.. Nothing that I would do made it work.. Just before replacing the chip took it to a friends house and used his Hobbyking UsbAsp.. It worked first time.. Since then it works perfectly with my other programmer and not so good with the UsbAsp.. go figure. :o

My second chip was also very strange.. Didn't want to work with any of the programmers, and then suddenly it set the fuses with the UsbAsp but only programmed the first flash with the other. Now it works with both. crazy.. :o
João
I have three identical programmer(so I thought). One recognizes the 128 chip and two not. To see what can be the cause I looked at them closely. What I found is that the two that don't communicate have a chip on them that is marked with '16AU' and the one that does communicate is marked with '16AI'. I don't know what the difference is between the two chips but there must obviously be one.
Romushock
Posts: 47
Joined: Thu Nov 08, 2012 8:35 am
Country: -
Location: North Italy

Re: Er9x128

Post by Romushock »

Hi to everybody
Would like to add my two cents onto "M128 srange behavior" gallery...
So, we have here v1 Turnigy9X board and M128. Chip was flashed with er9x-128.hex externally, using program board and successively soldered to motherboard. All solder work was veryfied under microscope and all was perfect. BUT.... Assembled radio don't give any sign of life!... I've try to wake it up changed fuses to "external 16 KHz oscillator", but invane. All this inspite that chip can communicate with computer by two my programmers - AVRISP and USBASP. After solder it to motherboard, I've flash into er9x.hex, er9x-128.hex, EEPROM with models and all well done, but display still be dead. Does somebody have a weak idea what the hell is happening? Lunar fase is wrong? Mondial crisis fault? All this is frustrating enough...
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Er9x128

Post by MikeB »

When you say "no sign of life", what is on the screen, is it blank? or does it have random dots all over it?

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: Er9x128

Post by jhsa »

does it beep? can you make a servo move?
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
Romushock
Posts: 47
Joined: Thu Nov 08, 2012 8:35 am
Country: -
Location: North Italy

Re: Er9x128

Post by Romushock »

MikeB wrote:When you say "no sign of life", what is on the screen, is it blank? or does it have random dots all over it?

Mike.
Nothing, Mike, neither dots nor lines, splashes, blank screen at all... No beeps, obviously I don't arrive to servo test. I've try also to power motherboard externally by one ESC, but result always the same. Maybe I lost something, a.e. does it need to change fuses in particular mode or flash some bootloader before flashing FW? But I've read all pages of this topic and don't find anything about.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

Stupid question, did you solder the chip the right way? can you please post a good picture of your 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
Romushock
Posts: 47
Joined: Thu Nov 08, 2012 8:35 am
Country: -
Location: North Italy

Re: Er9x128

Post by Romushock »

jhsa wrote:Stupid question, did you solder the chip the right way? can you please post a good picture of your board?
I'm not see nothing of stupid, Joào. The same question I asked three times to myself before soldering chip ;) :lol: :roll: ... However, being soldered in wrong way, it can't communicate to PC. The pictures are here:

Image Image Image Image Image Image Image

In doubt I desolder now three wires of encoder. Nothing don't change...

Image
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

Romushock wrote:However, being soldered in wrong way, it can't communicate to PC.
You are absolutely right.. Told you it was a stupid question ;) :mrgreen:
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: Er9x128

Post by jhsa »

I can see you have an Atmega128A.. I wonder if that is the problem.. Anyone using one successfully?
My one is just and Atmega128 - 16AU, it doesn't have the "A"
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
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Er9x128

Post by Kilrah »

I have a 128A that is fine, and sent another one from the same purchase to Bertrand that also works fine, so that shouldn't be the problem...
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Er9x128

Post by MikeB »

You appear to have connections for both the voice module and the rotary encoder. Both of these connect to signals that are part of the LCD outputs.
Double (triple) check that these connections are not shorting out anywhere.

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: Er9x128

Post by jhsa »

I can't see his pictures very well as my browser is not downloading the larger picture size, but I would check the complete chip for shorts between the pins..
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
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

MikeB wrote:You appear to have connections for both the voice module and the rotary encoder. Both of these connect to signals that are part of the LCD outputs.
Double (triple) check that these connections are not shorting out anywhere.

Mike.
I know it's kind of off topic but can you solder the wires for the encoder, etc, to the resistor rather than the mcu? It's easier to solder there and it's the same side.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

just be carefull not to overheat them or they will come out or even worse, get damaged..
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
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

Does that means 'yes, it can be soldered there'? :)
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Er9x128

Post by jhsa »

it can, but I didn't.. they looked quite fragile.. like I said, just be carefull not to overheat them
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
JustinTime
Posts: 140
Joined: Tue Jan 29, 2013 4:12 am
Country: -
Location: SoCal

Re: Er9x128

Post by JustinTime »

I soldered quite a few SMD resistors with no problem in the various mods I made so far and the only problem that I have is with the main chip not talking to me and not with the resistors. :(
Romushock
Posts: 47
Joined: Thu Nov 08, 2012 8:35 am
Country: -
Location: North Italy

Re: Er9x128

Post by Romushock »

Thanks, guys
Can somebody confirm here, if I hook up a display to motherboard and power it from external source - must it to show something? I mean can work a couple board - display without periferials ( potts, stabs, knobs etc.)?

Post Reply

Return to “er9x”