Sunday, 20 May 2012
 
 
A+ | A- | Reset
Forums Support om128/om328p/om644p Invoking the downloader from a Makefile (0 viewing) 
Go to bottom Post Reply
TOPIC: Invoking the downloader from a Makefile
#116
Mike
Posts: 82
graph
User Online Now
Invoking the downloader from a Makefile 4 Years, 4 Months ago  
The following question came in from a potential customer:
Is the OM software necessary for programming the OM128? I'm accustomed to using WINAVR and its included AVRDUDE to program the Butterfly via bootloader. Can I continue this practice with the OM128?
In the case of a Butterfly, AVRDUDE acts as a downloader and sends the hex program to the Butterfly bootloader that then programs the flash in the mega169.

An Oak Micros om128 also comes with a built-in bootloader but in this case the command line program to send your AVR application to the om128 bootloader is called omload.exe and is invoked as follows:
Code:

 options:   [ -a    | --atn ]          toggles ATN line as a test   [ -b    | --baudrate=]   baudrate for download, default is 115200   [ -c    | --comport=]    uses given serial port, default is 1   [         --eeprom=file ]  specifies the eeprom hex file to download   [         --flash=file ]   specifies the flash hex file to download   [ -h    | --help ]         display this usage message   [ -m    | --manual ]       use manual device reset not DTR automated one   [ -s    | --silent ]       silent mode no console output   [ -t    | --test ]         test mode - do not send any data to device parameters:   flash is optional filename of AVR flash program in Intel Hex format   eeprom is optional filename of eeprom contents in Intel Hex format examples:   omload -ac2 helloworld.hex   omload ---comport=--eeprom=helloworld.eep --flash=helloworld.hex

You could simply invoke omload from the command line after typing make or you could add the following lines to your makefile:
Code:

 # download to the om128. download: $(TARGET).hex $(TARGET).eep     omload --flash=$(TARGET).hex --eeprom=$(TARGET).eep

and then program a om128 by typing
Code:

 make download

The om128 software package includes the command line downloader omload.exe, a GUI version of the downloader, example code, and the source to the om128 bootloader.

You will also need to make sure that omload.exe is in your path for the make target to work correctly.
 
Last Edit: 2008/01/04 11:16 By Mike.
  The administrator has disabled public write access.
Go to top Post Reply
All Content Copyright 2005-2011 Oak Micros. All Rights Reserved. See Terms and Conditions.
Powered by Joomla and osCommerce.