Flashing M128

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: Flashing M128

Post by KAL »

Then there should be thought about the possibility of an automatic transfer in eepe.
(not quite easy to cover all combinations I guess ...)

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )

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

Re: Flashing M128

Post by jhsa »

And if it is not possible? Should that stop the development because we are too lazy to re-program the voice, audio and haptic again? ;) :mrgreen: :mrgreen:

There are a few more options in the voice alarms menu that we didn't have before.. Not sure if it would be possible to make a conversion, even because eepe would have to recognize which logical switches are being used for voice and which not.. Hmm, maybe that could actually be done.. but we would have to check everything anyway.. so, better to just program them all.. it shouldn't take too long if you know what you have to do..
And I think Mike already has a lot to do... on his own.. ;) we can make a little effort too.. After all we get all this for free :)

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
KAL
Posts: 552
Joined: Thu Oct 10, 2013 4:36 pm
Country: Germany
Location: somewhere near Rothenburg ob der Tauber

Re: Flashing M128

Post by KAL »

No, no! :shock: Please not stopping this great evolution! :!:

I haven't thought about you and me ... :lol:
(I have still transfered the voices in all my 28 :o model setups )

Thought of all the others (e.g. :? Joe Average) ... ;)

Klaus
( TH9X / 9XTreme / FrSky DHT / Spektrum / Multi / RotEnc )
( 9XR PRO / erSKY9x  / FrSky DHT / Spektrum / Multi / RotEnc / P3 as Slider )
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Flashing M128

Post by jhsa »

Yes. True.. Joe Average is very lucky that Mike never really did eeprom upgrades because of that same reason I believe. That could probably mean reprogramming the complete model if not possible to convert with eepe ;) Mike, please correct me if I'm wrong here.
Compared to that, programming the audio again in a much better implementation is kids play. Also I think that Joe Average that is the one that most owns radios with the m64 chip will be pleased with the extra flash savings :) :mrgreen:

João Average.. :)
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
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Flashing M128

Post by MikeB »

I'm proposing a way forward for voice alarms etc. on the M64 on the er9x development thread (viewtopic.php?f=5&t=2&start=1980#p91023). Please continue this discussion there.

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

Quasimotoglez
Posts: 21
Joined: Sat May 09, 2015 2:12 am
Country: -

Re: Flashing M128

Post by Quasimotoglez »

Well I pick up where I left off,Quasimotoglez with "FlySky FS-TH9X with erx firmware LOCKDOWN!!!!" I finally got the board from HK and installed in the radio (it says Turnigy and no trim issue on power up)

I painted the radio with GUN GRAY, installed the new board and back light, it comes with the Atmel Atmega 128A

I’m afraid to mess thing up and bother you guys later with a disaster that I may make later on (jhsa and mike thanks so much for your comments and effort in my past problem)

"The more I read about it the more confusing I get"(me)

I downloaded the zip file er9x-128B, but witch one should I put?

So I'm expected to have an issue or NOT with the horizontal trim or some other software/hardware issues after software upgrade so I did the trim mod before I install the er9x software

Please, if it is possible and no time consuming from mike or somebody, can you guide me to all the process and steps (including links, pics and videos for at least successfully UPDATING this radio.)

Best regard to mike and jhsa thank you for your time.

Tony
Attachments
Nice paint!!!
Nice paint!!!
New board is missing a hole no really important
New board is missing a hole no really important
close up of ATmega128A
close up of ATmega128A
two board comparison-New and Old
two board comparison-New and Old
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Flashing M128

Post by jhsa »

Please don't keep posting the same content on different threads. We will see it if you post it once ;) Actually I already replied to it on the first thread you posted it.. I f you wish you can create another thread for your mods, and keep all together.

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
bob195558
Posts: 2377
Joined: Sun Dec 16, 2012 7:24 pm
Country: United States
Location: New England, Vermont
Contact:

Re: Flashing M128

Post by bob195558 »

Hi Quasimotoglez,
What are you using for the transmitter module?

