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

Re: er9x development

Post by jhsa » Thu Aug 15, 2013 1:56 pm

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

Re: er9x development

Post by jhsa » Thu Aug 15, 2013 2:05 pm

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

Re: er9x development

Post by MikeB » Thu Aug 15, 2013 3:21 pm

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.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: er9x development

Post by jhsa » Thu Aug 15, 2013 3:28 pm

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 » Thu Aug 15, 2013 3:38 pm

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

Re: er9x development

Post by jhsa » Thu Aug 15, 2013 3:42 pm

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

Re: er9x development

Post by MikeB » Thu Aug 15, 2013 4:16 pm

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.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: er9x development

Post by jhsa » Thu Aug 15, 2013 4:33 pm

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

Re: er9x development

Post by ReSt » Thu Aug 15, 2013 9:30 pm

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 » Fri Aug 16, 2013 5:47 am

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

Re: er9x development

Post by jhsa » Fri Aug 16, 2013 8:16 am

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

Re: er9x development

Post by MikeB » Fri Aug 16, 2013 8:53 am

Ersky9x already includes backlight brighness.

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

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

Re: er9x development

Post by jhsa » Fri Aug 16, 2013 8:56 am

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 » Fri Aug 16, 2013 3:11 pm

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: 9552
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: er9x development

Post by Kilrah » Fri Aug 16, 2013 3:17 pm

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 » Fri Aug 16, 2013 3:27 pm

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: 1047
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO » Fri Aug 16, 2013 3:34 pm

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

Re: er9x development

Post by MikeB » Fri Aug 16, 2013 3:40 pm

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.
ersky9x/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 » Fri Aug 16, 2013 3:58 pm

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

Re: er9x development

Post by jhsa » Fri Aug 16, 2013 4:55 pm

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

Re: er9x development

Post by MikeB » Sat Aug 17, 2013 2:46 pm

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.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
LTMNO
Posts: 1047
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO » Sat Aug 17, 2013 2:50 pm

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

Re: er9x development

Post by jhsa » Sat Aug 17, 2013 3:37 pm

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: 1047
Joined: Fri Nov 30, 2012 9:31 pm
Country: Canada
Location: Toronto, Canada

Re: er9x development

Post by LTMNO » Sat Aug 17, 2013 3:56 pm

what, we are all thinking it... . ;-)
Selfish we are....
Custom 9x with M64/Telemetry Mod

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

Re: er9x development

Post by MikeB » Sat Aug 17, 2013 8:08 pm

Anybody with a 2561 on their board might like to try:
er9x-2561.zip
(69.96 KiB) Downloaded 76 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.
ersky9x/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: er9x development

Post by jhsa » Sat Aug 17, 2013 8:44 pm

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 » Sat Aug 17, 2013 10:28 pm

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

Re: er9x development

Post by jhsa » Sat Aug 17, 2013 11:05 pm

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 » Sat Aug 17, 2013 11:21 pm

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

Re: er9x development

Post by jhsa » Sat Aug 17, 2013 11:56 pm

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