To reset the EEPROM to default values, use a jumper to short the pin pairs for the device and then power up.
On reboot, the device will clear the EEPROM and flash the LED rapidly in 3 sec bursts, which indicates that
you can now power off the device and remove the jumper. On the next power up, the EEPROM should start
with the default “factory reset” values.
Normally, the plane will wiggle the surfaces 3 times to indicate that calibration has completed. If the EEPROM
was reset to factory default (either on first boot or on jumper reset), the plane will wiggle the surfaces 9 times
instead.
This can be used to indicate a problem with EEPROM corruption when you do not expect the
EEPROM to be reset.
Programming Box Support
FlightStab supports configuration through the Aquastar or DLUX programming boxes. Using the programming box is
more convenient and will allow more options that using the stick configuration.
The steps to enable programming box support are:
Use the USBASP ISP programmer to erase the chip, update fuse settings and flash the
AVRootloader_AQUASTAR.hex
bootloader
Use the AVRootloader to update the main programming box firmware:
2013xxxx_AQUASTAR.hex
for the AQUASTAR box
2013xxxx_DLUX.hex
for the DLUX box
Connect the programming box to the FlightStab device through the “one-wire” servo connector and power
them up.
Flashing the Aquastar/DLUX with AVRrootloader
On the Aquastar, the CPU is exposed, so it is highly recommended to use the HK chip adapter for the ISP cable to
the USBasp. The ISP pads are also exposed on the PCB if you want to solder the signals instead.
On the DLUX, the CPU is hidden behind the LCD board, but the pads are exposed just above the 3rd and 4th
buttons. The ISP pads have the following definitions (from left to right):
After connecting the USBasp programmer to the program box via the ISP connector, the next step is to erase the
chip and set the fuse for bootloader support.
Select the target chip type as
ATMega8A
chip (and not ATMega168pa) on the programmer (eXtremeburner,
AVRDude, etc).
Device
Pin pair to apply jumper
RX3S
AIL_OUT and ELE_OUT
NanoWii
D6 and D5 (in the Motor Output group)
GND
29
VCC
17
16
15
GND
RESET
VCC
SCK
MISO
MOSI
Page 13 of 16
FlightStab Guide
10/07/2013
https://docs.google.com/document/d/1Wu7kNyU2rjOpttHuphGEAHgbkrqj7dtaAC7H...