er9x development

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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

"Buried" is the right word ;)
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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

Mike, what about brigthness control (PWM) of the backlight? in radios with the megasound voice module, the pwm would have to be generated by the voice module itself I guess.. :)

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
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

Yes, a couple of software options needed depending on Megasound board or not. The Megasound board might have trouble in driving the PWM out, the signal will need to be software driven PWM, and then some way is needed to send the required brightness to the board. Pin 17 of the processor (PB7) is quite easy as I think timer 2 is available to drive hardware PWM out directly.
Because of these several different requirements I haven't bothered with it though I have thought about it!

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: er9x development

Post by jhsa »

can't you use the LCD lines to send the info to the sound module? I mean, the same way as the volume.. the info doesn't need to be continuously sent, right?
Are all the timers on the m328 being used? different pin? doesn't have timers? :)
Different pin could maybe be an easy fix? I don't know what the hell I'm talking about? ;) :D

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
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: er9x development

Post by G550Ted »

MikeB wrote:I can reproduce the problem, and I think I have a fix for it. Quite a "buried" bug to find!

Mike.
That's why we keep João the bug hunter here. :lol: :mrgreen:

Ted

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

Re: er9x development

Post by jhsa »

yeah, I could smell it from a distance.. auf, auf, auf..!!! :)
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

There is also the Emartee version of voice. It won't understand a "Brightness" command.
I'm a bit busy with other things at the moment, I hope to have them sorted in the next few days.
What actualy takes up quite a lot of flash is the menu option to allow setting of the brightness, together with somewhere in the EEPROM to store it.

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: er9x development

Post by jhsa »

the emartee board could probably do it with some external circuitry?
Still many people using it anyway?? Just checking ;)

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
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: er9x development

Post by ReSt »

I have one radio with emartee module and one with a 328voice module

But I don't need a brightness control of the backlight.

Reinhard
User avatar
HC1969
Posts: 421
Joined: Wed Dec 28, 2011 8:47 am
Country: Hungary
Location: Istvan Magi
Contact:

Re: er9x development

Post by HC1969 »

Required for brightness control? I do not think (unnecessary increase in code).
http://rc.emiter.hu/ (MegaSound 9X, GCL-2, FrSky-RSSI-DAC, etc.) Keress fel!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

well the m128 and skyboard have plenty of space so why not? .it's cool. I do agree that there are other features with more priority though. :)
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

Ersky9x already includes backlight brighness.

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: er9x development

Post by jhsa »

ok, then that leaves the 128 :D
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
Iksbob
Posts: 121
Joined: Wed Dec 28, 2011 1:06 pm
Country: -

Re: er9x development

Post by Iksbob »

If I may ask, why the m128? If people are going through the trouble of replacing the processor, why not a pin-compatable part with more RAM like the m1281?
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: er9x development

Post by Kilrah »

There's the mega2561 that has beta support as well in openTx, but as the new parts are about 4x the price of an m128 there has been little interest... I think we only have 2 people who have one.
Iksbob
Posts: 121
Joined: Wed Dec 28, 2011 1:06 pm
Country: -

Re: er9x development

Post by Iksbob »

Yeah, that's the thing. The m1281-16AU is $9.22 on mouser, while the m128-16AU is $12.10. More RAM, 3 bucks cheaper... What's not to like?
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO »

Kilrah wrote:There's the mega2561 that has beta support as well in openTx, but as the new parts are about 4x the price of an m128 there has been little interest... I think we only have 2 people who have one.
Sorry to ask the question...

but... I can put the Meg2561 in place of the M128 and all is good... with 4x the Ram? and is useable from OpenTx and ER9x(future) ;-)

If so, I have a dead APM board that has the M2561 on it. I can take that off and give it a go.

I am just a little weary to go through all the trouble for more ram just for models... are/is there better functionality that is being built for this memory increases?

If so, then we are talking. But if its just for models, then I only have 2 and not really going to be flying much more.

Thanks...
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

Iksbob: Check the price for a 128A, the 128 is dated and is replaced by the 128A.

The 128/128A are software compatible, the 1281/2561 need some changes due to internal hardware differencies. I do have a 2561 chip, but my biggest problem is having enough Tx's to be able to test all the different versions, 64, 128, 2561, SKY etc.
I've got 1 spare main board, so I might just swap the processor on it to the 2561.

Just checking the datasheets, the 1281 and 2561 have the same amount of EEPROM and RAM, just the flash size is different.

