Writing firmware to radio only reads?

Hardware Support for the 9XR
Post Reply
Rataz
Posts: 4
Joined: Sun Mar 29, 2020 8:55 pm
Country: -

Writing firmware to radio only reads?

Post by Rataz » Sun Mar 29, 2020 9:15 pm

I'm trying to upgrade my 9xr to opentx to get more model memory.
Currently it is stock, original firmware and no modifications at all.

In the opentx companion 2.1.9 I click on the "Write firmware to radio button" with the gear and the red down arrow, and select the hex file I want to load.

However, nothing changes in my turnigy 9xr. The splash screen is the same and all my models are still there. It seems that the write button is doing nothing but read.

Any advice?


Other info:
-hobbyking usbasp on 5v
-I connect the radio to the usbasp with the radio powered off
-Radio seems to the 9xr with the 128 chip (the hardware check fails otherwise)

Output when clicking write firmware:

Code: Select all

C:/Program Files (x86)/OpenTX/Companion 2.1/avrdude.exe -c usbasp -p m128 -U flash:r:C:/Users/Evan/AppData/Local/Temp/13484-flash-check.bin:r
=================================================================================

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 = 0x1e9702
avrdude.exe: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude.exe: reading flash memory:

Reading | ################################################## | 100% 68.81s

avrdude.exe: writing output file "C:/Users/Evan/AppData/Local/Temp/13484-flash-check.bin"

avrdude.exe done.  Thank you.


=================================================================================
C:/Program Files (x86)/OpenTX/Companion 2.1/avrdude.exe -c usbasp -p m128 -U eeprom:r:/backup-2020-03-29-174733.bin:r
=================================================================================

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 = 0x1e9702
avrdude.exe: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude.exe: reading eeprom memory:

Reading | ################################################## | 100% 1.95s

avrdude.exe: writing output file "/backup-2020-03-29-174733.bin"

avrdude.exe done.  Thank you.
=================================================================================


User avatar
Kilrah
Posts: 10650
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Writing firmware to radio only reads?

Post by Kilrah » Sun Mar 29, 2020 9:43 pm

Untick "check hardware compatibility" on the flash dialog, some USBASPs fail when doing 2 operations back to back.

Rataz
Posts: 4
Joined: Sun Mar 29, 2020 8:55 pm
Country: -

Re: Writing firmware to radio only reads?

Post by Rataz » Mon Mar 30, 2020 2:31 am

Hi, thanks for replying, but the result is basically the same:

Code: Select all

C:/Program Files (x86)/OpenTX/Companion 2.1/avrdude.exe -c usbasp -p m128 -U eeprom:r:/backup-2020-03-29-232852.bin:r
=================================================================================

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 = 0x1e9702
avrdude.exe: current erase-rewrite cycle count is -50462977 (if being tracked)
avrdude.exe: reading eeprom memory:

Reading | ################################################## | 100% 1.96s

avrdude.exe: writing output file "/backup-2020-03-29-232852.bin"

avrdude.exe done.  Thank you.


=================================================================================[code]

User avatar
Kilrah
Posts: 10650
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Writing firmware to radio only reads?

Post by Kilrah » Mon Mar 30, 2020 6:09 am

OK, it's doing the eeprom backup... Don't remember if there's a way to disable that, haven't touched an AVR radio in 6+ years :(

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

Re: Writing firmware to radio only reads?

Post by MikeB » Mon Mar 30, 2020 7:40 am

Try using eepe (for er9x) to do the writing. This has a "disable pre-read" option.
You might consider er9x anyway as I'm still supporting that and adding features.
You may find it (and eepe) here: http://www.er9x.com/.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


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

Re: Writing firmware to radio only reads?

Post by jhsa » Mon Mar 30, 2020 12:30 pm

And I don't think OpenTX has more model memory anyway. Even if the models are there, it doesn't mean you have enough memory to program them :) And you wont, unless you have only very basic models. Even like that I am not sure. What is the point of allowing for more models if it will not be possible to use them all? ;)
As Mike said, you might want to try Er9x. OpenTX team stopped developing for that radio a while ago. As Kilrah (OpenTX developer) said above, he hasn't touched an AVR radio in over 6 years. :)

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

Rataz
Posts: 4
Joined: Sun Mar 29, 2020 8:55 pm
Country: -

Re: Writing firmware to radio only reads?

Post by Rataz » Mon Mar 30, 2020 1:08 pm

Hm, well I'll have a go at er9x then after work.
Most of my models actually are really basic, wings or 4ch planes just with different throws and curves. only a couple odd ones out like a twin engine with differential thrust.

If I can just use the usbasp to save models to my computer and re-flash them to the radio later that would be enough for me.

Rataz
Posts: 4
Joined: Sun Mar 29, 2020 8:55 pm
Country: -

Re: Writing firmware to radio only reads?

Post by Rataz » Tue Mar 31, 2020 2:08 pm

Ok, so this morning I tried er9x-128. No problems.
Thankyou very much Mike!


Post Reply

Return to “Turnigy 9XR radio”