From a71a9296753bf8f46eb2ef8612e7c0f06594891a Mon Sep 17 00:00:00 2001 From: Antoine Drouin Date: Mon, 1 Feb 2010 10:11:24 +0000 Subject: [PATCH] added rule to flash bootloader via JTAG for lpc2148. This is in the wrong location should rather be in Makefile.lpc21 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 4e0a23cea0..1a4b7dc045 100644 --- a/Makefile +++ b/Makefile @@ -137,6 +137,14 @@ BOOTLOADER_DEV=/dev/ttyUSB0 upload_bl bl.upload: bl lpc21isp -control $(AIRBORNE)/arm7/test/bootloader/bl.hex $(BOOTLOADER_DEV) 38400 12000 +JTAG_INTERFACE = olimex-jtag-tiny.cfg +#JTAG_INTERFACE = olimex-arm-usb-ocd.cfg + +upload_jtag: bl + openocd -f interface/$(JTAG_INTERFACE) -f board/olimex_lpc_h2148.cfg -c init -c halt -c "flash write_image erase $(AIRBORNE)/arm7/test/bootloader/bl.hex" -c reset -c shutdown + + + lpc21iap: cd sw/ground_segment/lpc21iap; make