64 64K flash, 2K EEPROM, 4K RAM
128/128A 128K flash, 4K EEPROM, 4K RAM
1281 128K flash, 4K EEPROM, 8K RAM
2561 256K flash, 4K EEPROM, 8K RAM

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
Iksbob
Posts: 121
Joined: Wed Dec 28, 2011 1:06 pm
Country: -

Re: er9x development

Post by Iksbob »

LTMNO wrote:But if its just for models, then I only have 2 and not really going to be flying much more.
Mind you, there's 3 forms of memory on these chips: Flash, EEPROM, and SRAM.
Flash is where the program "firmware" is stored... More flash means more code can be stored on the chip. Flash provides lots of storage space and is non-volatile (removing power does not erase it), however it has a limited number of read/write cycles, so it is not generally used for storing information that gets changed by the software.
EEPROM (electronically erasable programmable read only memory) is where models and global transmitter settings (calibration and such) are stored. EEPROM is also non-volitile and is rated for a much higher number of read/write cycles, however it is a more expensive technology in terms of bytes-per-dollar than flash, meaning there's less of it on the chip.
SRAM (static random access memory) is volatile (information is lost when power is removed) space used by the CPU during program operation to store constantly-changing variables such as the positions of the sticks, the value of an output channel at a given moment and what information should be put on the LCD. Unlike flash and EEPROM, RAM has a virtually limitless number of read/write cycles and can be read/written faster.
MikeB wrote:Iksbob: Check the price for a 128A, the 128 is dated and is replaced by the 128A.
I was not aware of that. Yes, the 128A is only $0.01 more expensive than the 1281. While that covers the price issue, the 1281 is still appears to be a superior chip as far as specs are concerned. :)
MikeB wrote:Just checking the datasheets, the 1281 and 2561 have the same amount of EEPROM and RAM, just the flash size is different.
128K of flash should be enough for anyone!
The 2561 is $17.79 BTW. Twice the flash for twice the price... sounds like a deal to me. :p
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

i would/will go for the 2561. And already has support from one of the fw and soon from the other too it seems. Just waiting. For winter ;) now it is time to fly. :)
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

I've now got a compile option for the '2561. I've fixed all the name changes in the code and it compiles. I now need to check the setup of the timers as the '2561 has some extra registers that need to be set.
I may be able to test this. I have the Ateml STK500 dev kit, with the STK501 top board that hase a socket for a 64-pin chip. I actually have a '128 in it that runs a version of er9x. I should be able to put a '2561 in to test. I just need to compile with a special LCD driver that handles a different LCD that runs from 5V but needs two chip select lines. Mechanically this LCD won't fit in the 9X, but is fine for bench testing.

The '2561 has an extra I/O line available on pin 1. Pin 1 on the '64 and '128 is a parallel programming enable pin, on the '2561 it is an I/O pin.

(It's raining here so I can't go flying!)

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO »

Thank goodness for Rain in the UK. There might be hope for my 2561 chip after all... ;-)

Good stuff Mike!
Custom 9x with M64/Telemetry Mod
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

Pino, You're terrible :mrgreen:
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
LTMNO
Posts: 1049
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO »

what, we are all thinking it... . ;-)
Selfish we are....
Custom 9x with M64/Telemetry Mod
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: er9x development

Post by MikeB »

Anybody with a 2561 on their board might like to try:
er9x-2561.zip
(69.96 KiB) Downloaded 203 times
I built a version with a modified LCD driver and tested it on my STK500/501 combo. It seemed to work, so this is a version with the standard LCD driver. I can't test it (yet).

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: er9x development

Post by jhsa »

well, I start wondering if I should wait for winter :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
mhotar
Posts: 198
Joined: Wed May 16, 2012 9:57 pm
Country: -
Location: Jemnice, Vysocina

Re: er9x development

Post by mhotar »

I uploaded er9x to my 2561 radio, but LCD does not work. Bigger problem is the LCD does not work also with openTX now.
It seems I am in the same situation mbanzi was. Radio works, but no picture.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

may sound stupid, but check the contrast?
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
mhotar
Posts: 198
Joined: Wed May 16, 2012 9:57 pm
Country: -
Location: Jemnice, Vysocina

Re: er9x development

Post by mhotar »

Yes. I tried to, I am sure I found correct line with contrast settings, but It does not help. I erased/flash the chip several times, set the fuses to erase EEPROM, tried my old hex_dump backup, tried to write EEPROM.
Nothing helped. Finally I ended up with bricked 2561, because I messed some FUSES. :(
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: er9x development

Post by jhsa »

:( :(
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”