[SOLVED] 9x not working after flashing er9x firmware

Cant get your radio to work? General Hardware issues?
Post Reply
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

[SOLVED] 9x not working after flashing er9x firmware

Post by jayhay »

Hi everyone, new to the forums here but I'll try and give as much detail on my situation as I can...

First off, I should let you know that in terms of electronics, I would describe myself as a cautious but competent amateur, but by no means expert, and the hobby is relatively new to me - given that, here's my situation:

After years of tinkering with robotics and flying drones, I decided build my own drone, which I have done with grea success. I went with a Turnigy 9x from Hobbyking as it seemed the sensible choice given the support and upgradeability. I've had the radio working in the past and everything was okay, but having read so much about er9x and how it really unlocks the power of the 9x, I purchased a SmartiParts board, installed it, and promptly reversed the battery polarity, blowing the capacitor and regulators on the various boards. I went through many posts online on how to repair this, changing the capacitor and regulators with suitable replacements. The radio worked fine for a while, but I could never really trust it as it had a tendency to go dead, and would often take a very long time to start, and make strange ticking/bleeps.

I figured I'd cut my losses at that point and I purchased a replacement motherboard from banggood.com (Here's the part at Bangood.com) I checked that it would be compatible and was assured that it would be.

I installed the board and the radio booted up no problems. But when I checked the "display" option in the radio, I noticed that none of the sticks or pots seemed to work - the bars just didn't move. And this was confirmed when I paired the radio with the receiver and tested with servos. Absolutely nothing...

I figured I would reflash the firmware with er9x so see if that solved the problem. So... installed the SmartieParts board again (having changed the connector on my LiPo so it;s impossible to reverse the polarity again!). I decided to go with EEPE as there seemd to be the most info about this online. So I went to the er9x homepage and downloaded the latest stable er9x general version:

Image.

First of all, I think I backed up my flash memory by clicking the radio with a green down arrow icon: Image. And I saved the firmware off the device into the file attached to this post (flysky_firmware.zip). Then I flashed the er9x.hex file I downloaded by using the button with the radio and an orange burn icon (to the left of the icon shown above). I chose the correct file and it seemed to flash the firmware nice and fast, but then I got the error that "avrdude did not complete correctly, quitting with error code 1" or something similar, and there appeared to be a mismatch with what was written and what it was expecting. After a bit of googling about and reading the SmartieParts website, I added the flag "-B 11" the extra arguments field in EEPE to slow the burn process down. So, I repeat the process and everything took a little while, but it appeared to finish correctly with AVRdude reporting as such.

This is where I hit the snag I'm currently at.I turn the radio on and nothing. It's like it's completely dead. No bleeps, no nothing. I wondered if it was connection issue with the screen, so I tried pairing with with the receiver. It will connect with the receiver, but as soon as I turn the radio off and on again, the pairing seems to be lost, as the receiver continues flashing until i repeat the pairing process...

I have scoured every single post that seems similar on these forums and across the internet, and tried everything I can apart from replacing the ATMega chip! Please don't think I'm posting this here without checking everything I can, looking around online. I know there's a lot of similar posts online, but I genuinely feel that this issue is not the same as the others. Voltage at the two regulators on the mother board is 5v and 3.3v when I test with a multimeter. As is voltage at the two other regulators which I replaced when I fried the radio the first time. I'm a bit scared to go mucking about with fuses and all that business, but I'd love some advice from you guys. I have tried reading the EEPROM to memory so I can change the contrast setting manually before flashing it back, but I get this error:
Image

I have been through my temp files to locate the hex file in that error message and attached to this post (when I look at it in notepad, it doesn't look right to me, and I can't open it in EEPE). I checked the LCD ribbon connector is plugged in, and I can't see any issue there - also, the LCD was working perfectly before I flashed it. All of the switches are in the correct positions when I power on the radio.

So that's it, really. I don't think it's bricked, or that the fuses are messed up, as I can flash to and from the radio, but something isn't right here, and I'm at my wit's end! Any help would be really appreciated - I've tried to give as much detail and background as I can but if anyone can help and needs more info, then I'll happily post more.

