Flash Using Avrdude; Flash Using Avrdude On Nanowii; Optional: Flashing The Avrootloader - HobbyKing OrangeRX RX3S Manual

Open flight stabilizer (flightstab)
Table of Contents

Advertisement

FlightStab Guide
later)
select Write from the menu bar then Flash. the program will write the updated firmware to the flash.
sometimes it will fail to recognize the chip ID. try again 2-3 times and it would usually succeed.
disconnect the ISP connector from the RX3S.

Flash using avrdude

avrdude recognizes the ATmega168PA with -p m168p
please check the docs on how to read and verify the fuse bits, and how to erase the chip.
apply the same caution in the previous section to verify the fuse/lock bits before erasing the chip.
to flash the device, i used the following command (in a single line):
avrdude -C "C:\Program Files\arduino-1.0.3
\hardware\tools\avr\etc\avrdude.conf" -c usbasp -p m168p -U
flash:w:<filename>.hex
Flash using avrdude on NanoWii (which has the arduino/leonardo bootloader)
avrdude -p m32u4 -P
TIMEOUT 3
avrdude -p m32u4 -P
TIMEOUT 3
Save above code to a Text file and rename something handy for you, example NanoFlash.bat. Open Explorer and
type into address bar '%APPDATA%\Microsoft\Windows\SendTo' and put NanoFlash.bat in that folder.
You'll need to swap details in Blue/Red to suit your FC.
How to find Trigger and Active Comports:
Open device manager. Plugin NanoWii that port number will be Trigger Port. Replace Blue with this number.
You'll manually reset the board while watching device manager. Will change to the Active Port number for few
sec's. Change Red with this number.
How to use
Right click on *_NanoWii.hex file and go to option 'Send to' chose NanoFlash and your done.

Optional: Flashing the AVRootloader

It is possible to flash a bootloader via usbasp on the RX3S. If the bootloader is installed, then flashing the main
stabilizer firmware does not require the usbasp. Instead, an FTDI USB-serial adapter with a small circuit mod
connects to the AILR_OUT channel, which is more convenient than opening up the device to upgrade the firmware
via the usbasp ISP connector. The circuit mod follows:
https://docs.google.com/drawings/d/1WhYAdw_9QpfYJWmOuu2IhCJNw6rNNagTw_OZEqriTo8/pub?w=867&h=439
https://docs.google.com/document/d/1Wu7kNyU2rjOpttHuphGEAHgbkrqj7dtaAC7H...
COM7
-c avr109 -b 1200
-c avr109 -D -Uflash:w:%1:i
COM5
Page 3 of 16
10/07/2013

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nanowii

Table of Contents