sorry for the top posting, my email client is not good with html My thoughts are that your target should already be halted before gdb connects, as are using reset_init. This would be place to start looking. Regards Spen
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pieter Conradie Sent: 22 July 2008 14:09 To: 'openocd-development@lists.berlios.de' Subject: [Openocd-development] auto_probe fails,because of premature GDB "qXfer:memory-map:read::" Hi List, I think I narrowed down my problem with auto_probe failing. See previous e-mail for set up and logs. This was produced on OpenOCD, SVN 734 and an AT91SAM9260 with Intel NOR FLASH attached (CFI). The first thing that GDB/Insight does is to send a "qXfer:memory-map:read::" command, even before executing the automatic GDB script (program_and_debug.gdb) that resets the target with "monitor reset" and puts it into the proper state for flash probing to work. In gdb_server.c, line 1571, the following line is executed: p = get_flash_bank_by_num(i); It fails and generates the following error message in the log: Error: 96 2540 flash.c:219 get_flash_bank_by_num(): auto_probe failed -304 -304 = ERROR_TARGET_NOT_HALTED I'm not sure how to go about fixing this. As a workaround, I start a Telnet session first and reset the target, before starting a GDB/Insight session. Pieter Conradie Psitek (Pty) Ltd Hardware Engineer Tel: +27 (0) 21 912 2100 Cell: +27 (0) 72 262 9879 Fax: +27 (0) 21 912 2120 Website: <http://www.psitek.com> www.psitek.com Notice This email is intended for the addressee only and may contain legally privileged and/or confidential information. If you have received this email in error and are not the intended recipient, you are hereby informed that you are not entitled to read, broadcast, distribute or in any manner whatsoever use the contents of this email or any attachments thereto. You are requested to please notify Psitek that you have received the email and then delete it. Unless clearly stated otherwise, the content and sentiments expressed in this email or any attachments thereto are those of the sender and not of Psitek (Proprietary) Limited. Psitek does not accept liability for any damages, loss or expense of any nature whatsoever arising (a) out of or in connection with the email or any attachments thereto and/or (b) from any act or omission by the recipient relying upon the content of the email or attachments. Psitek further disclaims liability for any damages caused by computer and/or software viruses. Should this email contain the terms of a contract, no binding agreement will result until such time as a written (hardcopy) document is signed on behalf of Psitek.
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development