avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] avrdude - Getting started


From: Joerg Wunsch
Subject: Re: [avr-gcc-list] avrdude - Getting started
Date: Mon, 4 Jan 2010 19:59:53 +0100 (MET)

Andreas Höschler <address@hidden> wrote:

> Do I need libusb?

Yes, you do, and it must be "in sight" when you run the configure
script for AVRDUDE, i.e., you might have to source something like the
following script before running configure:

LIBUSB=/usr/local
export CPPFLAGS="-I${LIBUSB}/include"
export LDFLAGS="-L${LIBUSB}/lib"

(CPPFLAGS is the conventional name for the C preprocessing flags, it's
*not* for the C++ compiler -- that would be CXXFLAGS.)

Make sure the test program that ships as part of the libusb source can
detect (at least) your ISP programming device.

Once that is done, using AVRDUDE is as simple as

avrdude -c avrisp2 -P usb -p atmega328p -U yourimagefile.hex

Of course, this could as well be placed into a Makefile if you want.


Sorry, I can't help you with Virtualbox and Windows.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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