|
From: John A. <jal...@sp...> - 2010-02-08 21:11:34
|
Hi All, I picked up a thread thru google.com that mentions the "interrogation failed" error, and am having that problem myself. <http://www.mail-archive.com/ope...@li.../msg08501.h tml> http://www.mail-archive.com/ope...@li.../msg08501.ht ml I'm using an Olimex ARM-USB-OCD dongle on an Olimex lpc2148 (the little header board) running openocd v0.4.0 on ubuntu 8.04. I was initially able to flash the board with a small test program (1344 bytes) and debug with ddd using openocd -f interface /olimex-arm-usb-ocd.cfg -f board/olimex_lpc_h2148.cfg However, when I tried to flash the board with a larger program (126408 bytes), the flashing failed (I didn't save the errors), and for every subsequent command issued I got Command handler execution failed In procedure 'reset' called at file "command.c", line 637 Called at file "command.c", line 352 Here's the flash script halt arm7_9 dcc_downloads enable wait_halt sleep 10 poll mdw 0x0 100 flash probe 0 flash protect_check 0 # erase first bank only: flash erase_sector 0 0 26 mdw 0x0 100 flash write_bank 0 lpc2148demo.bin 0x0 mdw 0x0 100 reset halt sleep 10 #shutdown This script has worked numerous times with the smaller program. After restarting the openocd daemon and power cycling the lpc2148 (and totally rebooting everything) I always get Sudo openocd -f interface/olimex-arm-usb-ocd.cfg -f board/olimex_lpc_h2148.cfg [sudo] password for jalfredo: Open On-Chip Debugger 0.4.0-rc1 (2010-02-05-16:27) For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html RCLK - adaptive jtag_nsrst_delay: 200 jtag_ntrst_delay: 200 trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain Info : device: 4 "2232C" Info : deviceID: 364511235 Info : SerialNumber: FTPYZRPV A Info : Description: Olimex OpenOCD JTAG A Info : RCLK (adaptive clock speed) not supported - fallback to 500 kHz Error: JTAG scan chain interrogation failed: all zeroes Error: Check JTAG interface, timings, target power, etc. Error: JTAG scan chain interrogation failed: all zeroes Error: Check JTAG interface, timings, target power, etc. Command handler execution failed Warn : jtag initialization failed; try 'jtag init' again. If I call 'jtag init' in the telnet window it returns "jtag init has already been called", however I'm still not able to issue any commands without the above error. Also, it does not appear that flash memory on the lpc2148 actually changed because the previous code is still running-a blinking LED from a timer interrupt and another LED responding to buttons via an ISR. However if I try to issue "mdw 0x0 32" to see what flash looks like I get the "Command handler execution failed" error above. Every command returns this error, including poll. Is it possible the JTAG registers on the lpc2148 or the ARM-USB_OCD got jammed somehow? I'm not convinced the lpc2148 is bad since the previous program is running, however I'm not able to do anything via JTAG with openocd. How do I get this working again? Is there a minimal command I can issue to verify that openocd can in fact talk to the lpc2148? Any help would be sincerely appreciated. Respectfully, John Alfredo |