I'm currently working with a TI Firestorm part and trying to use OpenOCD for 
debugging.  I'm currently using the Olimex ARM-USB-TINY-H dongle (but get the 
same results with the Luminary ICDI dongle).  Here's my openocd.cfg file:

source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]
adapter_khz 100
transport select jtag
proc init_targets {} {
    reset_config srst_only srst_open_drain 
}
source [find target/stellaris.cfg]

When I first start up OpenOCD, it correctly recognizes the part and gives no 
errors.  Via the telnet port, I can also issue the "halt" command which 
succeeds.  However, if I attempt to issue a "reset halt" command, I get this:

> reset halt
adapter speed: 500 kHz
cortex_m reset_config vectreset
Resetting Core Peripherals
JTAG tap: lm3s.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 
0x4)
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
MEM_AP_CSW 0x23000040, MEM_AP_TAR 0x0
TARGET: lm3s.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'

in procedure 'reset'
Halt timed out, wake up GDB.
> 

I have reduced the speed all the way down to 5kHz (both in my config file and 
also in the stellaris.cfg file) but get the same results.  I'm not sure how to 
troubleshoot from here, but here's a partial dump of the -d3 data after issuing 
the "reset halt" command:

Debug: 551 212820 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu cget -chain-position
Debug: 552 212820 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu cget -chain-position
Debug: 553 212820 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_jtag tapisenabled lm3s.cpu
Debug: 554 212820 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled lm3s.cpu
Debug: 555 212820 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu arp_reset assert 1
Debug: 556 212820 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu arp_reset assert 1
Debug: 557 212820 target.c:1726 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 558 212820 cortex_m.c:970 cortex_m_assert_reset(): target->state: halted
Debug: 559 212822 core.c:720 jtag_add_reset(): SRST line asserted
Debug: 560 212822 cortex_m.c:587 cortex_m_halt(): target->state: reset
Debug: 561 212822 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu invoke-event reset-assert-post
Debug: 562 212822 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu invoke-event reset-assert-post
Debug: 563 212822 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu invoke-event reset-deassert-pre
Debug: 564 212822 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu invoke-event reset-deassert-pre
Debug: 565 212822 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport select
Debug: 566 212822 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 567 212822 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu cget -chain-position
Debug: 568 212822 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu cget -chain-position
Debug: 569 212822 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_jtag tapisenabled lm3s.cpu
Debug: 570 212822 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled lm3s.cpu
Debug: 571 212823 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu arp_reset deassert 1
Debug: 572 212823 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu arp_reset deassert 1
Debug: 573 212823 target.c:1726 target_free_all_working_areas_restore(): 
freeing all working areas
Debug: 574 212823 cortex_m.c:1111 cortex_m_deassert_reset(): target->state: 
reset
Debug: 575 212873 core.c:724 jtag_add_reset(): SRST line released
Debug: 576 212874 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu invoke-event reset-deassert-post
Debug: 577 212874 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu invoke-event reset-deassert-post
Debug: 578 212874 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_transport select
Debug: 579 212874 command.c:145 script_debug(): command - ocd_transport 
ocd_transport select
Debug: 580 212874 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu cget -chain-position
Debug: 581 212874 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu cget -chain-position
Debug: 582 212874 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_jtag tapisenabled lm3s.cpu
Debug: 583 212874 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
tapisenabled lm3s.cpu
Debug: 584 212874 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu arp_waitstate halted 1000
Debug: 585 212874 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu arp_waitstate halted 1000
Debug: 586 212877 adi_v5_jtag.c:271 jtagdp_transaction_endcheck(): jtag-dp: 
CTRL/STAT error, 0xf0000003
Debug: 587 212877 adi_v5_jtag.c:291 jtagdp_transaction_endcheck(): MEM-AP 
Cached values: ap_bank 0x10, ap_csw 0xa2000002, ap_tar 0xe000edf0
Error: 588 212877 adi_v5_jtag.c:295 jtagdp_transaction_endcheck(): JTAG-DP 
OVERRUN - check clock, memaccess, or reduce jtag speed
Debug: 589 212877 adi_v5_jtag.c:315 jtagdp_transaction_endcheck(): jtag-dp: 
CTRL/STAT 0xf0000001
Error: 590 212878 adi_v5_jtag.c:331 jtagdp_transaction_endcheck(): MEM_AP_CSW 
0x23000040, MEM_AP_TAR 0x0
Debug: 591 212879 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_lm3s.cpu curstate
Debug: 592 212879 command.c:145 script_debug(): command - ocd_lm3s.cpu 
ocd_lm3s.cpu curstate
User : 593 212879 command.c:546 command_print(): TARGET: lm3s.cpu - Not halted
in procedure 'reset' 
in procedure 'ocd_bouncer'

Debug: 594 212879 command.c:628 run_command(): Command failed with error code -4
User : 595 212879 command.c:666 command_run_line(): in procedure 'reset'
Info : 596 217923 target.c:510 target_poll(): Halt timed out, wake up GDB.
Debug: 597 217923 target.c:1405 target_call_event_callbacks(): target event 0 
(gdb-halt)

Something has made it unhappy, but I'm not entirely sure what.  Any clues to 
where I can look next?  I believe this is the last impediment to my fully using 
OpenOCD and gdb on this target.  Thanks!

Ed

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to