项目作者: glucee

项目描述 :
Arduino Firmware Uploader without IDE on Windows
高级语言: Batchfile
项目地址: git://github.com/glucee/FirmwareUploader.git
创建时间: 2018-06-11T11:02:34Z
项目社区:https://github.com/glucee/FirmwareUploader

开源协议:

下载


FirmwareUploader

How to use the uploader.bat

  1. Copy your firmware file to the root folder and rename it to ‘firmware.hex’
  2. Remove all the USB devices connected to the testing PC
  3. Connect the Arduino-based device to the testing PC via USB cable
  4. double click the uploader.bat

Where to find the firmware.hex

If you are using Arduino IDE, you could find tutorial here.

I suggest to use platformio, which is very simple and easy. After compiling your project, you will find firmware.hex in the .pioenvs\PLATFORM\

How to modify the uploader.bat

This bat file uses ArduinoSketchUploader 3.2 by Christophe Diericx

The usage are

  1. -f, --file Required. Path to the input file (in intel HEX format) which
  2. is to be uploaded to the Arduino.
  3. -p, --port Name of the COM port where the Arduino is attached (e.g.
  4. 'COM1', 'COM2', 'COM3'...).
  5. -m, --model Required. Arduino model. Valid parameters are any of the
  6. following: [Leonardo, Mega1284, Mega2560, Micro, NanoR2,
  7. NanoR3, UnoR3].
  8. --help Display this help screen.

A sample command line invocation (for a Mega2560 type Arduino attached to COM4):

  1. ArduinoSketchUploader.exe --file=C:\MyHexFiles\myHexFile.hex --port=COM4 --model=Mega2560

If only a single COM port is in use on the system (used by the attached Arduino), one can omit the port:

  1. ArduinoSketchUploader.exe --file=C:\MyHexFiles\myHexFile.hex --model=UnoR3