[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Programming the AVR from another C program

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Programming the AVR from another C program
Date: Thu, 1 Aug 2002 17:05:06 +0200 (MET DST)

Michael Bellefeuille <address@hidden> wrote:

> Is there another way of getting this done?

If i needed it, i'd do it from with my Makefile.

But i don't know how ponyprog works.  My programmer (avrprog from
Brian Dean) is completely controlled from the command-line.  IMHO uisp
would also do it.  In that case, including the call in the Makefile is
pretty simple.

For me, it would look like:

program: myproject.hex
        avrprog -p${MCU} -e -i myproject.hex

By calling "make program" it would try to first erase and then
reprogram the MCU.  If myproject.hex is not up-to-date, it will first
recompile it.

J"org Wunsch                                           Unix support engineer
address@hidden        http://www.interface-systems.de/~j/
avr-gcc-list at http://avr1.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]