Command Line Options

Microchip External Memory Programmer

External Memory Programmer
Command Line Options

All command line options and associated values must be separated by a space. If the value of the argument contains a space, it must be surrounded by quotes. 

 

 

Input File (-I) 

The input file to upload to the firmware. This file must be Intel HEX format. 

 

Communication Medium (-C) 

The type of communication medium used. 

Options: 

USB - USB Communication 

SERIAL - Serial Communicaiton 

 

USB Serial Number (-SN) 

The serial number of the USB device. This is the serial number that is passed from the descriptor. The communication medium selected needs to be USB for this argument to be valid. 

 

USB Product ID (PID) (-PID) 

The USB Product ID of the USB device. This is the PID from the descriptor. The communication medium selected needs to be USB for this argument to be valid. 

 

USB Vendor ID (VID) (-VID) 

The USB Vendor ID for the USB devices. This is the VID from the descriptor. The communication medium selected needs to be USB for this argument to be valid. 

 

Serial Port (-SP) 

The serial communication port that will be used. The port used should be passed as COM<x>, where <x> is the serial port number. The communication medium selected needs to be serial for this argument to be valid. 

 

Serial Baud Rate (-BR) 

The serial baud rate used by the communication port. The communication medium selected needs to be serial for this argument to be valid. 

 

Serial Parity (-P) 

The serial parity of the communication settings. The communication medium selected needs to be serial for this argument to be valid. 

 

Serial Stop Bits (-SB) 

The serial stop bits, 1, 1.5 or 2, for the communication settings. The communication medium selected needs to be serial for this argument to be valid. 

 

An example of serial communication: 

input file: example.hex 

COM port: 2 

115200-8-N-1

>java -jar "<MLA directory>/Microchip/Graphics/bin/memory_programmer/memory_programmer.jar" -I "example.hex" -C SERIAL -SP COM2 -BR 115200 -P None -S 1

 

An example of USB communication: 

VID: 0x4D8 

PID: 0xE30 

Serial Number: usb example

>java -jar "<MLA directory>/Microchip/Graphics/bin/memory_programmer/memory_programmer.jar" -I "example.hex" -C USB -PID 0xE30 -VID 0x4D8 -SN "usb example"
External Memory Programmer
Version 2.3.2
Release: July, 2012
Copyright (c) 2012 Microchip Technology, Inc. All rights reserved