Trouble with Turnigy 9X and ER9X
Trouble with Turnigy 9X and ER9X
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!
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
- 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
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?
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Trouble with Turnigy 9X and ER9X
Thank you! It's a Atmel ATMEGA64A.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.
- Attachments
-
- backup.zip
- (42.79 KiB) Downloaded 225 times
Re: Trouble with Turnigy 9X and ER9X
These are my settingsMikeB wrote:...
Edit: The file you posted shows only 1K of EEPROM, repeated. What settings do you have in eepe for BURN|CONFIGURE?
Re: Trouble with Turnigy 9X and ER9X
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
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
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
Re: Trouble with Turnigy 9X and ER9X
Yes, on the chip is says "Atmel ATMEGA64A AU 1410".jhsa wrote:Also, are you sure the chip is an Atmega64?
João
I'll do this now.jhsa wrote:try removing what you have in the "Extra Arguments" and try reading the chip.. See if it works
Re: Trouble with Turnigy 9X and ER9X
When I try to run "Burn > Read Memory from TX" I get this:
EDIT: That's after removing what I had in "extra arguments" in Burn > Configure, like jhsa suggested.
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
=================================================================================
Re: Trouble with Turnigy 9X and ER9X
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
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
Re: Trouble with Turnigy 9X and ER9X
I get the same thing.jhsa wrote:Try adding -B 100 (capital B)
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
=================================================================================
Re: Trouble with Turnigy 9X and ER9X
Don't you have another programmer?
Also, check all connections.
João
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
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
Re: Trouble with Turnigy 9X and ER9X
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?jhsa wrote:Don't you have another programmer?
Also, check all connections.
João
- 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
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: Trouble with Turnigy 9X and ER9X
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
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
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
Re: Trouble with Turnigy 9X and ER9X
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.
It's likely the source of both your issues.
- 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
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.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?
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: Trouble with Turnigy 9X and ER9X
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
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
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
Re: Trouble with Turnigy 9X and ER9X
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:
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
=================================================================================