# -*- makefile -*- ARCH=arm MACH=lpc21xx BOARD=ul_usb1 CONFIG_APP_U2JTAG=y CONFIG_USB_BASE=y CONFIG_USB_LPCUSB=y CONFIG_USB_MORE=y CONFIG_JTAG_MSP430=y CONFIG_STDIO_COM_PORT=0 CROSS_COMPILE = arm-elf- TARGET_ARCH = -mcpu=arm7tdmi # Set default C flags. If theese are set elsewhere (e.g. on a command # line), these default flags are not used. DEBUG ?= -g OPTIMIZE ?= -O2 # This selects linker script LD_SCRIPT=lpc2148 #DEFAULT_LD_SCRIPT_VARIANT=boot #OUTPUT_FORMATS = bin hex srec OUTPUT_FORMATS = hex bin LPC21ISP=lpc21isp LPC_BAUD = 38400 LPC_TTY = /dev/ttyUSB0 CPU_SYS_KHZ=12000 LPC21ISP_OLD_PARAM_ORDER=y ifeq ($(LPC21ISP_OLD_PARAM_ORDER),y) LOAD_CMD-boot = $(LPC21ISP) -bin $(LPC_TTY) $(LPC_BAUD) $(CPU_SYS_KHZ) else LOAD_CMD-boot = load() { $(LPC21ISP) -bin $$1 $(LPC_TTY) $(LPC_BAUD) $(CPU_SYS_KHZ); }; load endif PROG_BASE=0x20000 PROG_SIZE=0x20000 USB_SENDHEX ?= usb_sendhex USB_APP_VID ?= 0xdead USB_APP_PID ?= 0x1001 USB_BOOT_VID ?= 0xdead USB_BOOT_PID ?= 0x2263 LOAD_CMD-app = \ $(USB_SENDHEX) -d $(USB_APP_VID) -i $(USB_APP_PID) -r ; \ $(USB_SENDHEX) -w -d $(USB_BOOT_VID) -i $(USB_BOOT_PID) -s $(PROG_BASE) -l $(PROG_SIZE) -e; sleep 2 ; \ $(USB_SENDHEX) -d $(USB_BOOT_VID) -i $(USB_BOOT_PID) -s $(PROG_BASE) -f binary RUN_CMD-app = \ $(USB_SENDHEX) -d $(USB_BOOT_VID) -i $(USB_BOOT_PID) -r