Hopefully someone can help me here. I’ve been following Jim Lynch’s tutorial using a Olimex SAM7-P256 board and Amontec JTAG key flash programmer. I’ve followed all of the steps in the tut and get as far as trying to program the dev board and this is where I encounter problems. The console dump here is showing a problem with a lock error bit:
make -k program
Flash Programming with OpenOCD…
'c:/Program Files/openocd-2007re141/bin/'openocd-ftd2xx.exe -f 'c:/Program Files/openocd-2007re141/bin/'at91sam7s256-jtagkey-flash-program.cfg # program the onchip FLASH here
Info: openocd.c:86 main(): Open On-Chip Debugger (2007-04-16 19:30 CEST)
Warning: arm7_9_common.c:685 arm7_9_assert_reset(): srst resets test logic, too
Info: target.c:227 target_init_handler(): executing reset script ‘script.ocd’
Info: configuration.c:50 configuration_output_handler(): waiting for target halted…
Info: configuration.c:50 configuration_output_handler(): target halted
Info: configuration.c:50 configuration_output_handler(): core state: ARM
Info: configuration.c:50 configuration_output_handler(): waiting for target halted…
Info: configuration.c:50 configuration_output_handler(): target halted
Info: configuration.c:50 configuration_output_handler(): waiting for target halted…
Info: configuration.c:50 configuration_output_handler(): target halted
Info: configuration.c:50 configuration_output_handler(): waiting for target halted…
Info: configuration.c:50 configuration_output_handler(): target halted
Error: at91sam7.c:257 at91sam7_wait_status_busy(): status register: 0x30005
Error: at91sam7.c:259 at91sam7_wait_status_busy(): Lock Error Bit Detected, Operation Abort
Info: configuration.c:50 configuration_output_handler(): failed writing file main.bin to flash bank 0 at offset 0x00000000
Info: configuration.c:50 configuration_output_handler(): flash program error
Warning: arm7_9_common.c:685 arm7_9_assert_reset(): srst resets test logic, too
Flash Programming Finished.
Can anyone help me fault-find what’s going on? Any help will be much appreciated. Cheers,
Phil