Trouble with Turnigy 9X and ER9X

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
Post Reply
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

Hello everyone,
I have a Turnigy 9X that I bought about a year or two ago. After I first got it, I flashed it with ER9X using an Arduino Uno R3. I've been using it since, and have loved ER9X. I'm waiting on some parts to come in the mail, so I thought I'd update the firmware in the Turnigy 9X. I downloaded eePe and flashed it with the latest version (that eePe automatically downloaded) and flashed my transmitter again using an Arduino Nano. When I tried to turn it on I got "alert bad eeprom data". I've tried a bunch of stuff, I've tried switching to opentx and then back to er9x and now I'm just geting "Loading Model01" and nothing else. None of the buttons appear to be stuck, I've checked the Arduino Nano, everything seems to check out ok, but I can't get my transmitter to work again. :( I feel bad for registering an account and the first post is asking for help, but I don't know what to do and I love this transmitter.

I went in epee and ran:
Burn > Read Memory from TX
Burn > Read Firmware from TX
Burn > Read EEPROM memory to file

I have attached what I got from running "Read Memory from TX", but I can't attach the other two because the website says "Invalid file extension" when I try.

Any help please? Thank you so much!
Attachments
memory.hex
(4.83 KiB) Downloaded 344 times

User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Trouble with Turnigy 9X and ER9X

Post by MikeB »

Put the files into a .zip file, then post them.
I'll look at the file you have posted.
Do you have a '64 or a '128 processor?

Mike.

Edit: The file you posted shows only 1K of EEPROM, repeated. What settings do you have in eepe for BURN|CONFIGURE?
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

MikeB wrote:Put the files into a .zip file, then post them.
I'll look at the file you have posted.
Do you have a '64 or a '128 processor?

Mike.
Thank you! It's a Atmel ATMEGA64A.
Attachments
backup.zip
(42.79 KiB) Downloaded 225 times
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

MikeB wrote:...
Edit: The file you posted shows only 1K of EEPROM, repeated. What settings do you have in eepe for BURN|CONFIGURE?
These are my settings
Attachments
eepe_burn-configure-settings.jpg
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Trouble with Turnigy 9X and ER9X

Post by jhsa »

try removing what you have in the "Extra Arguments" and try reading the chip.. See if it works
Also, are you sure the chip is an Atmega64?
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

TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

jhsa wrote:Also, are you sure the chip is an Atmega64?
João
Yes, on the chip is says "Atmel ATMEGA64A AU 1410".
jhsa wrote:try removing what you have in the "Extra Arguments" and try reading the chip.. See if it works
I'll do this now.
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

When I try to run "Burn > Read Memory from TX" I get this:

Code: Select all

=================================================================================
Started AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c avrisp -p m64 -P com5 -U eeprom:r:avrdude.exe: stk500_getsync(): not in sync: resp=0x00

avrdude.exe done.  Thank you.


=================================================================================
AVRDUDE done - exit code 1
=================================================================================
:i
=================================================================================
EDIT: That's after removing what I had in "extra arguments" in Burn > Configure, like jhsa suggested.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Trouble with Turnigy 9X and ER9X

Post by jhsa »

Try adding -B 100 (capital B)
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
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

jhsa wrote:Try adding -B 100 (capital B)
I get the same thing. :(

Code: Select all

=================================================================================
Started AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c avrisp -p m64 -B 100 -P com5 -U eeprom:r:C:/Users/USER-A/AppData/Local/Temp/temp.hex:i
=================================================================================
avrdude.exe: stk500_getsync(): not in sync: resp=0x00

avrdude.exe done.  Thank you.


=================================================================================
AVRDUDE done - exit code 1
=================================================================================
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Trouble with Turnigy 9X and ER9X

Post by jhsa »

Don't you have another programmer?
Also, check all connections.
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
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

jhsa wrote:Don't you have another programmer?
Also, check all connections.
João
The first time I flashed er9x I used an Arduino Uno and it worked fine, is there a limitation in the Nano that the Uno doesn't maybe? Should I just order another programmer?
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Trouble with Turnigy 9X and ER9X

Post by MikeB »

In your first post you said you are now just getting "LOADING MODEL 01". Is this still the case?
If so, it indicates the firmware is detecting the MENU button as pressed.

You will almost certainly need to extra argument of -b 19200 as this is setting the baudrate for COM5.

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: Trouble with Turnigy 9X and ER9X

Post by jhsa »

Mike, I don't remember setting the baudrate being necessary to flash the 9x radio. maybe only over serial using the bootloader. Why is it necessary in this case?

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
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Trouble with Turnigy 9X and ER9X

Post by Kilrah »

The MENU button is shared with SCK. If it's stuck closed it may prevent programming depending on the programmer's drive strength.

It's likely the source of both your issues.
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Trouble with Turnigy 9X and ER9X

Post by MikeB »

jhsa wrote:Mike, I don't remember setting the baudrate being necessary to flash the 9x radio. maybe only over serial using the bootloader. Why is it necessary in this case?
If you plug a nano in via USB to the PC, it appears as serial port, so if you have programmer code on the nano, it most likely uses this serial communication.

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: Trouble with Turnigy 9X and ER9X

Post by jhsa »

Thanks Mike, now i understand.

Kilrah, I think you are right.. if there is a short to ground on the menu button circuit, it means there might be also a short with the SCK programming line.
I completely forgot about this problem :(

@ TheNewGuy,

Do have this "Loading Model 01" problem when the arduino is connected or also when the arduino is not connected to the radio?
I'm asking because the arduino could be pulling the SCK pin low and cause that problem to happen..

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
TheNewGuy
Posts: 8
Joined: Sat Jan 21, 2017 11:08 am
Country: -

Re: Trouble with Turnigy 9X and ER9X

Post by TheNewGuy »

Sorry for the late reply everyone, but I got my 9X working! I bought an AVR 10 Pin USB Programmer online, and when I used that it successfully flashed my radio! I guess the problem was that stupid Arduino Nano I was trying to use as a programmer. I'm so glad it's working now.

Thank you everyone for your advice and replies!!

Here is the output I got from eepe:

Code: Select all

=================================================================================
Started AVRDUDE
C:/Program Files (x86)/eePe/avrdude.exe -c usbasp -p m64 -U flash:w:C:/Users/USER-A/Downloads/temp_122516/er9x/er9x.hex:i
=================================================================================

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.00s

avrdude.exe: Device signature = 0x1e9602
avrdude.exe: NOTE: FLASH memory has been specified, an erase cycle will be performed
             To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file "C:/Users/USER-A/Downloads/temp_122516/er9x/er9x.hex"
avrdude.exe: writing flash (61196 bytes):

Writing | ################################################## | 100% 31.39s

avrdude.exe: 61196 bytes of flash written
avrdude.exe: verifying flash memory against C:/Users/USER-A/Downloads/temp_122516/er9x/er9x.hex:
avrdude.exe: load data flash data from input file C:/Users/USER-A/Downloads/temp_122516/er9x/er9x.hex:
avrdude.exe: input file C:/Users/USER-A/Downloads/temp_122516/er9x/er9x.hex contains 61196 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 17.96s

avrdude.exe: verifying ...
avrdude.exe: 61196 bytes of flash verified

avrdude.exe done.  Thank you.


=================================================================================
AVRDUDE done - SUCCESSFUL
=================================================================================

Post Reply

Return to “er9x”