On 15 February 2012 19:33,  <[email protected]> wrote:
> 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.

I can only see ejtag_ctrl: 0x0020c10 - which is telling us yout target
is running
Can you enable the debug log from the start and post the results here.

Also until you get the target running i would suggest not using gdb -
use the telnet interface its simpler.

Cheers
Spen

------------------------------------------------------------------------------
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