ErskyTx on X20

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
MikeB
9x Developer
Posts: 17720
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

ErskyTx on X20

Post by MikeB » Sun Dec 19, 2021 5:00 pm

I believe I have enough of erskyTx working on a X20 that it is now worth posting a test version for people to try out.
There is a lot still to be done, but enough is working to be useful.
I'll attach test version to this post.
In the .zip file are two files:
erskytx_x20_l.bin
erskytx_x20_h.bin

The _l version is standalone, and overwrites any firmware already flashed to the X20
The _h version loads high in flash memory and is the "dual boot" version.

To install erskyTx for the first time:
1. Download the Ethos firmware you are using (often named "firmware.bin), rename this to "ethos.bin" and place it in the root of the SD card.
2. Copy the "erskytx_x20_h.bin" file to the root of the SD card.
3. Copy the "erskytx_x20_l.bin" file to the root of the SD card, renaming it to "firmware.bin".
4. Start the radio in bootloader mode without the USB cable connected (or just unplug the USB cable). The firmware.bin file will be flashed to the radio.
5. Start the radio normally, erskyTx will run. Press the ENTER button (long) to obtain the main popup menu, select "Radio Setup", then select "Hardware" with the encoder and press ENTER to run it.
6. In the Hardware menu, select "Create Composite" and press ENTER to run this. A progress bar should appear, wait until this completes. This will create a file "Composite.bin" in the root of the SD card, this contains both Ethos and erskyTx. Choose the option to rename this to "firmware.bin" (press ENTER).
7. Power off the radio, then restart in bootloader mode. The composite file will be flashed to the radio. When this completes, power off the radio.
8. If you power on normally, then Ethos should run as before. Powering on normally will run the same firmware you last used, so Ethos to start with. If you hold the "RTN" button pressed at power on, then erskyTx will be selected to run if you last ran Ethos, and Ethos will be selected to run if you last ran erskyTx.

To update either Ethos or erskyTx, repeat the above, although you do not need to carry out steps 3 and 4 as erskyTx is already available to run to create the composite file.

For erskyTx, you will need to install voice files on the SD card. These are available from http://www.er9x.com/, click on the "SD Card Contents" to download a .zip file containing all the voice files. Unzip this onto the SD card, keeping the sub-directories. You should end with a "voice" directory in the root of the SD card, with 3 sub-directories, "system", "user" and "modelNames".

r2 includes support for external modules using PPM, and also supports the XJT-lite module and the Multiprotocol module.
The internal module is not yet supported, neither is the touch screen as I don't (yet) know what the interface is to it.
The display layouts also need work, but I'm dealing with the main functionality first.

The default colours for the background and text are set in the "Radio Setup|Display" menu.
There is a main screen displayed, and you may create more screens, for each model, in the "Model Setup|TelemetryHiRes" menu. When 1, or more, screens are defined, pressing the "DISP" button cycles through them.
Currently, the MDL button acts as "UP", the centre button acts as "DOWN", the SYS button acts as "LEFT" and the DISP button acts as "RIGHT", but these may change in the future.

Improvements and additions will be made as time permits.

Touch screen functions in r3 and later:
Tap the main screen to get the main, popup, menu, tap outside the popup to cancel it.
Tap the required item in the popup.
Radio and model indices, tap the required item, those with a popup, tap the popup item. Tap near the edge to cancel the index menu.
Statistics menus show two areas at the top right, tap these to move between menus.
All menus, after selecting an item to edit, using the scroll wheel and pressing ENTER, 4 boxes appear on the right to allow changing the selected value by 1 or a larger value. If you keep your finger on a box, it auto-repeats. Tap outside these boxes to exit editing.
r5 adds an on-screen EXIT button.

r8 includes "help" text at the bottom of screens listing possible entries. For this to work, place the "helptel.txt" file in the root of the SD card.

Mike
erskytx_x20_r11.zip
24-May-2022 22:29
Improve composite file creation (again).
(284.95 KiB) Downloaded 5 times
erskytx_x20_r10.zip
23-May-2022 23:49
Improve composite file creation.
Improve R9 module support
(284.85 KiB) Downloaded 15 times
erskytx_x20_r9.zip
05-May-2022 22:40
Allow short press of ENTER to run a script.
Fix trim handling bug with flight modes.
Add fading between flight modes.
(284.39 KiB) Downloaded 20 times
erskytx_x20_r8.zip
09-Apr-2022 17:55
Fix mix sources and mix switch bugs
Add Receiver warning on power off and select model
Add throttle warning
Add model name voice
Add music menu
Add switch warning
Add instant trim
Add telemetry reset(s)
Add help text
Several items added to model|general and model|telemetry menus
Several items added to radio|alamrs and radio|general menus
Custom "welcome" message may be set
More telemetry processing
(283.1 KiB) Downloaded 35 times
erskytx_x20_P4r8.zip
31-Mar-2022 20:40
Add error recovery to composite creation.
(281.93 KiB) Downloaded 30 times
erskytx_x20_P3r8.zip
11-Mar-2022 18:28
Fix bug in support for M-LINK telemetry on Multi
(269.32 KiB) Downloaded 41 times
erskytx_x20_P2r8.zip
10-Mar-2022 22:12
Add support for M-LINK telemetry on Multi
(269.32 KiB) Downloaded 31 times
erskytx_x20_P1r8.zip
03-Mar-2022 16:04
Second est version to improve composite creation.
Includes wired trainer support (CPPM).
(269.02 KiB) Downloaded 33 times
erskytx_x20_P0r8.zip
03-Mar-2022 13:07
Test version to improve composite creation.
Includes wired trainer support (CPPM).
(268.88 KiB) Downloaded 29 times
erskytx_x20_r7.zip
25-Feb-2022 22:46
Add a few icons.
Update script handling (supports ELRSv2.bas)
Add missing menus (even if empty)
Add background music.
Add model image support
(263.84 KiB) Downloaded 46 times
erskytx_x20_r6.zip
23-Jan-2022 22:00
Add ELRS module support.
Improve touch screen use on many menus.
Improve on-screen touch buttons.
(235.99 KiB) Downloaded 63 times
erskytx_x20_r5.zip
14-Jan-2022 20:20
Add copy and delete models.
Fix expo flight modes editing in mixes.
(227.52 KiB) Downloaded 53 times
erskytx_x20_r4.zip
09-Jan-2022 23:22
Add DSM telemetry and Bind handling
(224.74 KiB) Downloaded 46 times
erskytx_x20_h_r3.zip
08-Jan-2022 09:59
FMC clock fixed, revision r3
(223.2 KiB) Downloaded 47 times
erskytx_x20r2.zip
First Available version
(217.94 KiB) Downloaded 74 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


KevinFairgrieve
Posts: 3
Joined: Fri Jun 05, 2015 3:17 pm
Country: United Kingdom

Re: ErskyTx on X20

Post by KevinFairgrieve » Wed Dec 22, 2021 6:56 pm

Would this work on an X12S that has the ISRM upgrade module running ETHOS?

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

Re: ErskyTx on X20

Post by MikeB » Wed Dec 22, 2021 8:47 pm

No, this is for the X20 only. The X12 doesn't have enough flash memory to allow both Ethos and erskyTx to be combined.

Unfortunately, I only have a prototype X12, so I can't even add the ISRM module to put erskyTx on the X12 instead of Ethos.

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

KevinFairgrieve
Posts: 3
Joined: Fri Jun 05, 2015 3:17 pm
Country: United Kingdom

Re: ErskyTx on X20

Post by KevinFairgrieve » Wed Dec 22, 2021 9:14 pm

Thanks for the update.

User avatar
kalle123
Posts: 895
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: ErskyTx on X20

Post by kalle123 » Sat Dec 25, 2021 7:45 am

Hello Mike, and what is with ErskyTX on the X10 Express?

regards KH


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

Re: ErskyTx on X20

Post by MikeB » Sat Dec 25, 2021 10:30 am

Go to the erskyTx test versions thread, download the latest and extract "x10E_rom.bin". Just flash this to the X10 Express.

I need to do an actual release so this is on www.er9x.com.

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

tonnie78
Posts: 121
Joined: Mon Jan 12, 2015 9:33 am
Country: -

Re: ErskyTx on X20

Post by tonnie78 » Sat Dec 25, 2021 2:04 pm

Would this mean it's also doable to get OpenTx on an X20?

User avatar
kalle123
Posts: 895
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: ErskyTx on X20

Post by kalle123 » Sat Dec 25, 2021 6:42 pm

MikeB wrote:
Sat Dec 25, 2021 10:30 am
I need to do an actual release so this is on www.er9x.com.
Was looking there and only found a x12d_rom.bin.

KH

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

Re: ErskyTx on X20

Post by MikeB » Sat Dec 25, 2021 7:50 pm

By that I meant I need to actually do a release so that the x10 express firmware is there.
It is in the test versions thread.

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

hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo » Mon Dec 27, 2021 9:07 am

Hello
the programme does not run on my X20S, will there be a version for X20S at some point?
Thanks

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

Re: ErskyTx on X20

Post by MikeB » Mon Dec 27, 2021 10:24 am

Please could you be more specific when you say it doesn't run on the X20S. Does anything display at all?
I only have a X20, so can't test on a X20S myself.

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

hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo » Fri Dec 31, 2021 8:29 am

Hello,
I have renamed my ETHOS "firmware.bin" in the root directory to "ethos.bin" according to your instructions. I copied the file "erskytx_x20_h.bin" to the root directory. Copied the file "erskytx_x20_l.bin" into the root directory and renamed it "firmware.bin".
Start the transmitter in bootloader mode.
The "firmware.bin" runs through normally. Then switch off the transmitter and switch it on again normally. The display shows only Bootloader.
The transmitter can be switched off again with the power button.
Thank you

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

Re: ErskyTx on X20

Post by MikeB » Sat Jan 01, 2022 1:16 pm

I'm looking to see if there is a hardware difference on the X20S that is causing this, but I'm working from disassembled Ethos code to find out, so may take a while.
Does the "Bootloader" text appear immediately, or is there a delay?

I could build a special version that runs with delays between various startup functions.
This could indicate the flashed firmware is running, and the length of any delay before "Bootloader" appears would indicate how far through startup it got.

Would you be able to test such a build?

The other possibility is there is something in the bootloader that is checking the flashed firmware before allowing it to run.

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

hamo
Posts: 3
Joined: Mon Dec 27, 2021 8:58 am
Country: Germany
Location: Schönberg

Re: ErskyTx on X20

Post by hamo » Sat Jan 01, 2022 11:32 pm

The "Bootloader" text appears immediately after pressing the power button.
Sorry, I don't want to do the test.

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Mon Jan 03, 2022 4:57 pm

Hi Mike,
i'm going to install it on my X20, is the dual boot flash is a no return modification or it will be erased by installing firmware ethos bin file directly ?

Thanks
Régis

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

Re: ErskyTx on X20

Post by MikeB » Mon Jan 03, 2022 5:05 pm

If you subsequently flash Ethos directly, the dual boot is removed. This is NOT a no return modification.

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

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Tue Jan 04, 2022 7:51 pm

hi,
i install it as your explain, but i only have a black screen with a blue start button if i press enter (right rotary center button) i just go back from bootloader to black screen.
tandem x20
ethos 1.017 EU

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

Re: ErskyTx on X20

Post by MikeB » Tue Jan 04, 2022 9:47 pm

OK. I believe my X20 is a pre-production one, so there may be something different.
At power on, erskyTx should display a "Starting screen" while the power button is held pressed for about 2 seconds, then go to the main erskyTx screen, so after flashing, power off, then power on holding the power button for 3 seconds. If erskyTx does start, there may be a "click" from the speaker as it starts. If it has started, but there is nothing on the display, you will need to hold the power button in for 2 seconds to get it to turn off.
Also, erksyTx, should create a directory on the SD card called "RADIO", and put three files in it.
Please have a look on the SD card to see if this exists.

Would you be prepared to test a special test version to try to find out why it isn't working?

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

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Tue Jan 04, 2022 10:00 pm

i have no directory called "RADIO" in the Root in fact when the firmware is installed the radio stay in bootloader when i press the start button it try to start i can see a flashing loop in the start button (it's really hard to see) but nothing appened if i want to stop the radio i have to push the enter button to get bootloader mode and after i can stop the radio by a long press

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Tue Jan 04, 2022 10:04 pm

yes send me a special version to try no problemo

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

Re: ErskyTx on X20

Post by MikeB » Tue Jan 04, 2022 10:48 pm

That means it starts to run, then gets a fault that causes a reboot (error or watchdog), goes back to the bootloader and starts again. I'll do a test version that (hopefully) lights the LEDs on the six buttons in turn (with a delay between them) as it starts up. How many LEDs light up should tell me where the fault is.

I'll try to post it tomorrow.

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

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

Re: ErskyTx on X20

Post by MikeB » Wed Jan 05, 2022 1:24 pm

I've posted a special test version on the first post. This turns the LEDs on the 6-position buttons on in turn, with a delay between them as things are initialised.
Starts with the top left, then middle left, then bottom left, then bottom right, then middle right, then top right, then turns the top left one off.
The delay is around a second, so it should be easy to see how many light up.

Just rename the .bin file to firmware.bin and put it on the root of the SD card.

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

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Wed Jan 05, 2022 4:21 pm

hi,

all light up ! one after another as you describe in a loop. send you a video

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

Re: ErskyTx on X20

Post by MikeB » Wed Jan 05, 2022 7:53 pm

Thank you.
I've posted a 2nd special test version. This moves the places where I light the LEDs further into the starting code.
Again, it lights the LEDs in turn, then starts turning them off in turn. This time, I'm expecting that not all the LEDs will light up.
It's looking like it may be the setup for the external RAM, that holds the screen image, that may be failing.

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

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Wed Jan 05, 2022 8:05 pm

This time only one and two (top left and middle left)

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

Re: ErskyTx on X20

Post by MikeB » Wed Jan 05, 2022 8:52 pm

That's what I thought might happen. I've posted a 3rd version where I've changed the code that initialises the external RAM. I found something that suggests I needed a small delay added.

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

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Wed Jan 05, 2022 9:41 pm

same as before only one and two on the left

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

Re: ErskyTx on X20

Post by MikeB » Wed Jan 05, 2022 10:22 pm

4th version. I've put most of the LED sequence in the external RAM startup. This might make it work as it increases the delays.
As the delays are software loops, and the compiler I'm using might generate "better" code, the delays may be shorter than required.
With this one, the LEDs light in order, then start going out in order.

Mike

Edit: I think I can see the main problem, Ethos initialises the external RAM before changing the processor clock up to full speed, while I'm changing the clock first. This means my software delays are too short (same counts as in Ethos).
If the 4th debug version works, try the full version I've also posted with the external RAM initialised before the clock is changed to full speed.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

ronron84
Posts: 48
Joined: Sat Apr 18, 2020 7:13 pm
Country: -

Re: ErskyTx on X20

Post by ronron84 » Thu Jan 06, 2022 6:33 am

at first start in the first loop i've got one to four and after one to three.
the rom shows a black screen i have to unplug the battery to go back to bootloader.it seems there is no loop anymore

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

Re: ErskyTx on X20

Post by MikeB » Thu Jan 06, 2022 9:55 am

To confirm, you power on and the 3 LEDs on the left light up in turn, then the bottom right one, then it restarts and only the 3 on the left light up in turn, then it stops changing.

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


Post Reply

Return to “erskyTx (was ersky9x)”