Hi,
I'm working with an ARM926ej-s and when I plug it and try to load for
first time openOCD crash like that :
Debug: 438 32773 ft2232.c:1312 ftdi_execute_scan(): FTDI device
buffer size reached, sending queued commands (first_unsent: 0xb9d7a0,
cmd: 0xba0db0)
Warn : 439 32777 core.c:745 jtag_check_value_inner(): Bad value
'00000245' captured during DR or IR scan:
Warn : 440 32777 core.c:746 jtag_check_value_inner(): check_value:
0x00000009
Warn : 441 32777 core.c:755 jtag_check_value_inner(): check_mask:
0x00000009
Error: 442 32778 arm7_9_common.c:2451 arm7_9_write_memory(): JTAG
error while reading cpsr
And saying that is a debug reason 6. But when I'm retry it's work.
In fact it's look like when we got a debug reason #6 it's because CPU is
not halted, so I made a patch that work great.
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c
index 755c1e7..61b91e8 100644
--- a/src/server/gdb_server.c
+++ b/src/server/gdb_server.c
@@ -126,6 +126,8 @@ static int gdb_last_signal(struct target *target)
default:
LOG_USER("undefined debug reason %d - target
needs reset
target->debug_reason);
+ if (target->debug_reason == 6)
+ target_halt(target);
return 0x0;
}
}
-------------
Vivien
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel