ERSKY9X Coding

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: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

New test version posted. Backup and Restore now work in .eepm format, not compatible with the previous test version. However, the .eepm format means the files are compatible with eepskye.
As a test I just read the EEPROM from a SKY board, save a model as a .eepm, copied this file onto the SD card of a 9XR-PRO, then used the restore function in the 9XR-PRO. All worked correctly.
I had previously done a backup of a model and read the resulting file into eepskye.

Neat! :D

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

SupraGo
Posts: 33
Joined: Tue Dec 27, 2011 9:09 pm
Country: -
Location: Alberta, Calgary

Re: ERSKY9X Coding

Post by SupraGo »

Really cool. Congratulations!! :)
User avatar
skylark
Posts: 197
Joined: Mon Jul 09, 2012 6:18 pm
Country: -
Location: Oxford, England

Re: ERSKY9X Coding

Post by skylark »

Mike,
Cool, so far, new version just posted, (r202) seem to be working OK.
Stan.
He who knows not and knows not he knows not, is a fool: SHUN HIM.

He who knows and knows he knows, is a wise man : SEEK HIM

But he who knows not and knows he knows not, is a baby: TEACH HIM.
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

With any luck, you can forget SAM-BA. I've added co-processor update to maintenance mode.
You need to flash the latest test version, see:
viewtopic.php?f=7&t=4676#p65894

While in bootloader mode, copy TinyApp.bin to the firmware sub-directory.

Now restart the Tx while holding both horizontal trims APART. You should now be in maintenance mode and have options to:
Update Bootloader
Update CoProcessor

Select "Update CoProcessor" with the DOWN key then the MENU key.
Now select "TinyApp.bin" and press MENU LONG, then confirm with MENU LONG.
Done.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
skylark
Posts: 197
Joined: Mon Jul 09, 2012 6:18 pm
Country: -
Location: Oxford, England

Re: ERSKY9X Coding

Post by skylark »

Hi,
Could someone give me a link to tinyapp.bin please. I thoght I had a copy in my database, but I can't see the wood for the trees.
Stan.
He who knows not and knows not he knows not, is a fool: SHUN HIM.

He who knows and knows he knows, is a wise man : SEEK HIM

But he who knows not and knows he knows not, is a baby: TEACH HIM.

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

Re: ERSKY9X Coding

Post by MikeB »

It's here: http://code.google.com/p/ersky9x/source ... %2FTinyApp, on the ersky9x googlecode pages.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
skylark
Posts: 197
Joined: Mon Jul 09, 2012 6:18 pm
Country: -
Location: Oxford, England

Re: ERSKY9X Coding

Post by skylark »

MikeB wrote:It's here: http://code.google.com/p/ersky9x/source ... %2FTinyApp, on the ersky9x googlecode pages.

Mike.
Cheers Mike.
Stan.
He who knows not and knows not he knows not, is a fool: SHUN HIM.

He who knows and knows he knows, is a wise man : SEEK HIM

But he who knows not and knows he knows not, is a baby: TEACH HIM.
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

I don´t understand and now i´m getting quite frustrated.
I can get the tx to show: Maintenance update bootloader but nothing else.
And when i try to flash firmware it says Tx disc not mounted.
I´m lost.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The Tx disc is only available in "bootloader mode".

To summarise:
Bootloader mode: Switch Tx on with both horizontal trims TOWARDS the centre. You need this mode to flash new firmware and access the EEPROM from eepskye in "non SAM-BA mode"

Maintenance mode: Switch Tx on with both horizontal trims AWAY from the centre. You need this mode to flash a new bootloader and to flash the CoProcessor (once the latest test firmware is flashed).

Normal: Switch Tx on normally.

So, to flash new firmware, start in "bootloader mode". Use eepskye to flash the firmware. Then copy the TinyApp.bin to the Sd card (firmware sub-directory).
Then switch off, then restart in "maintenance mode". You should be able the update the CoProcessor now.

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: ERSKY9X Coding

Post by jhsa »

