ERSKY9X Coding
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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!
Mike.
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!
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
Really cool. Congratulations!!
Re: ERSKY9X Coding
Mike,
Cool, so far, new version just posted, (r202) seem to be working OK.
Stan.
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.
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.
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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.
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.
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.
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
It's here: http://code.google.com/p/ersky9x/source ... %2FTinyApp, on the ersky9x googlecode pages.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
Cheers Mike.MikeB wrote:It's here: http://code.google.com/p/ersky9x/source ... %2FTinyApp, on the ersky9x googlecode pages.
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.
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.
Re: ERSKY9X Coding
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.
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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
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
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
Re: ERSKY9X Coding
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)
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
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
Re: ERSKY9X Coding
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
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
Re: ERSKY9X Coding
ersky9x-r202
v2952-mike
20.02.2014
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
In maintenance mode everything is frozen.
In Bootloader mode everything works except i cant do coprocessor update.
I get a :not a valid firmware.
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
004E FF81 counting up
When i press down themiddle value changes to:FF89
Whats going on
When i press down themiddle value changes to:FF89
Whats going on
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
Good that you know because i´ve not got a clue.
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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.
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
SUCCESS.
Now i have co-processor 0106
How come it didn´t work before???
Your DA MAN.
Now i have co-processor 0106
How come it didn´t work before???
Your DA MAN.
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
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
Re: ERSKY9X Coding
"And i can use the rotary encoder to scroll and confirm".
In the radio menu and model menu.
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
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.
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!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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
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
- MikeB
- 9x Developer
- Posts: 18000
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: ERSKY9X Coding
If you don't mind the debug showing then you might as well leave it as it is.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
Re: ERSKY9X Coding
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
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