X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=support%2Fmake%2Fm16c62p%2Fsm16cf.extra;fp=support%2Fmake%2Fm16c62p%2Fsm16cf.extra;h=f83aa5f7f5e90aeb90bbc22fcd8e09f69f4bd8dc;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=0000000000000000000000000000000000000000;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/support/make/m16c62p/sm16cf.extra b/support/make/m16c62p/sm16cf.extra new file mode 100755 index 00000000..f83aa5f7 --- /dev/null +++ b/support/make/m16c62p/sm16cf.extra @@ -0,0 +1,27 @@ +### + # @author Henrik Makitaavola + ## + +ifeq ($(SM16CF), ) +#$(error SM16CF must be defined, try "make $(TARGETS) help") +SM16CF = /dev/ttyUSB0 +endif + +PROGRAM = sm16cf +PROGRAMMER = sm16cf + +ifdef BOOTLOADER + program: FORCE + @echo " installing $(PLATFORM) with bootloader using sm16cf" + srec_cat $(BOOTLOADER_IMG) $(INSTALL_SREC) -exclude 0x000FFFDC 0x00100000 -o $(BUILDDIR)/main_boot.srec -CRLF + sed '/S5/d' $(BUILDDIR)/main_boot.srec > $(BUILDDIR)/main_boot2.srec + $(PROGRAMMER) --device=$(SM16CF) --input-file=$(BUILDDIR)/main_boot2.srec --flash-program + rm $(BUILDDIR)/main_boot.srec + rm $(BUILDDIR)/main_boot2.srec +else +program: FORCE + @echo " installing $(PLATFORM) using sm16cf" + $(PROGRAMMER) --device=$(SM16CF) --input-file=$(INSTALL_SREC) --flash-program +endif + +program_bl: FORCE