Page 1 of 1

Writing firmware to radio only reads?

Posted: Sun Mar 29, 2020 9:15 pm
by Rataz
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.
=================================================================================

Re: Writing firmware to radio only reads?

Posted: Sun Mar 29, 2020 9:43 pm
by Kilrah
Untick "check hardware compatibility" on the flash dialog, some USBASPs fail when doing 2 operations back to back.

Re: Writing firmware to radio only reads?

Posted: Mon Mar 30, 2020 2:31 am
by Rataz
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]

Re: Writing firmware to radio only reads?

Posted: Mon Mar 30, 2020 6:09 am
by Kilrah
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 :(

Re: Writing firmware to radio only reads?

Posted: Mon Mar 30, 2020 7:40 am
by MikeB
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

Re: Writing firmware to radio only reads?

Posted: Mon Mar 30, 2020 12:30 pm
by jhsa
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

Re: Writing firmware to radio only reads?

Posted: Mon Mar 30, 2020 1:08 pm
by Rataz
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.

Re: Writing firmware to radio only reads?

Posted: Tue Mar 31, 2020 2:08 pm
by Rataz
Ok, so this morning I tried er9x-128. No problems.
Thankyou very much Mike!