Hi,
I am attempting to use OpenOCD with a Luminary LM3S811 Evaluation Board. When I start the OpenOCD daemon, (SVN trunk rev. 517), I see the following error and warning messages:
Warning: cortex_m3.c:441 cortex_m3_halt(): target was in unknown state when halt was requested
I am running Ubuntu 7.04 and, (as alluded to above), have compiled OpenOCD from SVN revision 517. I am using the ftd2xx driver from FTDI. I can continue to produce the same error by issuing additional ‘reset’ commands from a telnet connection to the OpenOCD daemon. This problem is preventing me from debugging with ddd. Any help would be greatly appreciated.
-Kyle
My OopenOCD configuration file:
gdb_port 3333
interface ft2232
ft2232_device_desc “LM3S811 Evaluation Board A”
ft2232_layout evb_lm3s811
ft2232_vid_pid 0x0403 0xbcd9
jtag_speed 10
jtag_nsrst_delay 500
reset_config srst_only separate
jtag_device 4 0x1 0xf 0xe
daemon_startup reset
target cortex_m3 little run_and_halt 0
working_area 0 0x20000800 0x1200 nobackup
flash bank stellaris 0 0 0 0 0
The full debugging information is as follows:
Debug: 6 0 configuration.c:87 open_file_from_path(): opened cortex_ft2232_dbg.cfg
Debug: 7 1 command.c:375 command_run_line(): telnet_port 4444
Debug: 8 1 command.c:375 command_run_line(): gdb_port 3333
Debug: 9 1 command.c:375 command_run_line(): interface ft2232
Debug: 10 1 command.c:375 command_run_line(): ft2232_device_desc “LM3S811 Evaluation Board A”
Debug: 11 1 command.c:375 command_run_line(): ft2232_layout evb_lm3s811
Debug: 12 1 command.c:375 command_run_line(): ft2232_vid_pid 0x0403 0xbcd9
Debug: 13 1 command.c:375 command_run_line(): jtag_speed 10
Debug: 14 1 command.c:375 command_run_line(): jtag_nsrst_delay 500
Debug: 15 1 command.c:375 command_run_line(): reset_config srst_only separate
Debug: 16 1 command.c:375 command_run_line(): jtag_device 4 0x1 0xf 0xe
Debug: 17 1 command.c:375 command_run_line(): daemon_startup reset
Debug: 18 1 command.c:375 command_run_line(): target cortex_m3 little run_and_halt 0
Debug: 19 2 command.c:375 command_run_line(): working_area 0 0x20000800 0x1200 nobackup
Debug: 20 2 command.c:375 command_run_line(): flash bank stellaris 0 0 0 0 0
Debug: 21 2 jtag.c:1466 jtag_init(): -
Debug: 22 4 ft2232.c:1336 ft2232_init_ftd2xx(): ‘ft2232’ interface using FTD2XX with ‘evb_lm3s811’ layout (0403:bcd9)
Debug: 23 320 ft2232.c:1425 ft2232_init_ftd2xx(): current latency timer: 2
Debug: 24 321 ft2232.c:1668 usbjtag_init(): 80 88 8b
Debug: 25 322 ft2232.c:256 ft2232_speed(): 86 0a 00
Debug: 26 331 jtag.c:305 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 27 331 jtag.c:1235 jtag_reset_callback(): -
Debug: 28 332 jtag.c:305 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 29 332 jtag.c:1235 jtag_reset_callback(): -
Info: 30 335 jtag.c:1329 jtag_examine_chain(): JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2)
Debug: 31 335 jtag.c:305 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 32 335 jtag.c:1235 jtag_reset_callback(): -
Debug: 33 337 openocd.c:114 main(): jtag init complete
Debug: 34 337 cortex_swjdp.c:945 ahbap_debugport_init():
Debug: 35 343 cortex_swjdp.c:986 ahbap_debugport_init(): AHB-AP ID Register 0x14770011, Debug ROM Address 0xe00ff003
Debug: 36 345 target.c:960 target_read_u32(): address: 0xe000ed00, value: 0x410fc231
Debug: 37 346 cortex_m3.c:1300 cortex_m3_init_target(): CORTEX-M3 processor detected
Debug: 38 346 cortex_m3.c:1301 cortex_m3_init_target(): cpuid: 0x410fc231
Debug: 39 353 target.c:960 target_read_u32(): address: 0xe000e004, value: 0x00000000
Debug: 40 356 target.c:960 target_read_u32(): address: 0xe000e100, value: 0x00004000
Debug: 41 356 cortex_m3.c:1309 cortex_m3_init_target(): interrupt enable[0] = 0x00004000
Debug: 42 359 target.c:960 target_read_u32(): address: 0xe0002000, value: 0x00000260
Debug: 43 359 cortex_m3.c:1324 cortex_m3_init_target(): FPB fpcr 0x260, numcode 6, numlit 2
Debug: 44 362 target.c:960 target_read_u32(): address: 0xe0001000, value: 0x40000000
Debug: 45 362 openocd.c:118 main(): target init complete
Debug: 46 362 openocd.c:122 main(): flash init complete
Debug: 47 362 openocd.c:126 main(): NAND init complete
Debug: 48 362 openocd.c:130 main(): pld init complete
Debug: 49 363 gdb_server.c:1965 gdb_init(): gdb service for target cortex_m3 at port 3333
Debug: 50 363 ft2232.c:256 ft2232_speed(): 86 0a 00
Debug: 51 364 cortex_m3.c:708 cortex_m3_assert_reset(): target->state: unknown
Debug: 52 364 jtag.c:937 jtag_add_reset(): SRST line asserted
Debug: 53 364 jtag.c:948 jtag_add_reset(): JTAG reset with tms instead of TRST
Debug: 54 364 jtag.c:305 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 55 364 jtag.c:1235 jtag_reset_callback(): -
Debug: 56 364 jtag.c:305 jtag_call_event_callbacks(): jtag event: JTAG controller reset(tms or TRST)
Debug: 57 364 jtag.c:1235 jtag_reset_callback(): -
Debug: 58 364 jtag.c:937 jtag_add_reset(): SRST line asserted
Debug: 59 364 jtag.c:969 jtag_add_reset(): Now in TAP_TLR - Test-Logic-Reset(either due to TRST line asserted or tms reset)
Debug: 60 433 cortex_m3.c:786 cortex_m3_deassert_reset(): target->state: reset
Debug: 61 433 jtag.c:941 jtag_add_reset(): SRST line released
Debug: 62 433 jtag.c:969 jtag_add_reset(): Now in TAP_TLR - Test-Logic-Reset(either due to TRST line asserted or tms reset)
Debug: 63 939 cortex_swjdp.c:208 swjdp_transaction_endcheck(): swjdp: CTRL/STAT error 0x20
Debug: 64 939 cortex_swjdp.c:945 ahbap_debugport_init():
Debug: 65 945 cortex_swjdp.c:986 ahbap_debugport_init(): AHB-AP ID Register 0x14770011, Debug ROM Address 0xe00ff003
Error: 66 945 target.c:1362 handle_target(): couldn’t poll target(-107). It’s due for a reset.
Debug: 67 952 cortex_m3.c:420 cortex_m3_poll(): dcb_dhcsr 0x1010000, nvic_dfsr 0x0, target->state: unknown
Debug: 69 1461 cortex_m3.c:420 cortex_m3_poll(): dcb_dhcsr 0x1010000, nvic_dfsr 0x0, target->state: unknown
Debug: 70 1461 cortex_m3.c:431 cortex_m3_halt(): target->state: unknown
Warning: 71 1461 cortex_m3.c:441 cortex_m3_halt(): target was in unknown state when halt was requested
Debug: 72 1469 cortex_m3.c:420 cortex_m3_poll(): dcb_dhcsr 0x1030003, nvic_dfsr 0x1, target->state: halted
Debug: 73 1469 ft2232.c:256 ft2232_speed(): 86 0a 00
Debug: 74 1470 openocd.c:142 main(): target init reset complete