Turnigy 9x processor upgrade

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
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Turnigy 9x processor upgrade

Post by amxcs »

Hi, I want to upgrade the processor.
Changing the chip is not a problem for me.
I want to replace it with Atmega128, but I wanted to ask Atmega2561 is there any advantages?
And I also wanted to ask if ordering a chip from aliexpress would it be ok? The price of such a chip in a local store is about $15.
Image

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

Re: Turnigy 9x processor upgrade

Post by Kilrah »

There are lots of fake Atmel chips around, a 2561 should go between $6-15 so at $2.50 I would expect a fake.
User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Turnigy 9x processor upgrade

Post by bob195558 »

Local store sounds better.
Did you see the info here: https://openrcforums.com/forum/viewtopi ... 120#p74105
And yes, upgrading the chip will increase what your 9x can do.
Find firmware here: http://www.er9x.com/
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: Turnigy 9x processor upgrade

Post by jhsa »

The m128 doubles the flash memory and eeprom memory of the m64 chip.
The m2561 also doubles the RAM memory. This alone makes it much better.. ;) :)

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
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

OK thanks.
How would larger RAM memory affect?
And are there any changes other than changing the chip?

User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Turnigy 9x processor upgrade

Post by bob195558 »

More features in the firmware.
You will like the upgrade.
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
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Turnigy 9x processor upgrade

Post by MikeB »

The '2561 has one more "spare" input pin compared to the '128.
At the moment the '2561 includes some global voice alerts that don't fit in the '128 (or '64), as these need some of the extra RAM.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

Not in stock in local stores :(
Are all chips from China fake? Is it a problem if I put one from aliexpress/ebay?
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Turnigy 9x processor upgrade

Post by Kilrah »

Not all of course, but you do run the risk of getting fakes especially if you get unreasonably cheap ones.
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

I changed the chip, flashed the fuses, flashed the firmware and the check failed.
Otherwise, everything works.

Image

Image

Image

Attach firmware downloaded from the transmitter. (822t)
Is everything okay, do I have to worry about anything?
Attachments
fromtx.rar
(42.95 KiB) Downloaded 255 times
User avatar
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Turnigy 9x processor upgrade

Post by bob195558 »

Did not know if you saw this,
if not this info may have been a help for you: https://openrcforums.com/forum/viewtopi ... 120#p74105

Upgrading the 5V regulator would be a good help too: https://openrcforums.com/forum/viewtopi ... =95&t=3819
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
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Turnigy 9x processor upgrade

Post by MikeB »

The firmware read from the Tx contains only the first 64K, repeated 4 times. There may be a problem with either your programmer, or AvrDude. THe '2561 needs the programmer/AvrDude to switch flash memory banks (each is 64K) when reading and writing. It looks like the write worked OK, but the read back is not correct. My guess is the read is not changing banks, so a read just reads the first bank all the time, while the verify reads the last bank written, which in the case of er9x is the 4th (last) bank as there is a serial bootloader included that is placed at the end of that bank, the start of the bank is left with FF in it.

Do you know what version of AvrDude you are using?

The flashed firmware looks to be OK.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Turnigy 9x processor upgrade

Post by Kilrah »

If I remember well from that time a bunch of usbasp used old firmware that had an issue with that, so you needed another programmer to reflash the programmer before it would work right.
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

Kilrah wrote: Thu Aug 20, 2020 7:31 am you needed another programmer to reflash the programmer before it would work right.
Which is the cheapest option.
Attachments
eepe.jpg
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Turnigy 9x processor upgrade

Post by MikeB »

Do you have a FTDI type device (USB to serial with non-inverted, logic level ouputs)?
If so, since it looks like you will have the bootloader now flashed to the '2561, you should be able to update the firmware with that.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

I have USB to RS232 Serial TTL (PL2303) and Arduino UNO R3 (ATmega328P) :)
Will it be possible to flash with either of them? And how to connect?

EDIT: Can I use an Arduino like here to flash ATtiny44? And what firmware?
Attachments
PL2303-font-b-USB-b-font-To-RS232-font-b-TTL-b-font-font-b-PL2303HX.jpg
PL2303-font-b-USB-b-font-To-RS232-font-b-TTL-b-font-font-b-PL2303HX.jpg (15.2 KiB) Viewed 14946 times
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

