15 décembre 2009

Xmega bootloader new version

Here is a new version of the Xmega bootloader which works at 115200 bps and with the buggy versions of Xmega that have some problems to be self flashed. This version has been tested on Xmega192A3 and stk600. The serial connection use the pins PORTD2 and PORTD3 for the rx/tx. Connection speed must be set to 115200 with avr-dude.
Example of the command to use under linux to flash with avrdude (version 5.8):


avrdude -p x192a3 -P /dev/ttyUSB0 -c avr109 -b 115200 -U flash:w:test.hex


There is a temporisation at boot. After reset or cold start, the MCU waits 3 seconds max until it starts its application. There is no dedicated pin to set to enter flashing mode.
Source code and hex image:
bootloader_192a3_115200.zip

08 décembre 2009

A web site for RC@home

I am happy to announce the new web site dedicated to RC@home projects. You'll retrieve most information from this blog plus new ones. It is structured to provide a quick access to the various parts if you are interested to build your own radio. This blog will continue to provide regular news on the subject and related:

RC@home web site

25 novembre 2009

Old radio transmitter

A friend of my club (thanks Salvador) gave me his old Radios that he used years ago. They were made by Lextronic, a french electronic company. The company still exist, but the radio are not more sold. Simple, neat and strong.




11 novembre 2009

Bootloader Xmega


I received the prototype board (Stk600) for Atmel processor and started to play with it. The First step was to install a bootloader in the Xmega192a3.

Hum, that was more complex than I thought. Xmega world is still very new and I discover several problems: avrdude program (to flash the xmega) does not work under linux (pdi does not work), and bigger problem, the Xmega 192a3 has a bug which prevent its flash memory to be written directly.

So to workaround the "avrdude" problem on linux, I simply used XP and avr-studio 4.17. This is a recent version whcih support Xmega. Even if it not perfect, because the x192a3 is not yet in the compiler mcus list. But it is known in the uploader part of avr-studio.

Then for the second problem, I port on avr-studio (avr-gcc) the workaround from Atmel (application note 1008) which allows the flash to be self-written. Unfortunately, the workaround provided by Atmel was made for IAR (not avr-Gcc compiler) and was not a complete bootloader. So I had to port it and integrate in an existing bootloader port.

The first version I made did not work. Good opportunity to learn AVR assembly. So I redo and finally it worked ! Ouf , thanks to Atmel support which provided me this application note. My bootloader is here: bootloader Xmega 192a3.

The project files are included, and you need avr-studio v4.17 (free from Atmel). Serial port is port D and baud rate is 19200. See defines.h and compiler options before using. Once the bootloader has been installed, an application can be flashed with the command "avrdude -c avr109 -b 19200 ..." and other needed parameters.

25 octobre 2009

ATxmega




I received the new processor that may well be the basis of the next version of RCHome. It is an atXmega192A3. This processor looks very interesting for a radio transmitter because it has:
* 16 Kbyte SRAM, which gives more spaces for the core of the software,
* ADC 12bits (Analog to Digital) converter: for a best accuracy of stick inputs
* tqfp 64 package, is "smt" technology, but should be still reasonable to solder,
* has hardware support for quadratic encoders,
* many IO pins (switch, several rotary encoder, lcd, etc...)
* several timers
* 32 Mhz clock

But it has some drawbacks also:
* can't be programmed with ISP, need PDI and there is still no low cost PDI programmer
* programmatic interface a bit different from Atmega AVR
* requires most recent version of avr-gcc tools
* has still few concrete examples on how to use

Here is the adaptor board for the stk600, I should receive the stk600 soon.

22 septembre 2009

Schematic

The schematic of Rchv2 is available here. It's made with "Kicad" which is a nice open source for electronics, schematic and PCB.. See kicad home page to get it.
Thanks to Andreas Thorn for his help and contribution on this schematic.

13 septembre 2009

T12Z with Assan

Some pictures of the Assan X8D module installation in a Futaba T12Z. Lock switch and led are located on the same side than antenna. PPM signal, + and - are taken from the back of the middle board which carries the trainer connector.