diff options
-rw-r--r-- | openpcd/firmware/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
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. |