Page 1 of 1

Firmware programmer

Posted: Wed Aug 21, 2013 12:54 am
by pabs
Hi all,

I just purchased a 9XR and am waiting for its arrival. I also picked up a FrSky DJT module so I'm excited to put the er9x firmware on the device!

My question is about programming the new firmware. I have a Atmel programmer i use for other electronics projects (http://www.atmel.ca/tools/MATUREAVRISP.aspx) so I'm wondering if i can use that and AVRStudio to program the 9xr. I know the 9xr has an Atmel micro, and they brought out the programming pins, but it seems they are also providing power from the USB to the transmitter because the instructions I've read say to remove the transmitter battery. Can I program the 9XR using the main battery as power? I'm guessing I'll have to make my own adapter cable but I wanted to know if anyone else is doing this.

Also, I the firmware is ".hex" file ... does anyone know how the firmware gets loaded onto the Atmel? Specifically do they use a bootloader on the Atmel?

I'd like to use my existing programmer but if I can't I'll suck it up and buy a the programmer recommended by HK.

-P

Re: Firmware programmer

Posted: Wed Aug 21, 2013 1:59 am
by gohsthb
You can use eepe with your programmer, just select it from the list under Burn->Configure. I don't have a 9xr, but I don't see why you couldn't try programming with the power on. It will either work or it won't. Let us know how it goes.
-Gohst

Re: Firmware programmer

Posted: Wed Aug 21, 2013 11:25 am
by Flaps 30
pabs wrote:I'd like to use my existing programmer but if I can't I'll suck it up and buy a the programmer recommended by HK.
May I suggest that you consider getting one from one of our site members (rperkins) instead, as a few people have had issues with the ones from HK ---> http://openrcforums.com/forum/memberlis ... file&u=218

Re: Firmware programmer

Posted: Thu Sep 12, 2013 8:15 pm
by pabs
I got my 9xr! I pretty impressed with it so far ... great value for sure! I've also successfully programmed the ER9X firmware onto it using my avrisp mkII. I mapped all the pins before I used it and it is a proper Atmel avrisp port, just plug in the Atmel avrisp and your good to go. One thing to note is if you use the Atmel avrisp you keep the main battery in as this is what powers the micro during programming. When I was researching this people said to remove the battery before programming it so I'm guessing the little programmers you get from hobbyking and such provide power to the board through the Vcc pin. I haven't looked at the schematic for those little programmers so I don't know for sure.

Anyway hope this helps if anyone else wants to use a Atmel avrisp programmer (btw - mine is a mkII)

Cheers

Re: Firmware programmer

Posted: Thu Sep 12, 2013 10:26 pm
by MikeB
Is the processor a Mega64 or a Mega128? If you don't know, read the signature bytes.
If it is a '128 then make sure you use the '128 version of er9x. It has a few more reatures and twice as much EEPROM for model storage.

Mike.

Re: Firmware programmer

Posted: Thu Sep 12, 2013 11:22 pm
by pabs
its a Mega128, but I'm not sure which version I downloaded. This is the link I used for download:

http://er9x.googlecode.com/svn/trunk/er9x.hex

Is there a different link for the version for the Mega128? Also I'm thinking of doing the Frsky telemetry conversion to the 9XR is there a Mega128 version for that?

Re: Firmware programmer

Posted: Thu Sep 12, 2013 11:33 pm
by MikeB
That's the M64 version.
Have you got eepe installed. This lets you easily select the download you need. I recently made the M128 version have an option to indicate the telemetry mod has been done, so there is now only a single version.

Mike.

Re: Firmware programmer

Posted: Fri Sep 13, 2013 4:03 pm
by pabs
Thanks Mike! Now I'm looking for the downloads in the right spot ... http://er9x.googlecode.com/svn/trunk/

What is the difference between er9x-128-standard.hex and er9x-128.hex?

Re: Firmware programmer

Posted: Fri Sep 13, 2013 5:14 pm
by MikeB
The 'standard' version doesn't include the telemetry functions and assumes the telemetry mod is not done.
This version is being phased out with an option in the 'full' version to select whether the telemetry mod has been done or not.
I'm doing this to limit the number of different versions that need to be built.

Mike.

Re: Firmware programmer

Posted: Fri Sep 13, 2013 7:31 pm
by pabs
Great! I'll flash it later today, thanks for the help. And great job on this project, I totally impressed with it! Super cool stuff :)

Re: Firmware programmer

Posted: Thu Dec 19, 2013 5:39 pm
by backman8571
question

if you have the T9XR radio do you still have to do the soldering mods to get telemetry to work or is that only for T9X

Per

Re: Firmware programmer

Posted: Thu Dec 19, 2013 5:45 pm
by MikeB
Yes, you still need to do the telemetry mod.

Mike.

Re: Firmware programmer

Posted: Fri Dec 20, 2013 11:13 pm
by backman8571
Have you done the mod's ??