Thank you in advance!
Attachments
temp.zip
This is the contents of the EEPROM when I try to read it with EEPE
(876 Bytes) Downloaded 201 times
flysky_firmware.zip
The firmware I originally read off the new motherboard
(17.01 KiB) Downloaded 198 times
Last edited by jayhay on Mon Jun 05, 2017 9:40 pm, edited 1 time in total.

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

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Well an hex file is a firmware file.. For er9x normally eeprom files have the .eepe or .bin extensions.
For a start, please check what processor you have on your board.
Then we go from there...

João

Sent from my thor using Tapatalk

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Hi João,
It's an atmega128 as far as I can tell, matches the device signature, anyway... I'll get a picture tomorrow.
User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: 9x not working after flashing er9x firmware

Post by bob195558 »

jayhay wrote: Sun Jun 04, 2017 11:41 pmIt's an atmega128 as far as I can tell
I believe the replacement 9x main boards are m128.
These pictures may be helpful.
9x Radio Firmware: er9x for Mega 128 processor (click on pic to zoom in)
9x Radio Firmware: er9x for Mega 128 processor (click on pic to zoom in)

eepe m128 AVRDUDE Configuration (click on pic to zoom in)
eepe m128 AVRDUDE Configuration (click on pic to zoom in)

eepe m128 Preferences (click on pic to zoom in)
eepe m128 Preferences (click on pic to zoom in)


Bob B.
Last edited by bob195558 on Mon Jun 05, 2017 1:32 am, edited 2 times in total.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Ok, you could try something. you have er9x already installed, right? Select the m128 in preferences in eepe.
Now create a new blank eeprom in eepe. Go to General settings / Display and make sure the contrast is set to about 25.
Burn the blank eeprom to the radio..

See if turns ON now

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

jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Thanks for the responses guys.

Bob B:
I can confirm that those are the exact same settings I have used. mcu was set to m128 and I have actually tried flashing the specific 128 version of er9x as well. No luck either time. The only thing I can't confirm is your third screenshot of the preferences settings. I will check when I get home tonight and report back.

João:
Thank you for the suggestion - Having seen you post that response on another couple of threads, I actually tried that last night, creating a new eepe file, ensuring the contrast settings are correct, and flashing it back, but still with no luck. I'm afraid the radio still appears to be dead!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Ok, measure all the 5K1 resistors above the processor.. The ones that are on the LCD line..

João

Sent from my thor using Tapatalk

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
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: 9x not working after flashing er9x firmware

Post by bob195558 »

This maybe helpful from February 2014, I had a resistor fail causing the lost of my display screen.
(viewtopic.php?f=95&t=3819&start=60#p71059)
9x main board (click on picture to zoom in)
9x main board (click on picture to zoom in)
Bob B.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Hey guys,
I've attached a photo of my board. Checked all the resistors on the 5k1 line (directly above the chip in my photo). Values are weird... From left to right:
4.98, 5, 5, 4.99, 4.98, 4.99, 4.96, 4.98, 5, 5.01, 4.99, 4.99, 4.96

I set the multimeter to the 20k setting for those readings...
Attachments
20170605_183919.jpg
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Not weird, they seem to be all around 5K. that is ok..
Please carefully (without shorting anything) check there is 3.3V on one or both of those resistors marked with "0" above the 5K and 10K resistors on the left hand side. Measure the voltage on both sides of the resistors..
Also, with the power OFF, measure the resistance of the 10K resistors.

Please download your eeprom onto eepe, save it as .eepe file, and post it here so we can have a look at it..
To do it, go to eepe, "Burn Menu" and click on "Read Memory From TX". Then "File" and "Save as"..

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Okay, I get 3.3v (a tiny bit under) on both sides of the resistors, and when I measure the resistance (with the power off) I get reading of 0.00 on both.
Does that mean they're dead?

Attached my eepe EEPROM dump (bear in mind that I burned this to the EEPROM last night, but it seems to be reading my settings).

Also attached my preferences in response to BOB B.'s comment last night (the default EEPROM version was 1, and I've set it to 4 and tried to reflash - still nothing. All settings as they were.)

