7 CROSS_COMPILE = arm-elf-
8 TARGET_ARCH = -mcpu=arm7tdmi
9 LOADLIBES += -leurobothw
12 export GCC_VERSION:=$(shell $(CROSS_COMPILE)gcc -dumpversion)
14 ifneq ($(GCC_VERSION),3.4.3)
15 $(warning You are using a different compiler from gcc 3.4.3. This board is known not to work with some newver versions (4.3))
19 # Set default C flags. If theese are set elsewhere (e.g. on a command
20 # line), these default flags are not used.
25 LPC_TTY ?= /dev/ttyUSB0
27 TOLPC = $(MAKERULES_DIR)/$(COMPILED_DIR_NAME)/bin-utils/tolpc --baud $(LPC_BAUD) --sdev $(LPC_TTY) -q $(LPC_XTAL) -v -L -f
28 LOAD_CMD-ram = $(TOLPC)
29 LOAD_CMD-flash = load() { HEX=$(LOCAL_BUILD_DIR)/$$(basename $$1).hex; $(CROSS_COMPILE)objcopy -O ihex $$1 $$HEX; $(MAKERULES_DIR)/$(COMPILED_DIR_NAME)/bin-utils/lpc21isp -control $$HEX $(LPC_TTY) $(LPC_BAUD) $(LPC_XTAL); }; load
32 #LOAD_CMD-ramisp = $(TOLPC)
33 LOAD_CMD-mpram = $(TOLPC)
34 LOAD_CMD-mpflash = $(LOAD_CMD-flash)
36 # $(CROSS_COMPILE)objcopy -O ihex in out
37 # lpc21isp vstup.hex $(LPC_TTY) $(LPC_BAUD) $(LPC_XTAL)
39 # This selects linker script
41 DEFAULT_LD_SCRIPT_VARIANT=ram flash
43 #OUTPUT_FORMATS = bin hex srec