You may want to upgrade to the new 9Xtreme Upgrade Board for 9x Radios when it becomes available.
See: (viewtopic.php?f=95&t=7182&p=99410#p99410).


Bob B.
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).
Quasimotoglez
Posts: 21
Joined: Sat May 09, 2015 2:12 am
Country: -

Re: Flashing M128

Post by Quasimotoglez »

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

Re: Flashing M128

Post by jhsa »

You don't have to apologise. :) It's just that you might get better help if you keep it all in one place..

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
csurf
Posts: 107
Joined: Sat Aug 17, 2013 9:13 am
Country: -

Re: Flashing M128

Post by csurf »

reviving this thread.
I've been out of the loop for a while.
I've got a couple of modded 9x's with M128 chips.
I like the idea of loading a bootloader & flashing over USB via an FTDI adapter.

I've got a few questions...
- where can I find more info on loading the latest version of the bootloader? Can I load openTX on the 9x with the same bootloader setup?

- Confused on which pins on the AVR need to be connected to the FTDI adapter. Normally, It's the TX & RX pins from UART0 on an AVR/Arduino, plus the DTR pin (via a cap&pull-up resistor 'bounce' circuit). However, I'm seeing mention of the SPI pins though. How's this supposed to work?

Any chance that USB joystick functionality can be implemented on the 9x by using the bootloader+TTL/USB adapter setup?
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Flashing M128

Post by MikeB »

The bootloader for the '128 is included in the .hex file of er9x-128, you just need to flash the latest revision (or test version).

You use the same pins as used for the telemetry serial, I thought this post: viewtopic.php?f=5&t=6525#p90924 describes how to connect. The confusion of the SPI pins is due to the 'normal' method of flashing (USBASP) uses these same pins but as a SPI connection.
You only need Tx and Rx. You access the bootloader by holding the two horizontal trims inwards at power on. This is detected in er9x, and passes control to the bootloader.
I don't think openTx have included this, so if you have er9x flashed, you could flash openTx once, but then you will lose the ability to get to the bootloader.

USB joystick will require a lot of work to write a USB HID driver on the '128, unless there is the source code of one available.

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: Flashing M128

Post by jhsa »

MikeB wrote:
USB joystick will require a lot of work to write a USB HID driver on the '128, unless there is the source code of one available.

Mike.
Maybe not for the Atmega128, but for the atmega8, 88, 328,168, etc ;) :) The same that USBASP uses. I think you already know it :)

https://www.obdev.at/products/vusb/index.html

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
csurf
Posts: 107
Joined: Sat Aug 17, 2013 9:13 am
Country: -

Re: Flashing M128

Post by csurf »

jhsa wrote: Maybe not for the Atmega128, but for the atmega8, 88, 328,168, etc ;) :) The same that USBASP uses. I think you already know it :)

João
So, could this be a real possibility, or is it just too complicated & resource-heavy to implement on the '128?
MikeB wrote:The confusion of the SPI pins is due to the 'normal' method of flashing (USBASP) uses these same pins but as a SPI connection.
ok, got it.
Seems a bit strange that the SPI pins are being used as a standard serial port. Is this some kind of software serial implementation?
MikeB wrote: I don't think openTx have included this, so if you have er9x flashed, you could flash openTx once, but then you will lose the ability to get to the bootloader.
Ok, I understand.
Does openTX even support the 128?
Are you one of the openTX devs? If so, could the 128 bootloader be something that you could push for?