Really appreciate your input, João
Attachments
EEPROM_read.eepe
This is the read of my EEPROM
(351 Bytes) Downloaded 205 times
Grab of eepe preferences
Grab of eepe preferences
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

ok,does the radio beep when you move the trims?
If you create a model in eepe, than burn the eeprom back to the radio, can you control a servo?
I'm trying to find out if you have a bad LCD or if the radio is somehow dead, which I doubt because you can read and write the eeprom..

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

The radio makes no sounds at all - nothing when I hit the trims, or press buttons. However - it DID with the stock firmware when I first installed it. But if I flash the stock firmware back, I still get a dead radio.

So - I created a model in eepe, saved the .eepe file and burned it back to the radio.
Plugged the bind loop into the rx, with a servo on channel 1 and powered the radio on with the bind button pressed. The flashing light on the rx stopped flashing as though it had binded correctly. I disconnected the bind loop and moved the sticks and pots with no luck at all. I poered off the rx and the radio, turned the rx back on, powered the radio back on and the rx didn't respond (if I remember rightly, the light comes on onthe rx when the radio turns on?).
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

ok, this is weird. Please do this..
Eepe, Burn menu, click on "Read Fuses"
Copy / paste the output from eepe here..

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Okay... here goes!!

=================================================================================
Started AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c usbasp -p m128 -B 11 -P usb -U lfuse:r:-:i -U hfuse:r:-:i -U efuse:r:-:i
=================================================================================

avrdude.exe: set SCK frequency to 32000 Hz
avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x1e9702
avrdude.exe: reading lfuse memory:

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

avrdude.exe: writing output file "<stdout>"
avrdude.exe: reading hfuse memory:

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

avrdude.exe: writing output file "<stdout>"
avrdude.exe: reading efuse memory:

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

avrdude.exe: writing output file "<stdout>"

avrdude.exe done. Thank you.


=================================================================================
AVRDUDE done - SUCCESSFUL
=================================================================================
=================================================================================
FUSES: Low=4d High=fc Ext=00
=================================================================================
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Ok, eepe, Burn Menu, "Set Fuses To Protect Eeprom".

See if radio works afterwards

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

Holy c**p! Simple as that!! It works!

Wow - thank you so much. How did that happen, do you think?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: 9x not working after flashing er9x firmware

Post by jhsa »

Nice that is working :) Well done..

Something messed the fuses up. some bad writing, I don't know, It could also be a not so good programmer.. Why do you have to use the -B 11 in the extra arguments?

Ahh, by the way, Now every time you flash the firmware to the radio, your eeprom shouldn't be wiped out. That means all your models and calibration should stay untouched in the radio.. Consider that a little bonus ;) :D

But save your eeprom often to the computer anyway, just in case..

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
jayhay
Posts: 9
Joined: Sun Jun 04, 2017 4:56 pm
Country: -

Re: 9x not working after flashing er9x firmware

Post by jayhay »

I'm so pleased! Thank you for your help.

I use the -B flag because without it I got errors flashing the firmware. The smartieparts website suggested adding it.

Maybe the programmer is faulty - I got it from a batch he produced with manufacturing error - the board is too short, so one of the screw holes doesn't line up with the motherboard. I have to use a spacer and a couple of washers to hold it in place. It's a bit of a bodge, but still very secure...

Thanks again! I'll mask the post solved!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: [SOLVED] 9x not working after flashing er9x firmware

Post by jhsa »

Strange, the smartieparts should be a good programmer.. Didn't know about the -B 11 advice though :o
But anyway, good that is working now..

Have fun :) ;)

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
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: [SOLVED] 9x not working after flashing er9x firmware

Post by bob195558 »

Processor should be m128
Processor should be m128
4-problems m128.jpg (48.72 KiB) Viewed 9301 times
Glad it is working now too :D

Bob B.
Er9x on 9x radio, with Smartieparts Programmer and TelemetrEZ Board.
ErSky9x on Taranis, Sky9x, 9Xtreme radios.
3D-Printing: (https://openrcforums.com/forum/viewforum.php?f=129).

Post Reply

Return to “Hardware”