I get the following error when trying to use openocd under eclipse to flash program the at91SAM7s256 chip on olimex board.
Error: configuration.c:122 parse_config_file(): couldn’t open config file
the corresponding makefile section is as follows :
program the AT91SAM7S256 internal flash memory
program: $(TARGET)
@echo “Preparing OpenOCD script…”
@cmd /c ‘echo wait_halt > $(OPENOCD_SCRIPT)’
@cmd /c ‘echo armv4_5 core_state arm >> $(OPENOCD_SCRIPT)’
@cmd /c ‘echo flash write 0 $(TARGET) 0x0 >> $(OPENOCD_SCRIPT)’
@cmd /c ‘echo mww 0xfffffd08 0xa5000401 >> $(OPENOCD_SCRIPT)’
@cmd /c ‘echo reset >> $(OPENOCD_SCRIPT)’
@cmd /c ‘echo shutdown >> $(OPENOCD_SCRIPT)’
@echo “Flash Programming with OpenOCD…”
$(OPENOCD) -f $(OPENOCD_CFG)
@echo “Flash Programming Finished.”
The file temp.ocd generated in c:\temp folder is as follows :
wait_halt
armv4_5 core_state arm
flash write 0 main.bin 0x0
mww 0xfffffd08 0xa5000401
reset
shutdown
I am using the parallel port wiggler and hence the corresponding lines in the make file are :
OPENOCD_DIR = c:\Program Files\openocd-2007re131\bin
OPENOCD = $(OPENOCD_DIR)openocd-pp.exe
OPENOCD_CFG = $(OPENOCD_DIR)at91sam7s256-wiggler-flash-program.cfg
I am not able to interpret the above error.
Thanks in advance for any thoughts on this