Kod: Markera allt
# specify output filename here (must be *.bin file)
TARGET = main.bin
# specify the directory where openocd executable and configuration files reside
OPENOCD_DIR = 'c:\Program\openocd-r520\bin\'
# specify OpenOCD executable (pp is for the wiggler, ftd2xx is for the USB debuggers)
#OPENOCD = $(OPENOCD_DIR)openocd-pp.exe
OPENOCD = $(OPENOCD_DIR)openocd-ftd2xx.exe
# specify OpenOCD configuration file (pick the one for your device)
#OPENOCD_CFG = $(OPENOCD_DIR)at91sam7s256-wiggler-flash-program.cfg
#OPENOCD_CFG = $(OPENOCD_DIR)at91sam7s256-jtagkey-flash-program.cfg
OPENOCD_CFG = $(OPENOCD_DIR)at91sam7s256-armusbocd-flash-program.cfg
# program the AT91SAM7S256 internal flash memory
program: $(TARGET)
@echo "Flash Programming with OpenOCD..." # display a message on the console
@echo $(OPENOCD_DIR)
@echo $(OPENOCD)
$(OPENOCD) -f $(OPENOCD_CFG) # program the onchip FLASH here
@echo "Flash Programming Finished." # display a message on the console
Kod: Markera allt
@echo $(OPENOCD_DIR)
@echo $(OPENOCD)
Output i konsolen blir:
Kod: Markera allt
**** Build of configuration Default for project demo_at91sam7_blink_flash ****
make -k program
Flash Programming with OpenOCD...
c:\Program\openocd-r520\bin\
c:\Program\openocd-r520\bin\openocd-ftd2xx.exe
'c:\Program\openocd-r520\bin\'openocd-ftd2xx.exe -f 'c:\Program\openocd-r520\bin\'at91sam7s256-armusbocd-flash-program.cfg # program the onchip FLASH here
/usr/bin/sh: c:\Program\openocd-r520\bin\openocd-ftd2xx.exe: command not found
make: *** [program] Error 127
Tar jag bort fnuttarna skickas istället
Kod: Markera allt
c:\Program\openocd-r520\bin openocd-ftd2xx.exe -f c:\Program\openocd-r520\bin at91sam7s256
Det här är säkert ett jättetrivialt problem för någon med lite mer vana av make-filer, men jag fattar inte hur jag ska lösa det.
