[Tinyos-help] Iris fuses configuration
Javier Barbarán
barbaran at lcc.uma.es
Thu May 21 02:32:40 PDT 2009
Thanks a lot Janos,
And hopefully the last question, so I won't bother u anymore.. is about
iris.target file, cause I want to configure it so I can write low fue
and high fuse as well, so I have modified the iris.target file to the
following:
But it is not a very elegant solution cause I could use AVR_FUSE_L but
I have tried in different ways but it didn't work so I had to hardcode
it. Could you give me a trace?
#-*-Makefile-*- vim:syntax=make
#$Id: iris.target,v 1.4 2008/07/09 15:36:50 sallai Exp $
PLATFORM = iris
SENSORBOARD ?= micasb
PROGRAMMER ?= avrdude
AVRGCC_SUPPORTS_ATM1281 = $(shell avr-gcc --target-help 2>&1 | grep -c
atmega1281)
ifneq ($(AVRGCC_SUPPORTS_ATM1281),1)
$(error Found avr-gcc with no ATMega1281 support. For details on
upgrading your toolchain, please see
"http://www.isis.vanderbilt.edu/projects/NEST/tinyos-2.x-iris/doc/html/install-tinyos-iris.html")
endif
ifeq ($(PROGRAMMER),avrdude)
PROGRAMMER_PART ?= -pm1281 -U efuse:w:0xff:m -U lfuse:w:0xc2:m
endif
ifeq ($(PROGRAMMER),uisp)
PROGRAMMER_PART ?= -dpart=ATmega1281 --wr_fuse_e=ff
endif
AVR_FUSE_H ?= 0x18
AVR_FUSE_L ?= 0xc2
ifdef RF230_CHANNEL
PFLAGS += -DRF230_DEF_CHANNEL=$(RF230_CHANNEL)
endif
$(call TOSMake_include_platform,avr)
iris: $(BUILD_DEPS)
@:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090521/c66494dc/attachment-0001.htm
More information about the Tinyos-help
mailing list