OpenOCD debug load elf file taking too long time

Hi all,

My name is Naidu and I am working with SAM7S256 EK and using the OpenOCD USB JTAG for debugging purposes.I am using FT2232 as a JTAG adapter and OpenOCD v4.0. I am programing the whole thing in Eclipse environment. I am using the Eclipse Zylin to configure the GDB debugger. I have no probelems in downloading the bin file to flash.I have probelems in debugging on the target like in the Zylin configuration I have given the path for the elf file.But I can not debug.

Following are the commands that I include under the commands tab

target local host:3333

monitor reset halt

monitor sleep 500

monitor poll

monitor soft_reset_enable

With this commands I get always probelms with debugging.I either get the message like error read memory or error + address wrap (0x000000f, 0x04)…When I try to press the play and pause button in Eclipse I get the message on the debug window that SOuce not available.I am not sure where the probelem could be. Any kind of help is highly appreciated. If you need more info I could attach the cfg files used for flashing and debug. I am using the SRST signal for reset purposes. If I include load in the command list then every thing works fine but it takes 2 minutes to finish the load operation. I am not sure if we need to include load for every debug operation. If yes, is there a way so that I can increase the speed of load operation.

Kind Regards,

Naidu.

Hi,

This is Naidu again, as I have not received any reply for my post, I thought it would be better if I provide more description regarding my probelem. Actually I am using 2 “.cfg” files for flashing and for debugging (see attachments). I try to debug using Eclipse Zylin Embedded debug. I have given the path to my elf file in the main tab. I have invoked the ara-elf-gdb.exe in the compiler tab. All the debugginh works fine with the foloowing commands in the commands tab

target remote localhost:3333

monitor reset halt

load. I have a question here do I need to use load for every debug session. If yes then this load operation is taking too much time to load the .elf file at the end of the load operation I see surprisingly the Transfer rate: 1 KB/sec, 14478 bytes/write. This I can not undersdtand as I have set in the config file jtag_khz 5000. One more interesting this is I can not set the Jtag_speed. Please do answer the post.

Kind Regards,

Naidu.