From 0c1766f4312613d83fb4fd6efbc8b9558b17eefa Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1> Date: Tue, 25 Jul 2006 07:45:57 +0000 Subject: [PATCH] added support for "make program" (at91flash) git-svn-id: https://svn.openpcd.org:2342/trunk@42 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpcd/firmware/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openpcd/firmware/Makefile b/openpcd/firmware/Makefile index 76f3184..fda7663 100644 --- a/openpcd/firmware/Makefile +++ b/openpcd/firmware/Makefile @@ -35,6 +35,7 @@ # - 19. Mai. 2006 - USE_THUMB_MODE switch, ROM_RUN->RUN_FROM_ROM RAM_RUN->RUN_FROM_RAM +FLASH_TOOL = AT91FLASH #FLASH_TOOL = UVISION #FLASH_TOOL = OPENOCD @@ -366,6 +367,12 @@ gccversion : # Program the device. +# Program the device by using our relais card robot over USB +ifeq ($(FLASH_TOOL),AT91FLASH) +program: $(TARGET).$(IMGEXT) + ls -l $(TARGET).$(IMGEXT) + at91flash $(TARGET).$(IMGEXT) +else ifeq ($(FLASH_TOOL),UVISION) # Program the device with Keil's uVision (needs configured uVision-Workspace). program: $(TARGET).$(IMGEXT) @@ -387,6 +394,7 @@ program: $(TARGET).$(IMGEXT) $(LPC21ISP) $(LPC21ISP_OPTIONS) $(LPC21ISP_DEBUG) $(LPC21ISP_FLASHFILE) $(LPC21ISP_PORT) $(LPC21ISP_BAUD) $(LPC21ISP_XTAL) endif endif +endif # Create final output file (.hex) from ELF output file.