Pages: [1]   Go Down
Author Topic: LDmicro  (Read 1401 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 11
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
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: http://www.arduino.cc/playground/Learning/CommandLine
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.
Logged

Pages: [1]   Go Up
Jump to: