From 3e2cb34748f8b81f2b584da8174fce3bbcd5ae9e Mon Sep 17 00:00:00 2001 From: travisutk Date: Sat, 22 Aug 2009 23:34:06 +0000 Subject: [PATCH 1/1] README files. Don't ignore them. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@83 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- firmware/Makefile | 10 ++++++---- firmware/README.txt | 9 +++++++++ firmware/ldscripts/README.txt | 11 +++++++++++ firmware/ldscripts/{161x.x => msp430x1612.x} | 0 firmware/lib/{msp430f1612.c => msp430x1612.c} | 0 5 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 firmware/README.txt create mode 100644 firmware/ldscripts/README.txt rename firmware/ldscripts/{161x.x => msp430x1612.x} (100%) rename firmware/lib/{msp430f1612.c => msp430x1612.c} (100%) diff --git a/firmware/Makefile b/firmware/Makefile index 1d6134e..44b60da 100644 --- a/firmware/Makefile +++ b/firmware/Makefile @@ -2,16 +2,18 @@ PORT=/dev/ttyUSB0 BSL=msp430-bsl --invert-reset --invert-test -c $(PORT) --speed=38400 -#mcu=msp430x1611 +#mcu=msp430x2618 mcu=msp430x1612 -#ldscript is wonky -GCCINC=-T ldscripts/161x.x + +#N.B., gcc WILL NOT BITCH if this file doesn't exist. +#GCCINC=-T ldscripts/161x.x +GCCINC=-T ldscripts/$(mcu).x CC=msp430-gcc -Wall -g -mmcu=$(mcu) -DGCC $(GCCINC) -I include apps= apps/monitor/monitor.o apps/spi/spi.o apps/i2c/i2c.o apps/chipcon/chipcon.o apps/jtag/jtag.o apps/jtag/jtag430.o -libs= lib/msp430f1612.o lib/command.o apps/jtag/jtag430asm.o +libs= lib/$(mcu).o lib/command.o apps/jtag/jtag430asm.o app=goodfet all: $(app).hex diff --git a/firmware/README.txt b/firmware/README.txt new file mode 100644 index 0000000..cc85ad7 --- /dev/null +++ b/firmware/README.txt @@ -0,0 +1,9 @@ +GoodFET Firmware +by Travis Goodspeed + + +Requires MSPGCC and msp430-bsl. + +Assumes MSP430F161x by default. Call for others by +mcu=msp430x2618 make -e + diff --git a/firmware/ldscripts/README.txt b/firmware/ldscripts/README.txt new file mode 100644 index 0000000..df61226 --- /dev/null +++ b/firmware/ldscripts/README.txt @@ -0,0 +1,11 @@ +Linking script notes, by Travis Goodspeed. + +msp430f1612.x is a neighborly little linking script, the purpose of which is to +link an application for use on an MSP430F1611 or MSP430F1612. These +chips differ in that five kilobytes at 0x2500 are RAM in the 1611, +Flash in the 1612. All other scripts in this directory should be +similarly modified, but the GCC script seems to be used by default if not. + + + + diff --git a/firmware/ldscripts/161x.x b/firmware/ldscripts/msp430x1612.x similarity index 100% rename from firmware/ldscripts/161x.x rename to firmware/ldscripts/msp430x1612.x diff --git a/firmware/lib/msp430f1612.c b/firmware/lib/msp430x1612.c similarity index 100% rename from firmware/lib/msp430f1612.c rename to firmware/lib/msp430x1612.c -- 2.20.1