I can reliably reproduce this one with:
jtag_khz 1000
verify_image my_image.elf
# some prints about too high clock
reset init
# openocd aborts

Open On-Chip Debugger 0.5.0-dev-00620-g1892a2b (2010-11-25-15:32)
...
Error: 654 48021 adi_v5_jtag.c:335 jtagdp_transaction_endcheck():
MEM_AP_CSW 0x23000042, MEM_AP_TAR 0x8008000
User : 655 48023 target.c:1904 handle_target(): Polling target failed,
GDB will be halted. Polling again in 100ms
Debug: 656 48023 target.c:1024 target_call_event_callbacks(): target
event 2 (gdb-halt)
User : 657 48228 target.c:1915 handle_target(): Polling succeeded again
Debug: 658 51139 gdb_server.c:2181 gdb_input_inner(): received packet:
'qRcmd,726573657420696e6974'
Debug: 659 51143 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_reset init
Debug: 660 51143 command.c:156 script_debug(): command - reset ocd_reset init
Debug: 662 51145 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_target names
Debug: 663 51145 command.c:156 script_debug(): command - ocd_target
ocd_target names
Debug: 664 51145 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu invoke-event reset-start
Debug: 665 51145 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu invoke-event reset-start
Debug: 666 51145 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init-reset
Debug: 667 51145 command.c:156 script_debug(): command - ocd_jtag
ocd_jtag arp_init-reset
Debug: 668 51145 core.c:1509 jtag_init_reset(): Initializing with hard
TRST+SRST reset
Debug: 669 51145 core.c:727 jtag_add_reset(): JTAG reset with TLR
instead of TRST
Debug: 670 51145 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 671 51146 core.c:1414 jtag_init_inner(): Init JTAG chain
Debug: 672 51146 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 673 51147 core.c:1049 jtag_examine_chain(): DR scan
interrogation for IDCODE/BYPASS
Debug: 674 51147 core.c:330 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 675 51150 core.c:949 jtag_examine_chain_display(): JTAG tap:
stm32.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: 0xba00, ver:
0x3)
Info : 676 51150 core.c:949 jtag_examine_chain_display(): JTAG tap:
stm32.bs tap/device found: 0x06414041 (mfg: 0x020, part: 0x6414, ver:
0x0)
Debug: 677 51150 core.c:1213 jtag_validate_ircapture(): IR capture
validation scan
Debug: 678 51152 core.c:1274 jtag_validate_ircapture(): stm32.cpu: IR
capture 0x01
Debug: 679 51152 core.c:1274 jtag_validate_ircapture(): stm32.bs: IR
capture 0x01
Debug: 680 51152 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 681 51152 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu cget -chain-position
Debug: 682 51152 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 683 51152 command.c:156 script_debug(): command - ocd_jtag
ocd_jtag tapisenabled stm32.cpu
Debug: 684 51152 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu arp_examine
Debug: 685 51152 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu arp_examine
Debug: 686 51152 arm_adi_v5.c:914 ahbap_debugport_init():
Debug: 687 51154 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu invoke-event reset-assert-pre
Debug: 688 51154 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu invoke-event reset-assert-pre
Debug: 689 51154 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu cget -chain-position
Debug: 690 51154 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu cget -chain-position
Debug: 691 51154 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_jtag tapisenabled stm32.cpu
Debug: 692 51154 command.c:156 script_debug(): command - ocd_jtag
ocd_jtag tapisenabled stm32.cpu
Debug: 693 51154 command.c:156 script_debug(): command - ocd_command
ocd_command type ocd_stm32.cpu arp_reset assert 1
Debug: 694 51154 command.c:156 script_debug(): command - ocd_stm32.cpu
ocd_stm32.cpu arp_reset assert 1
Debug: 695 51155 cortex_m3.c:926 cortex_m3_assert_reset():
target->state: unknown
Debug: 696 51156 adi_v5_jtag.c:274 jtagdp_transaction_endcheck():
jtag-dp: CTRL/STAT error, 0xf0000003
Debug: 697 51156 adi_v5_jtag.c:297 jtagdp_transaction_endcheck():
MEM-AP Cached values: ap_bank 0x10, ap_csw 0xa2000002, ap_tar
0xe000edf0
Error: 698 51156 adi_v5_jtag.c:301 jtagdp_transaction_endcheck():
JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed
Debug: 699 51158 adi_v5_jtag.c:320 jtagdp_transaction_endcheck():
jtag-dp: CTRL/STAT 0xf0000001
Error: 700 51160 adi_v5_jtag.c:335 jtagdp_transaction_endcheck():
MEM_AP_CSW 0x23000042, MEM_AP_TAR 0x8008000
*** glibc detected *** /home/domen/tmp/openocd.git/src/openocd:
munmap_chunk(): invalid pointer: 0x00007fffc463b100 ***


