X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2FMakefile;h=19e997691bebb0406f86712b3eb6ed7cb69c7331;hp=c77467e22d7169f1d4ae30d1bf1869f554b452e4;hb=473345590445f43c3f5dd8e5c3716c8f69b9b1cf;hpb=dbcf2c6f85fc4277cc39f6c17cf8b8a4e8f94991 diff --git a/firmware/Makefile b/firmware/Makefile index c77467e..19e9976 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -37,11 +37,11 @@ CC =$(GCC) -Wall -O1 -fno-strict-aliasing -g $(CCEXTRA) # ALPHA: # jtag430 -- 16-bit MSP430 JTAG # jtag430x2 -- 20-bit MSP430 JTAG +# jtagarm7 -- ARM7TDMI JTAG # PRE-ALPHA: # Bus protocols: # i2c -- Turns GF into USB-to-i2c adapter -# jtagarm7 -- ARM7TDMI JTAG # ejtag -- MIPS JTAG # jtagxscale -- XScale JTAG # openocd -- OpenOCD bitbang device @@ -52,9 +52,10 @@ CC =$(GCC) -Wall -O1 -fno-strict-aliasing -g $(CCEXTRA) # pic -- PIC24H/dsPIC33F debugger # adc -- ADC10 (still specific to x2274, GoodFET32) -# Radios: +# Radions: # nrf -- Nordic RF SPI # ccspi -- Chipcon SPI +# atmel_radio -- Atmel radio # Miscelaneous: # glitch -- Glitch research tool @@ -266,6 +267,12 @@ ifeq ($(filter nrf, $(config)), nrf) hdrs+= nrf.h endif +# include atmel_radio app +ifeq ($(filter atmel_radio, $(config)), atmel_radio) + apps+= apps/radios/atmel_radio.o + hdrs+= atmel_radio.h +endif + # include glitch app ifeq ($(filter glitch, $(config)), glitch) apps+= apps/glitch/glitch.o @@ -316,7 +323,11 @@ run: avrinstall: $(app).hex #to be merged +ifdef AVR_PLATFORM + avrdude -V -F -c stk500v1 -p $(AVR_PLATFORM) -b 57600 -P $(GOODFET) -U flash:w:$(app).hex +else avrdude -V -F -c stk500v1 -p m328p -b 57600 -P $(GOODFET) -U flash:w:$(app).hex +endif ifeq ($(platform),tilaunchpad) install: $(app).hex @@ -327,6 +338,10 @@ erase: $(JTAG) -e $(app).hex else install: $(app).hex + #Note that 'make install' no longer erases the chip. + #Use 'make reinstall' if you want that. + $(MSP430BSL) -p $(app).hex +reinstall: $(app).hex $(MSP430BSL) -e -p $(app).hex installinfo: $(MSP430BSL) -P $(app).hex -p info.txt || true #MSP430F2xx targets only, inelegant.