(please excuse my ignorance, I've only ever looked into openTX for my taranis, not for 9x's, didn't even realize it was possible to load openTX on a 9x)
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Flashing M128

Post by MikeB »

I'm not at all sure if the processor could drive a software USB port and still be able to handle everything else.

"Seems a bit strange that the SPI pins are being used as a standard serial port."
No, it is the serial port pins being used for the programming SPI port that is strange. There is a SPI port on other pins.

OpenTx does support the '128 on the 9X.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

Today I have changed M64 to M128 a load the firmware "er9x-128.hex", when power on Thr and Ail switch warning.

I reloaded the firmware "er9x-frsky.hex", It work well but Eeprom size same as M64.

Can you please send me firmware for M128 with Frsky mod.

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

Re: Flashing M128

Post by jhsa »

Load the "er9x-128.hex" again.. Then hold the left horizontal trim to the left for about a second while turning the radio ON. This will enable the hardware menu that is disabled for safety.
Now go to Radio Setup / Hardware, find the option "Frsky Mod Done" and set it to ON. Now your switches should work.

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
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Thank you so much, Joao.
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

I have a problem with the firmware "er9x-128.hex".
Telemetry (Screen 3) - Custom display: Up to 6 Telemetry sources can be displayed but only 5 items can be selected, the last one can not be selected.

Can you please help me to check this.

Thank you so much.
Luu
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Flashing M128

Post by MikeB »

Have you flashed revision 820 from http://www.er9x.com?

I recall this as a bug and it is fixed in test versions available from here: viewtopic.php?f=5&t=4598#p64969. Try this one: er9xProv821g_multiDSM-2.zip.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

Thank you for your reply.
Yes, I flashed revision 820 from http://www.er9x.com.
I will flash file "er9x-128.hex" in "er9xProv821g_multiDSM-2.zip" and let you know the result tomorow.

Many thanks,
Luu
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

I have flashed file "er9x-128.hex" in "er9xProv821g_multiDSM-2.zip" again, telemetry (Screen 3) - Custom display: 6 items can be selected now.

I built an Openxsensor with GPS and IMU as this thread https://www.rcgroups.com/forums/showthr ... ?t=2597766 and DIY FrSky RX module(2 way) as this thread https://www.rcgroups.com/forums/showthr ... ?t=2124647.

Both of them worked, but the GPS result display on Tx are not exactly (GPS altitude, GPS speed).
GPS altitude is difference too much from Barometric Altitude.
GPS speed is too low (not sure the unit) when compare with my car speed (Put openxsensor on my car when tested)

If you have time, please have a look on this problem.

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

Re: Flashing M128

Post by MikeB »

GPS altitude is absolute, above sea level.
Barometric altitude depends on the local air pressure, and is auto zeroed to be ablove ground level.
These two will therefore normally be different values.

The GPS speed form the FrSky sensor is in knots, so this is what I expect from the openXsensor.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Now I understood,
Thank you Mike. ;)
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

I have tried to set GPS speed in Km/h by use a scaler in ER9x but unit in scaler setting menu don't have Km/h.
GPS altitude in Telemetry screen is *10 of GPS altitude in Custom display screen.

If you have time, please have a look on these problems.

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

Re: Flashing M128

Post by MikeB »

Which GPS altitude value is correct (so I know which to change)?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

As you say, GPS altitude is absolute, above sea level. I am not sure which value is correct but when I tested at my home GPS altitude in Telemetry screen is 12, GPS altitude in Custom display screen is 1.2.

Thank you,
Luu
Hoangluu
Posts: 35
Joined: Wed Oct 12, 2016 6:40 am
Country: Vietnam
Location: Binh Duong

Re: Flashing M128

Post by Hoangluu »

Dear Mike,

I have take 2 picture for yor more imformation.

I have tried to set GPS speed in Km/h by use a scaler in ER9x but unit in scaler setting menu don't have Km/h.
GPS altitude in Telemetry screen is *10 of GPS altitude in Custom display screen. I think GPS altitude in Telemetry screen is correct.

If you have time, please have a look on these problems.

Thank you,
Luu
Attachments
DSC_0032.JPG
DSC_0033.JPG
User avatar
MikeB
9x Developer
Posts: 17992
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Flashing M128

Post by MikeB »

I'm just doing a formal release of er9x/ersky9x/eepe/eepskye. When I've got this out, I'll be able to look into these.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
rcfish
Posts: 62
Joined: Tue Jan 10, 2017 8:11 pm
Country: Germany

Re: Flashing M128

Post by rcfish »

Hrllo,
I just tested the serial and it works really nice for reading/writing eeprom and reading radio firmware. I want to flash the testversion with more multiprotocols from 15. january I think but I think the version there is with the bootloader, right? Do I have to flash the radio with ISP again or is there somewhere a firmware without the bootloader?
Thanks for answers :)

Post Reply

Return to “er9x”