I tried to halt the CPU with halt command.
It failed  but the debug shows

#########
Debug: 40 13610 command.c:151 script_debug(): command - ocd_command ocd_command
type ocd_halt
Debug: 41 13625 command.c:151 script_debug(): command - halt ocd_halt
Debug: 43 13625 target.c:2354 handle_halt_command(): -
Debug: 44 13625 mips_m4k.c:185 mips_m4k_halt(): target->state: running
Debug: 45 13641 mips_ejtag.c:250 mips_ejtag_enter_debug(): ejtag_ctrl: 0x0020c10
8
Debug: 46 13641 target.c:2333 target_wait_state(): waiting for target halted...
Info : 49 14656 target.c:468 target_poll(): Halt timed out, wake up GDB.
Debug: 50 14656 target.c:1198 target_call_event_callbacks(): target event 2 (gdb
-halt)
Error: 58 18656 target.c:2344 target_wait_state(): timed out while waiting for t
arget halted
Debug: 59 18656 command.c:638 run_command(): Command failed with error code -4
User : 60 18656 command.c:679 command_run_line(): in procedure 'halt'
##########
As you can see ejtag_ctrl: 0x0020c108.
That is the 3rd bit is 1 and it means Debug Mode.
Why telnet says this:

Open On-Chip Debugger
> debug_level 3
debug_level: 3
> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
in procedure 'halt'


Is that a real BUG?



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to