Kilrah wrote: Thu Aug 20, 2020 7:31 am If I remember well from that time a bunch of usbasp used old firmware that had an issue with that, so you needed another programmer to reflash the programmer before it would work right.
Where can I get new firmware to fix ATtiny44?

Could be better
Image

Flash with Arduino

Image

Pinouts

Arduino Pin 13 ---> SCK
Arduino Pin 12 ---> MISO
Arduino Pin 11 ---> MOSI
Arduino Pin 10 ---> RESET
Arduino 5V ---> VCC
Arduino Ground ---> GND

Image

Update Avrdude to latest version 6.3 (with 5.10 verification error).

Image
Image

I hope everything is fine now.
Attachments
fromtx_arduino.rar
(55.23 KiB) Downloaded 235 times
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

I connected ATtiny44 to Arduino and made a backup. Where can I find newer firmware?
Attachments
backup_t44.rar
(1.8 KiB) Downloaded 234 times
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Turnigy 9x processor upgrade

Post by Kilrah »

I found a file from back then (2009)... but it's for an atmega8-based usbasp, maybe also an atmega48 but no attiny44.
User avatar
amxcs
Posts: 37
Joined: Tue Jun 04, 2019 8:02 am
Country: -

Re: Turnigy 9x processor upgrade

Post by amxcs »

Ok, thanks anyway.
And what programmer should I buy from e-buy / aliexpress for 1-2-3$ with which 2561 can be programmed without problems?
Or make a cable for a quick connection to an Arduino?

EDIT: I will buy Arduino nano for $1.89 :D
pcruhlm
Posts: 3
Joined: Mon Oct 19, 2020 11:40 am
Country: Germany
Contact:

Re: Turnigy 9x processor upgrade

Post by pcruhlm »

Hello,

I´ve updated a FS-TH9 main board with the following mods:

- Controller changed to ATMEGA2561
- added ISP connector to MISO / MOSI (port signals moved to PC6 / PC7
- FRSKY telemetry mod
- Arduvioce connection prepared (pin 27 / pin 28)

After the hardware changes I flashed the controller with the firmware ER9x-M2561 (actual download revision 821 / eepe revision 422) .
After flashing the controller is generally working but there is something strange with the behavior.

- there will be shown no splash screen (is activated in radio setup)
- the switch and throttle warnings are only active if splash screen is deactivated in radio setup
- there is no reaction on changing THR and AIL switch (voltage level at pin changes to high and low if the switch is activated)

Can somebody help me and tell me what is wrong in my config?
Did I use a wrong firmware?

Thanks a lot in advance.

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

Re: Turnigy 9x processor upgrade

Post by MikeB »

First, power on holding the left horizontal trim to the left (enables the hardware menu).
Then go to the hardware menu and tick "FrSky Mod Done", this should fix the THR and AIL switches.
Next, if not already done, do a calibration of the sticks and pots.

Then report back on any remaining problems.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
pcruhlm
Posts: 3
Joined: Mon Oct 19, 2020 11:40 am
Country: Germany
Contact:

Re: Turnigy 9x processor upgrade

Post by pcruhlm »

Hi Mike,

thank´s for Your fast response.

After setting the "FrSky Mod Done" the switches work fine.

Now I have a few additional questions:

- first I want to ask how I can do a donation for the great job of the developers ?

- isn´t it possible to set "FrSky Mod Done" by using EEPE (if the check box is selected it will not be set in the radio after programing)?
- always after programming the EEPROm by EEPE the "TelemetrEZ>=r90" is selected. How can I prevent that (I can´t find it in EEPE)?
- if I select the "Splash screen" in the general settings it won´t be shown at startup, but the startup warnings are not working. How can I fix this?
- if I reduce the receiver voltage (channel1 A1) it won´t change in the radio telemetry display (the RSSI signal is OK / the radio battery voltage is OK)

Best Regards

Michael
pcruhlm
Posts: 3
Joined: Mon Oct 19, 2020 11:40 am
Country: Germany
Contact:

Re: Turnigy 9x processor upgrade

Post by pcruhlm »

Hi Mike,

the telemetry voltage now works fine. I´ve done a bad soldering at the receiver voltage adapter.
Now I use A1 for internal and A2 for battery pack voltage.

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

Re: Turnigy 9x processor upgrade

Post by jhsa »

If you follow one of the links under all my posts, you will be able to donate to Mike.
The other link points to some Er9x / ErskyTX tutorial videos I have made a few years ago.

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

Post Reply

Return to “er9x”