[En-Nut-Discussion] Makeburn file for avr-dude + JTAGICE + mkII

José Vallet jose.vallet at hut.fi
Fri Mar 13 12:59:49 CET 2009


Hello all.

I use Linux for developing NutOS apps, and I normally use JTAGICE mkII 
and avrdude to program Ethernut2.

JTAGICE mkII Windows users can choose avr-jtagicemkii as the programmer 
in the NutConf settings, but at least I have not seen one option for 
Linux users. If we want to use "make burn" the possible options that we 
have are either to change manually the Makeburn.avr-dude so that it uses 
the JTAGICE mkII or to write a Makeburn.avr-dude-mkii file and place it 
in nut/app, so we can choose avr-dude-mkii in the NutConf settings as 
the programmer.
We have done the later one, but it requires that we copy the file always 
whenever we get a new version of NutOS. Of course it is not a lot of 
work, but I just think that it would be nice if it was included in the 
official NutOS releases. After all it might me useful for others.

In short: would it be possible to include a Makeburn file for 
avr-dude+JTAGICE+mkII in the official NutOS tree?

Here is the Makeburn.avr-dude-mkii that we are using. It was a 
copy-paste+remake of Makeburn.avr-dude

Regards
José

____________________________________

BURN=avrdude
BURNPORT=usb
BURNTARGET=$(MCU)
#BURNFLAGS=-dprog=stk500 -dserial=$(BURNPORT) -dspeed=115200 
-dpart=$(BURNTARGET) --erase --upload if=$(TARG)

# Programming support using avrdude. Settings and variables.

# Programming hardware: alf avr910 avrisp bascom bsd
# dt006 pavr picoweb pony-stk200 sp12 stk200 stk500
#
# Type: avrdude -c ?
# to get a full listing.
#
AVRDUDE_PROGRAMMER = jtagmkII

AVRDUDE_WRITE_FLASH = -U flash:w:$(TARG)
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep

AVRDUDE_FLAGS = -p $(BURNTARGET) -P $(BURNPORT) -c $(AVRDUDE_PROGRAMMER)

# Uncomment the following if you want avrdude's erase cycle counter.
# Note that this counter needs to be initialized first using -Yn,
# see avrdude manual.
#AVRDUDE_ERASE += -y

# Uncomment the following if you do /not/ wish a verification to be
# performed after programming the device.
AVRDUDE_FLAGS += -V

# Increase verbosity level.  Please use this when submitting bug
# reports about avrdude. See <http://savannah.nongnu.org/projects/avrdude>
# to submit bug reports.
#AVRDUDE_FLAGS += -v -v

BURNFLAGS = $(AVRDUDE_FLAGS) $(AVRDUDE_WRITE_FLASH) $(AVRDUDE_WRITE_EEPROM)



More information about the En-Nut-Discussion mailing list