CCHL, a hardware ChipCon programmer following swra124, running on CC1110.
Follows (almost) same protocol as CCTL, so same client s/w runs on osx/linux/win
This commit is contained in:
1 parent
ce3b5b77a7
commit
07ff76a515
10 files changed
+1785
-6
No files matched your search
@@ -0,0 +1,45 @@
|
||||
CC = sdcc
|
||||
|
||||
CFLAGS = --model-small --opt-code-speed
|
||||
|
||||
# NOTE: code-loc should be the same as the value specified for
|
||||
# USER_CODE_BASE in the bootloader!
|
||||
LDFLAGS_FLASH = \
|
||||
--out-fmt-ihx \
|
||||
--code-loc 0x400 --code-size 0x8000 \
|
||||
--xram-loc 0xf000 --xram-size 0x1000 \
|
||||
--iram-size 0x100
|
||||
|
||||
ifdef DEBUG
|
||||
CFLAGS += --debug
|
||||
endif
|
||||
|
||||
SRC = main.c
|
||||
|
||||
ADB=$(SRC:.c=.adb)
|
||||
ASM=$(SRC:.c=.asm)
|
||||
LNK=$(SRC:.c=.lnk)
|
||||
LST=$(SRC:.c=.lst)
|
||||
REL=$(SRC:.c=.rel)
|
||||
RST=$(SRC:.c=.rst)
|
||||
SYM=$(SRC:.c=.sym)
|
||||
|
||||
PROGS=cchl.hex
|
||||
PCDB=$(PROGS:.hex=.cdb)
|
||||
PLNK=$(PROGS:.hex=.lnk)
|
||||
PMAP=$(PROGS:.hex=.map)
|
||||
PMEM=$(PROGS:.hex=.mem)
|
||||
PAOM=$(PROGS:.hex=)
|
||||
|
||||
%.rel : %.c
|
||||
$(CC) -c $(CFLAGS) -o$*.rel $<
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
cchl.hex: $(REL) Makefile
|
||||
$(CC) $(LDFLAGS_FLASH) $(CFLAGS) -o cchl.hex $(REL)
|
||||
|
||||
clean:
|
||||
rm -f $(ADB) $(ASM) $(LNK) $(LST) $(REL) $(RST) $(SYM)
|
||||
rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
|
||||
|
||||
Reference in new issue
Block a user