Arduino Forum

Forum 2005-2010 (read only) => Software => Interfacing => Topic started by: daveD on Oct 26, 2006, 02:25 am

Title: LDmicro
Post by: daveD on Oct 26, 2006, 02:25 am
I'm programming with a ladder-logic environment called LDmicro. It generates native .hex files for the AVR series including the ATmega8. Problem is, I don't know how to upload the .hex files to the Arduino board? Is there a way to do it with the Arduino environment or the AVR Studio?
Title: Re: LDmicro
Post by: mellis on Oct 26, 2006, 09:39 am
You can't (yet) download .hex files from the Arduino environment, but it's something I'd like to support in the future.  In the meantime, you can use a command like:

Code: [Select]

uisp -dpart=atmega8 -dprog=stk500 -dserial=/dev/cu.usbserial-A1000fKl -dspeed=19200 --upload if=/Users/dmellis/Documents/Arduino/led_blink/applet/led_blink.hex

You'll have to change the value of -dserial to correspond to the serial port assigned to your Arduino board and that of if= to point to the .hex file.  

Or you can try downloading the Makefile from:
Then change the TARGET and PORT variables and type "make program" from the command line, in the same directory as the .hex file and the Makefile.  

In both cases you'll need to have uisp installed (it comes with Arduino or you can download it separately) and in your path.