And from core file:

Core was generated by `/home/domen/tmp/openocd.git/src/openocd -d3'.
Program terminated with signal 6, Aborted.
#0  0x00007fd4338bda75 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
        in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) bt
#0  0x00007fd4338bda75 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fd4338c15c0 in *__GI_abort () at abort.c:92
#2  0x00007fd4338f74fb in __libc_message (do_abort=<value optimized
out>, fmt=<value optimized out>) at
../sysdeps/unix/sysv/linux/libc_fatal.c:189
#3  0x00007fd4339015b6 in malloc_printerr (action=3,
str=0x7fd4339d4b78 "munmap_chunk(): invalid pointer", ptr=<value
optimized out>) at malloc.c:6266
#4  0x00000000004b49ea in Jim_Free (interp=0x869050,
scriptObjPtr=<value optimized out>) at jim.c:527
#5  Jim_EvalObj (interp=0x869050, scriptObjPtr=<value optimized out>)
at jim.c:9418
#6  0x00000000004b6ab3 in Jim_Eval_Named (interp=0x869050,
script=<value optimized out>, filename=0x0, lineno=0) at jim.c:9638
#7  0x00000000004248f5 in target_process_reset (cmd=0x7fffc463b290) at
target.c:505
#8  handle_reset_command (cmd=0x7fffc463b290) at target.c:2203
#9  0x000000000042f299 in run_command (interp=0x869050, argc=<value
optimized out>, argv=0x7fffc463b340, c=0x89cb10, capture=<value
optimized out>) at command.c:627
#10 script_command_run (interp=0x869050, argc=<value optimized out>,
argv=0x7fffc463b340, c=0x89cb10, capture=<value optimized out>) at
command.c:227
#11 0x00000000004b4b34 in Jim_EvalObj (interp=0x869050,
scriptObjPtr=<value optimized out>) at jim.c:9394
#12 0x00000000004b5de9 in Jim_EvalCoreCommand (interp=0x869050,
argc=<value optimized out>, argv=<value optimized out>) at jim.c:11551
#13 0x00000000004b4b34 in Jim_EvalObj (interp=0x869050,
scriptObjPtr=<value optimized out>) at jim.c:9394
#14 0x00000000004b80cd in Jim_CatchCoreCommand (interp=<value
optimized out>, argc=1, argv=0x7fffc463b588) at jim.c:12366
#15 0x00000000004b4b34 in Jim_EvalObj (interp=0x869050,
scriptObjPtr=<value optimized out>) at jim.c:9394
#16 0x00000000004b6c8c in Jim_EvalExpression (interp=0x869050,
exprObjPtr=<value optimized out>, exprResultPtrPtr=<value optimized
out>) at jim.c:8227
#17 0x00000000004b7183 in Jim_GetBoolFromExpr (interp=0x302,
exprObjPtr=0x302, boolPtr=0x7fffc463b73c) at jim.c:8269
#18 0x00000000004b729f in Jim_IfCoreCommand (interp=0x869050, argc=5,
argv=0x7fffc463b7c0) at jim.c:10664
#19 0x00000000004b4b34 in Jim_EvalObj (interp=0x869050,
scriptObjPtr=<value optimized out>) at jim.c:9394


config file is rather boring:
interface ft2232
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
source [find target/stm32.cfg]
jtag_khz 100



  Domen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to