or start in bootloader mode turning the radio on holding both horizontal trims towards the center. connect the usb cable, copy both ersky9x and co-processr firmware files into the "firmware" folder on the SD Card drive, disconnect usb, select the ersky9x firmware file, press menu long to flash, menu long again to confirm.. you will see a progress bar.. when done turn the radio off..

Afterwards, to flash the co-pro. turn radio on holding both horizontal trims away from the center to enter maintenance mode.
select the TinyApp.bin file that you just copied to the SD Card inside the radio, and flash it..

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
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

When i get to maintenance i´ve got bootloader and co proc
but i can´t do anything it´s frozen.
If i go to bootloader.t says:

Boot Loader V1.0 Ready
ersky9x_rom.bin
tinyapp.bin

I can go up and down between those two.
But not in maintenance mode.
I´ve got ants on my brain.(Itching)
:)
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: ERSKY9X Coding

Post by jhsa »

did you flash the latest version of the fw already? If not, which version do you have on the radio?
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
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

ersky9x-r202
v2952-mike
20.02.2014
:?
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Looks to be the correct version. So in maintenance mode, UP and DOWN don't work.
Also, when stuck on the Update Bootloader, does anything happen when you press MENU?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

In maintenance mode everything is frozen.

In Bootloader mode everything works except i cant do coprocessor update.
I get a :not a valid firmware.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Very odd, I just made sure I'm running exactly the same version and all is working.
On the test versions post I've just added another version with some debug numbers at the bottome of the screen, all in hex.
The left number is a code of the last "event" (button operation) seen.
The middle number is bits corresponding to buttons actually pressed.
The right number counts up indicating certain code is being executed.

Please try this. In maintenance mode, then press and hold the DOWN button and let me know the left and middle values, and confirm the right value is counting up.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

004E FF81 counting up
When i press down themiddle value changes to:FF89
Whats going on :D
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

I'm not sure, but the 004E value is not what I have and is probably telling me what is wrong. I'm just going to look through the code to see what it means, back to you soon.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

Good that you know because i´ve not got a clue.
:lol:
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The 004E code means the firmware is "seeing" the rotary encoder button continually pressed. Assuming you don't have a rotary encoder button, this probably means I have something not set up correctly in maintenance mode. I'll look into this now.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

I do have the original Skynorth supplied knob type encoder.
But it was not connected and now that i connect it it´s just the same.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

Try the test version I just posted. I didn't initialise the rotary encoder input so they were floating. I don't know why I didn't have the problem on my Tx.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

And i can use the rotary encoder to scroll and confirm.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

No, I haven't got the rotary encoder working in bootloader or maintenance modes. I was keeping the bootloader code small, and copied the code for maintenance mode. I could add the encoder in, but I'm not sure it is worth it as neither the bootloader nor maintenance mode should need to be used much on the Tx.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

SUCCESS.
Now i have co-processor 0106
How come it didn´t work before???
Your DA MAN.
:mrgreen:
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

"And i can use the rotary encoder to scroll and confirm".
In the radio menu and model menu.
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

The non-initialised encoder button was being detected as always pressed, on your Tx, so the firmware was seeing "encoder button repeat" as the event to process, and this blocked any other buttons from generating events.

Thank you for your patience, another (little) bug removed.

I'll post another test version with the debug removed.

Yes, the rotary encoder should be working in the radio and model menus. I have one plugged into a 9XR-PRO that is basically running the same code.

Mike.

Edit: Test version with debug removed now posted.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

Should i download it or just leave the TX as is?
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: ERSKY9X Coding

Post by MikeB »

If you don't mind the debug showing then you might as well leave it as it is.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
Hasse.69
Posts: 143
Joined: Fri Dec 30, 2011 8:59 pm
Country: -
Location: Ostergotland Sweden

Re: ERSKY9X Coding

Post by Hasse.69 »

I cant download it , was i to slow????
:)
To support the forum:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=82QKZZN5ZC8JE
To support ER9X:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

Post Reply

Return to “erskyTx (was ersky9x)”