User Tools

Site Tools


pidflight:flashingfirmware

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pidflight:flashingfirmware [2017/05/10 17:58]
cmengler [Option 2: XLoader]
pidflight:flashingfirmware [2018/11/20 16:02] (current)
cmengler [Xloader]
Line 2: Line 2:
  
 ===== Flashing firmware to lap timing device ===== ===== Flashing firmware to lap timing device =====
-Below are two options you may use to flash the firmware HEX file to the Arduino nano board. ​+The following ​are two options you may use to flash the firmware HEX file to the Arduino nano board. ​
  
-The **avrdude** option is packaged with the [[https://​www.arduino.cc/​|Arduino IDE]] and can be used on all platforms.+  * The **Xloader** option is available only for Windows operating system, it may also be used within Windows virtual machines. 
 +  * The **avrdude** option is packaged with the [[https://​www.arduino.cc/​|Arduino IDE]] and can be used on all platforms.
  
-The **Xloader** option ​is available only for Windows operating system, it may also be used within ​Windows ​virtual machines.+==== Drivers ==== 
 +The CH340 chip is used by a number of Arduino compatible boards to provide USB connectivity. You may need to install the following driver to connect and flash firmware to these boards. 
 +  * Windows: http://​www.wch.cn/​download/​CH341SER_ZIP.html 
 +  * Mac OS X: http://​www.wch.cn/​download/​CH341SER_MAC_ZIP.html 
 +  * Linux: http://​www.wch.cn/​download/​CH341SER_LINUX_ZIP.html
  
-==== avrdude ====+---- 
 + 
 +===== Xloader ===== 
 +  - Download and open {{:​pidflight:​xloader.zip|Xloader}}. 
 +  - Select the PIDflight Lap HEX file. 
 +  - Select "​Device"​ as "​Duemilanove/​Nano (ATmega328)"​ 
 +  - Specify "COM port" as the COM port of the Arduino. 
 +  - Ensure "Baud rate" is set to 57600. 
 +  - Select "​Upload"​ to flash the firmware HEX to the Arduino board. 
 + 
 +{{ :​pidflight:​xloader_laprssi.png?​nolink&​200 |}} 
 + 
 +---- 
 + 
 +===== avrdude ​=====
 Using avrdude to flash the HEX file to the Arduino Nano board. Using avrdude to flash the HEX file to the Arduino Nano board.
  
Line 44: Line 63:
 </​code>​ </​code>​
  
-==== Xloader ==== +----
-  ​Download and open Xloader (from http://​russemotto.com/​xloader/​). +
-  ​Select the PIDflight Lap HEX file. +
-  ​Select "​Device"​ as "​Duemilanove/​Nano (ATmega328)"​ +
-  ​Specify "COM port" as the COM port of the Arduino. +
-  - Ensure "Baud rate" is set to 57600. +
-  - Select "​Upload"​ to flash the firmware HEX to the Arduino board.+
  
-{{ :​pidflight:​xloader_laprssi.png?​nolink&​200 ​|}}+===== Troubleshooting ===== 
 +  * **No COM port showing when Arduino is plugged in Xloader or Device Manager** -- try installing the CH340 driver from the [[#drivers|drivers]] section. 
 +  * **Failing to flash the HEX file to the Arduino** -- try another USB cable and/or USB port.
pidflight/flashingfirmware.1494403093.txt.gz · Last modified: 2017/05/10 17:58 by cmengler