Hi guys!

I am trying to use openocd to program a jtag chain that is composed of:

 - lpc1768 (cortex-m3)
 - xc9572XL cpld (xilinx 9500 series)
 - XC2C256 cpld (xilinx coolrunner II)

I am using the next config file:

debug_level 3
source [find interface/vsllink.cfg]
transport select jtag
adapter_khz 100
source [find target/lpc1768.cfg]
jtag newtap cpld1 tap -expected-id 0x49604093 -irlen 8
jtag newtap cpld2 tap -expected-id 0x16d4c093 -irlen 8

I generated the svf file using xilinx impact, adding the three devices to
the chain, specifying an irlen of 4 for the cpu, and 8 for the coolrunner
II cpld.
I took the irlen of the cpu from the lpc1768 config file, and the irlen of
the coolrunner from its bsdl file.

I clicked on output->svf->generate svf file, and then went on "erasing" the
device, and stopping the generation.

What I came up with is the attached svf file. I modified the "FREQUENCY"
command to be slow enough for the lpc1768 to handle (it has 4MHz internal
oscillator, so 666Khz max, I am using 10Khz instead of the generated 1MHz)

I tried to play it with
svf <path_to_file.svf>
I also tried to play using
svf -tap cpld1.tap <path_to_file.svf>, but that gives a segfault.

My debug output is also attached, and here is what I get on the terminal:

akos@fm12bq:~/projects/Xilinx/cpldtest$ telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> svf /home/akos/projects/Xilinx/cpldtest/program.svf
svf processing file: "/home/akos/projects/Xilinx/cpldtest/program.svf"
TRST OFF;
ENDIR IDLE;
ENDDR IDLE;
STATE RESET;
STATE IDLE;
FREQUENCY 1E4 HZ;
10 kHz
TIR 0 ;
HIR 0 ;
TDR 0 ;
HDR 0 ;
TIR 4 TDI (0f) SMASK (0f) ;
HIR 8 TDI (ff) SMASK (ff) ;
HDR 1 TDI (00) SMASK (01) ;
TDR 1 TDI (00) SMASK (01) ;
SIR 8 TDI (fe) SMASK (ff) ;
SDR 32 TDI (00000000) SMASK (ffffffff) TDO (f9604093) MASK (0fffffff) ;
tdo check error at line 22
read = 0x0, want = 0xF2C08126, mask = 0x1FFFFFFE
fail to run command at line 22
tdo check error at line 22
read = 0x0, want = 0xF2C08126, mask = 0x1FFFFFFE

Time used: 0m0s13ms
svf file programmed failed
in procedure 'svf'
> exit
Connection closed by foreign host.




Has anyone done this before? I've no idea what I am doing wrong.

Regards,
  Ákos Vandra
Open On-Chip Debugger 0.6.0-dev (2012-09-30-09:17)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
User : 11 4 command.c:547 command_print(): debug_level: 3
Debug: 12 4 configuration.c:86 find_file(): found tcl/interface/vsllink.cfg
Debug: 13 4 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_interface vsllink
Debug: 14 4 command.c:145 script_debug(): command - interface ocd_interface 
vsllink
Debug: 16 4 command.c:326 command_new(): BUG: command 'vsllink_usb_vid' does 
not have the '.usage' field filled out
Debug: 17 4 command.c:367 register_command_handler(): registering 
'ocd_vsllink_usb_vid'...
Debug: 18 4 command.c:326 command_new(): BUG: command 'vsllink_usb_pid' does 
not have the '.usage' field filled out
Debug: 19 4 command.c:367 register_command_handler(): registering 
'ocd_vsllink_usb_pid'...
Debug: 20 4 command.c:326 command_new(): BUG: command 'vsllink_usb_bulkin' does 
not have the '.usage' field filled out
Debug: 21 4 command.c:367 register_command_handler(): registering 
'ocd_vsllink_usb_bulkin'...
Debug: 22 4 command.c:326 command_new(): BUG: command 'vsllink_usb_bulkout' 
does not have the '.usage' field filled out
Debug: 23 4 command.c:367 register_command_handler(): registering 
'ocd_vsllink_usb_bulkout'...
Debug: 24 4 command.c:326 command_new(): BUG: command 'vsllink_usb_interface' 
does not have the '.usage' field filled out
Debug: 25 5 command.c:367 register_command_handler(): registering 
'ocd_vsllink_usb_interface'...
Debug: 26 5 command.c:326 command_new(): BUG: command 'swd_delay' does not have 
the '.usage' field filled out
Debug: 27 5 command.c:367 register_command_handler(): registering 
'ocd_swd_delay'...
Debug: 28 5 command.c:326 command_new(): BUG: command 'vsllink_mode' does not 
have the '.usage' field filled out
Debug: 29 5 command.c:367 register_command_handler(): registering 
'ocd_vsllink_mode'...
Debug: 30 5 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select jtag
Debug: 31 5 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select jtag
Debug: 32 5 command.c:367 register_command_handler(): registering 
'ocd_swd_trn'...
Debug: 33 5 command.c:367 register_command_handler(): registering 
'ocd_jtag_flush_queue_sleep'...
Debug: 34 5 command.c:367 register_command_handler(): registering 
'ocd_jtag_rclk'...
Debug: 35 5 command.c:367 register_command_handler(): registering 
'ocd_jtag_ntrst_delay'...
Debug: 36 5 command.c:367 register_command_handler(): registering 
'ocd_jtag_ntrst_assert_width'...
Debug: 37 5 command.c:367 register_command_handler(): registering 
'ocd_scan_chain'...
Debug: 38 5 command.c:367 register_command_handler(): registering 
'ocd_jtag_reset'...
Debug: 39 5 command.c:367 register_command_handler(): registering 
'ocd_runtest'...
Debug: 40 5 command.c:367 register_command_handler(): registering 
'ocd_irscan'...
Debug: 41 5 command.c:367 register_command_handler(): registering 
'ocd_verify_ircapture'...
Debug: 42 5 command.c:367 register_command_handler(): registering 
'ocd_verify_jtag'...
Debug: 43 5 command.c:367 register_command_handler(): registering 
'ocd_tms_sequence'...
Debug: 44 5 command.c:367 register_command_handler(): registering 
'ocd_wait_srst_deassert'...
Debug: 45 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 46 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 47 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 48 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 49 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 50 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 51 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 52 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 53 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 54 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 55 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 56 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 57 5 command.c:367 register_command_handler(): registering 'ocd_jtag'...
Debug: 58 5 command.c:367 register_command_handler(): registering 'ocd_svf'...
Debug: 59 5 command.c:367 register_command_handler(): registering 'ocd_xsvf'...
Debug: 60 5 configuration.c:86 find_file(): found tcl/target/lpc1768.cfg
Debug: 61 6 configuration.c:86 find_file(): found tcl/target/swj-dp.tcl
Debug: 62 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_nsrst_delay 200
Debug: 63 6 command.c:145 script_debug(): command - adapter_nsrst_delay 
ocd_adapter_nsrst_delay 200
User : 65 6 command.c:547 command_print(): adapter_nsrst_delay: 200
Debug: 66 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport select
Debug: 67 6 command.c:145 script_debug(): command - ocd_transport ocd_transport 
select
Debug: 68 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag newtap lpc1768 cpu -irlen 4 -expected-id 0x4ba00477
Debug: 69 6 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap 
lpc1768 cpu -irlen 4 -expected-id 0x4ba00477
Debug: 70 6 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: lpc1768, Tap: 
cpu, Dotted: lpc1768.cpu, 4 params
Debug: 71 6 tcl.c:571 jim_newtap_cmd(): Processing option: -irlen
Debug: 72 6 tcl.c:571 jim_newtap_cmd(): Processing option: -expected-id
Debug: 73 6 core.c:1324 jtag_tap_init(): Created Tap: lpc1768.cpu @ abs 
position 0, irlen 4, capture: 0x1 mask: 0x3
Debug: 74 6 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target create lpc1768.cpu cortex_m3 -chain-position lpc1768.cpu
Debug: 75 6 command.c:145 script_debug(): command - ocd_target ocd_target 
create lpc1768.cpu cortex_m3 -chain-position lpc1768.cpu
Debug: 76 6 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 77 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 78 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 79 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 80 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 81 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 82 6 command.c:367 register_command_handler(): registering 'ocd_arm'...
Debug: 83 6 command.c:367 register_command_handler(): registering 'ocd_dap'...
Debug: 84 6 command.c:367 register_command_handler(): registering 'ocd_dap'...
Debug: 85 7 command.c:367 register_command_handler(): registering 'ocd_dap'...
Debug: 86 7 command.c:367 register_command_handler(): registering 'ocd_dap'...
Debug: 87 7 command.c:367 register_command_handler(): registering 'ocd_dap'...
Debug: 88 7 command.c:367 register_command_handler(): registering 
'ocd_cortex_m3'...
Debug: 89 7 command.c:367 register_command_handler(): registering 
'ocd_cortex_m3'...
Debug: 90 7 command.c:367 register_command_handler(): registering 
'ocd_cortex_m3'...
Debug: 91 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 92 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 93 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 94 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 95 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 96 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 97 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 98 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 99 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 100 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 101 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 102 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 103 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 104 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 105 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 106 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 107 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 108 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 109 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 110 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 111 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 112 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 113 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 114 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 115 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 116 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 117 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 118 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 119 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 120 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 121 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 122 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 123 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 124 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 125 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 126 7 command.c:367 register_command_handler(): registering 
'ocd_lpc1768.cpu'...
Debug: 127 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_lpc1768.cpu configure -work-area-phys 0x10000000 -work-area-size 0x8000
Debug: 128 8 command.c:145 script_debug(): command - ocd_lpc1768.cpu 
ocd_lpc1768.cpu configure -work-area-phys 0x10000000 -work-area-size 0x8000
Debug: 129 8 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 130 8 target.c:1611 target_free_all_working_areas_restore(): freeing all 
working areas
Debug: 131 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash bank lpc1768.flash lpc2000 0x0 0x80000 0 0 lpc1768.cpu lpc1700 
4000 calc_checksum
Debug: 132 8 command.c:145 script_debug(): command - ocd_flash ocd_flash bank 
lpc1768.flash lpc2000 0x0 0x80000 0 0 lpc1768.cpu lpc1700 4000 calc_checksum
Debug: 134 8 command.c:367 register_command_handler(): registering 
'ocd_lpc2000'...
Debug: 135 8 tcl.c:780 handle_flash_bank_command(): 'lpc2000' driver usage 
field missing
Debug: 136 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 10
Debug: 137 8 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 10
Debug: 139 8 core.c:1627 jtag_config_khz(): handle jtag khz
Debug: 140 8 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 141 8 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 142 8 command.c:547 command_print(): 10 kHz
Debug: 143 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_lpc1768.cpu configure -event reset-init 
        # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
        # "User Flash Mode" where interrupt vectors are _not_ remapped,
        # and reside in flash instead).
        #
        # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) 
bit description
        # Bit Symbol Value Description Reset
        # value
        # 0 MAP Memory map control. 0
        # 0 Boot mode. A portion of the Boot ROM is mapped to address 0.
        # 1 User mode. The on-chip Flash memory is mapped to address 0.
        # 31:1 - Reserved. The value read from a reserved bit is not defined. NA
        #
        # 
http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user

        mww 0x400FC040 0x01

Debug: 144 8 command.c:145 script_debug(): command - ocd_lpc1768.cpu 
ocd_lpc1768.cpu configure -event reset-init 
        # Do not remap 0x0000-0x0020 to anything but the flash (i.e. select
        # "User Flash Mode" where interrupt vectors are _not_ remapped,
        # and reside in flash instead).
        #
        # See Table 612. Memory Mapping Control register (MEMMAP - 0x400F C040) 
bit description
        # Bit Symbol Value Description Reset
        # value
        # 0 MAP Memory map control. 0
        # 0 Boot mode. A portion of the Boot ROM is mapped to address 0.
        # 1 User mode. The on-chip Flash memory is mapped to address 0.
        # 31:1 - Reserved. The value read from a reserved bit is not defined. NA
        #
        # 
http://ics.nxp.com/support/documents/microcontrollers/?scope=LPC1768&type=user

        mww 0x400FC040 0x01

Debug: 145 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_adapter_khz 100
Debug: 146 8 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 100
Debug: 148 8 core.c:1627 jtag_config_khz(): handle jtag khz
Debug: 149 8 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 150 8 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
User : 151 8 command.c:547 command_print(): 100 kHz
Debug: 152 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag newtap cpld1 tap -expected-id 0x49604093 -irlen 8
Debug: 153 8 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap 
cpld1 tap -expected-id 0x49604093 -irlen 8
Debug: 154 8 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: cpld1, Tap: 
tap, Dotted: cpld1.tap, 4 params
Debug: 155 8 tcl.c:571 jim_newtap_cmd(): Processing option: -expected-id
Debug: 156 8 tcl.c:571 jim_newtap_cmd(): Processing option: -irlen
Debug: 157 8 core.c:1324 jtag_tap_init(): Created Tap: cpld1.tap @ abs position 
0, irlen 8, capture: 0x1 mask: 0x3
Debug: 158 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag newtap cpld2 tap -expected-id 0x16d4c093 -irlen 8
Debug: 159 8 command.c:145 script_debug(): command - ocd_jtag ocd_jtag newtap 
cpld2 tap -expected-id 0x16d4c093 -irlen 8
Debug: 160 8 tcl.c:554 jim_newtap_cmd(): Creating New Tap, Chip: cpld2, Tap: 
tap, Dotted: cpld2.tap, 4 params
Debug: 161 8 tcl.c:571 jim_newtap_cmd(): Processing option: -expected-id
Debug: 162 8 tcl.c:571 jim_newtap_cmd(): Processing option: -irlen
Debug: 163 8 core.c:1324 jtag_tap_init(): Created Tap: cpld2.tap @ abs position 
0, irlen 8, capture: 0x1 mask: 0x3
Debug: 164 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_init
Debug: 165 8 command.c:145 script_debug(): command - init ocd_init
Debug: 167 8 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_target init
Debug: 168 8 command.c:145 script_debug(): command - ocd_target ocd_target init
Debug: 170 8 target.c:1174 handle_target_init_command(): Initializing targets...
Debug: 171 8 command.c:367 register_command_handler(): registering 
'ocd_target_request'...
Debug: 172 8 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 173 8 command.c:367 register_command_handler(): registering 
'ocd_trace'...
Debug: 174 8 command.c:367 register_command_handler(): registering 
'ocd_fast_load_image'...
Debug: 175 8 command.c:367 register_command_handler(): registering 
'ocd_fast_load'...
Debug: 176 8 command.c:367 register_command_handler(): registering 
'ocd_profile'...
Debug: 177 8 command.c:367 register_command_handler(): registering 
'ocd_virt2phys'...
Debug: 178 8 command.c:367 register_command_handler(): registering 'ocd_reg'...
Debug: 179 8 command.c:367 register_command_handler(): registering 'ocd_poll'...
Debug: 180 8 command.c:367 register_command_handler(): registering 
'ocd_wait_halt'...
Debug: 181 8 command.c:367 register_command_handler(): registering 'ocd_halt'...
Debug: 182 8 command.c:367 register_command_handler(): registering 
'ocd_resume'...
Debug: 183 8 command.c:367 register_command_handler(): registering 
'ocd_reset'...
Debug: 184 8 command.c:367 register_command_handler(): registering 
'ocd_soft_reset_halt'...
Debug: 185 8 command.c:367 register_command_handler(): registering 'ocd_step'...
Debug: 186 8 command.c:367 register_command_handler(): registering 'ocd_mdw'...
Debug: 187 8 command.c:367 register_command_handler(): registering 'ocd_mdh'...
Debug: 188 8 command.c:367 register_command_handler(): registering 'ocd_mdb'...
Debug: 189 8 command.c:367 register_command_handler(): registering 'ocd_mww'...
Debug: 190 8 command.c:367 register_command_handler(): registering 'ocd_mwh'...
Debug: 191 8 command.c:367 register_command_handler(): registering 'ocd_mwb'...
Debug: 192 8 command.c:367 register_command_handler(): registering 'ocd_bp'...
Debug: 193 9 command.c:367 register_command_handler(): registering 'ocd_rbp'...
Debug: 194 9 command.c:367 register_command_handler(): registering 'ocd_wp'...
Debug: 195 9 command.c:367 register_command_handler(): registering 'ocd_rwp'...
Debug: 196 9 command.c:367 register_command_handler(): registering 
'ocd_load_image'...
Debug: 197 9 command.c:367 register_command_handler(): registering 
'ocd_dump_image'...
Debug: 198 9 command.c:367 register_command_handler(): registering 
'ocd_verify_image'...
Debug: 199 9 command.c:367 register_command_handler(): registering 
'ocd_test_image'...
Debug: 200 9 command.c:367 register_command_handler(): registering 
'ocd_reset_nag'...
Debug: 201 9 command.c:367 register_command_handler(): registering 'ocd_ps'...
Debug: 202 445 vsllink.c:358 vsllink_init(): vsllink found on 0483:A038
Info : 203 445 versaloon.c:271 versaloon_init(): Versaloon(0x15)by 
Simon(compiled on Jul  8 2011)
Info : 204 445 usbtoxxx.c:256 usbtoxxx_init(): USB_TO_XXX abilities: 
0x0000076E:0x010001EF:0xC0000007
Debug: 205 446 vsllink.c:530 vsllink_reset(): trst: 0, srst: 0
Debug: 206 446 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 207 446 core.c:1597 adapter_khz_to_speed(): have interface set up
Debug: 208 446 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 209 446 core.c:1597 adapter_khz_to_speed(): have interface set up
Info : 210 446 core.c:1401 adapter_init(): clock speed 100 kHz
Debug: 211 446 openocd.c:132 handle_init_command(): Debug Adapter init complete
Debug: 212 446 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_transport init
Debug: 213 446 command.c:145 script_debug(): command - ocd_transport 
ocd_transport init
Debug: 215 446 transport.c:240 handle_transport_init(): handle_transport_init
Debug: 216 446 vsllink.c:530 vsllink_reset(): trst: 0, srst: 0
Debug: 217 447 core.c:721 jtag_add_reset(): SRST line released
Debug: 218 447 core.c:745 jtag_add_reset(): TRST line released
Debug: 219 447 core.c:325 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 221 650 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_jtag arp_init
Debug: 222 650 command.c:145 script_debug(): command - ocd_jtag ocd_jtag 
arp_init
Debug: 223 650 core.c:1414 jtag_init_inner(): Init JTAG chain
Debug: 224 650 core.c:325 jtag_call_event_callbacks(): jtag event: TAP reset
Debug: 225 650 core.c:1050 jtag_examine_chain(): DR scan interrogation for 
IDCODE/BYPASS
Debug: 226 650 core.c:325 jtag_call_event_callbacks(): jtag event: TAP reset
Info : 227 660 core.c:953 jtag_examine_chain_display(): JTAG tap: lpc1768.cpu 
tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
Info : 228 660 core.c:953 jtag_examine_chain_display(): JTAG tap: cpld1.tap 
tap/device found: 0x49604093 (mfg: 0x049, part: 0x9604, ver: 0x4)
Info : 229 660 core.c:953 jtag_examine_chain_display(): JTAG tap: cpld2.tap 
tap/device found: 0x16d4c093 (mfg: 0x049, part: 0x6d4c, ver: 0x1)
Debug: 230 660 core.c:1210 jtag_validate_ircapture(): IR capture validation scan
Debug: 231 661 core.c:1269 jtag_validate_ircapture(): lpc1768.cpu: IR capture 
0x01
Debug: 232 661 core.c:1269 jtag_validate_ircapture(): cpld1.tap: IR capture 0x1
Debug: 233 661 core.c:1269 jtag_validate_ircapture(): cpld2.tap: IR capture 0x5
Debug: 234 661 openocd.c:145 handle_init_command(): Examining targets...
Debug: 235 661 arm_adi_v5.c:1098 ahbap_debugport_init():  
Debug: 236 667 arm_adi_v5.c:1059 dap_syssec(): DAP: mdmap_init for idcode: 
4ba00477
Debug: 237 673 arm_adi_v5.c:956 dap_syssec_kinetis_mdmap(): id doesn't match 
00000000 != 0x001C0000
Debug: 238 678 target.c:1908 target_read_u32(): address: 0xe000ed00, value: 
0x412fc230
Debug: 239 678 cortex_m.c:1788 cortex_m3_examine(): Cortex-M3 r2p0 processor 
detected
Debug: 240 678 cortex_m.c:1789 cortex_m3_examine(): cpuid: 0x412fc230
Debug: 241 683 target.c:1908 target_read_u32(): address: 0xe0002000, value: 
0x00000260
Debug: 242 683 cortex_m.c:1825 cortex_m3_examine(): FPB fpcr 0x260, numcode 6, 
numlit 2
Debug: 243 687 target.c:1908 target_read_u32(): address: 0xe0001000, value: 
0x40000000
Debug: 244 687 cortex_m.c:1749 cortex_m3_dwt_setup(): DWT dwtcr 0x40000000, 
comp 4, watch/trigger
Info : 245 687 cortex_m.c:1834 cortex_m3_examine(): lpc1768.cpu: hardware has 6 
breakpoints, 4 watchpoints
Debug: 246 687 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_flash init
Debug: 247 687 command.c:145 script_debug(): command - ocd_flash ocd_flash init
Debug: 249 694 tcl.c:846 handle_flash_init_command(): Initializing flash 
devices...
Debug: 250 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 251 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 252 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 253 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 254 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 255 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 256 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 257 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 258 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 259 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 260 694 command.c:367 register_command_handler(): registering 
'ocd_flash'...
Debug: 261 694 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_mflash init
Debug: 262 694 command.c:145 script_debug(): command - ocd_mflash ocd_mflash 
init
Debug: 264 698 mflash.c:1378 handle_mflash_init_command(): Initializing mflash 
devices...
Debug: 265 698 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_nand init
Debug: 266 698 command.c:145 script_debug(): command - ocd_nand ocd_nand init
Debug: 268 702 tcl.c:497 handle_nand_init_command(): Initializing NAND 
devices...
Debug: 269 702 command.c:145 script_debug(): command - ocd_command ocd_command 
type ocd_pld init
Debug: 270 702 command.c:145 script_debug(): command - ocd_pld ocd_pld init
Debug: 272 705 pld.c:207 handle_pld_init_command(): Initializing PLDs...
Info : 273 4555 server.c:83 add_connection(): accepting 'telnet' connection 
from 4444
Debug: 274 17437 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_svf /home/akos/projects/Xilinx/cpldtest/program.svf
Debug: 275 17437 command.c:145 script_debug(): command - svf ocd_svf 
/home/akos/projects/Xilinx/cpldtest/program.svf
User : 277 17441 svf.c:359 handle_svf_command(): svf processing file: 
"/home/akos/projects/Xilinx/cpldtest/program.svf"
Debug: 278 17441 core.c:325 jtag_call_event_callbacks(): jtag event: TAP reset
User : 279 17441 svf.c:480 handle_svf_command(): TRST OFF;
Debug: 280 17441 svf.c:1548 svf_run_command():  trst_mode = OFF
User : 281 17441 svf.c:480 handle_svf_command(): ENDIR IDLE;
Debug: 282 17441 svf.c:923 svf_run_command():   IR end_state = RUN/IDLE
User : 283 17441 svf.c:480 handle_svf_command(): ENDDR IDLE;
Debug: 284 17441 svf.c:927 svf_run_command():   DR end_state = RUN/IDLE
User : 285 17441 svf.c:480 handle_svf_command(): STATE RESET;
Debug: 286 17441 svf.c:1509 svf_run_command():  move to RESET by 
svf_add_statemove
Debug: 287 17441 core.c:325 jtag_call_event_callbacks(): jtag event: TAP reset
User : 288 17441 svf.c:480 handle_svf_command(): STATE IDLE;
Debug: 289 17441 svf.c:1509 svf_run_command():  move to RUN/IDLE by 
svf_add_statemove
User : 290 17441 svf.c:480 handle_svf_command(): FREQUENCY 1E4 HZ;
Debug: 291 17442 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_adapter_khz 10
Debug: 292 17442 command.c:145 script_debug(): command - adapter_khz 
ocd_adapter_khz 10
Debug: 294 17445 core.c:1627 jtag_config_khz(): handle jtag khz
Debug: 295 17445 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 296 17445 core.c:1597 adapter_khz_to_speed(): have interface set up
Debug: 297 17446 core.c:1594 adapter_khz_to_speed(): convert khz to interface 
specific speed value
Debug: 298 17446 core.c:1597 adapter_khz_to_speed(): have interface set up
User : 299 17446 command.c:547 command_print(): 10 kHz
Debug: 300 17446 svf.c:956 svf_run_command():   frequency = 10000.000000
User : 301 17446 svf.c:480 handle_svf_command(): TIR 0 ;
Debug: 302 17446 svf.c:1002 svf_run_command():  length = 0
User : 303 17446 svf.c:480 handle_svf_command(): HIR 0 ;
Debug: 304 17446 svf.c:1002 svf_run_command():  length = 0
User : 305 17446 svf.c:480 handle_svf_command(): TDR 0 ;
Debug: 306 17446 svf.c:1002 svf_run_command():  length = 0
User : 307 17446 svf.c:480 handle_svf_command(): HDR 0 ;
Debug: 308 17446 svf.c:1002 svf_run_command():  length = 0
User : 309 17446 svf.c:480 handle_svf_command(): TIR 4 TDI (0f) SMASK (0f) ;
Debug: 310 17446 svf.c:1002 svf_run_command():  length = 4
Debug: 311 17446 svf.c:1039 svf_run_command():  TDI = 0xF
Debug: 312 17446 svf.c:1039 svf_run_command():  SMASK = 0xF
User : 313 17446 svf.c:480 handle_svf_command(): HIR 8 TDI (ff) SMASK (ff) ;
Debug: 314 17446 svf.c:1002 svf_run_command():  length = 8
Debug: 315 17446 svf.c:1039 svf_run_command():  TDI = 0xFF
Debug: 316 17446 svf.c:1039 svf_run_command():  SMASK = 0xFF
User : 317 17446 svf.c:480 handle_svf_command(): HDR 1 TDI (00) SMASK (01) ;
Debug: 318 17446 svf.c:1002 svf_run_command():  length = 1
Debug: 319 17446 svf.c:1039 svf_run_command():  TDI = 0x0
Debug: 320 17446 svf.c:1039 svf_run_command():  SMASK = 0x1
User : 321 17446 svf.c:480 handle_svf_command(): TDR 1 TDI (00) SMASK (01) ;
Debug: 322 17446 svf.c:1002 svf_run_command():  length = 1
Debug: 323 17446 svf.c:1039 svf_run_command():  TDI = 0x0
Debug: 324 17446 svf.c:1039 svf_run_command():  SMASK = 0x1
User : 325 17446 svf.c:480 handle_svf_command(): SIR 8 TDI (fe) SMASK (ff) ;
Debug: 326 17446 svf.c:1002 svf_run_command():  length = 8
Debug: 327 17446 svf.c:1039 svf_run_command():  TDI = 0xFE
Debug: 328 17446 svf.c:1039 svf_run_command():  SMASK = 0xFF
Debug: 329 17449 svf.c:1579 svf_run_command():  TDO read = 0x5011
User : 330 17449 svf.c:480 handle_svf_command(): SDR 32 TDI (00000000) SMASK 
(ffffffff) TDO (f9604093) MASK (0fffffff) ;
Debug: 331 17449 svf.c:1002 svf_run_command():  length = 32
Debug: 332 17449 svf.c:1039 svf_run_command():  TDI = 0x0
Debug: 333 17449 svf.c:1039 svf_run_command():  SMASK = 0xFFFFFFFF
Debug: 334 17450 svf.c:1039 svf_run_command():  TDO = 0xF9604093
Debug: 335 17450 svf.c:1039 svf_run_command():  MASK = 0xFFFFFFF
Error: 336 17454 svf.c:839 svf_check_tdo(): tdo check error at line 22
Error: 337 17454 svf.c:843 svf_check_tdo(): read = 0x0, want = 0xF2C08126, mask 
= 0x1FFFFFFE
Error: 338 17454 svf.c:484 handle_svf_command(): fail to run command at line 22
Error: 339 17454 svf.c:839 svf_check_tdo(): tdo check error at line 22
Error: 340 17454 svf.c:843 svf_check_tdo(): read = 0x0, want = 0xF2C08126, mask 
= 0x1FFFFFFE
User : 341 17454 command.c:547 command_print(): 
Time used: 0m0s13ms 
User : 342 17454 command.c:547 command_print(): svf file programmed failed
Debug: 343 17454 command.c:628 run_command(): Command failed with error code -4
User : 344 17454 command.c:666 command_run_line(): in procedure 'svf'
Debug: 345 21088 command.c:145 script_debug(): command - ocd_command 
ocd_command type ocd_exit
Debug: 346 21088 command.c:145 script_debug(): command - exit ocd_exit
Info : 348 21113 server.c:472 server_loop(): dropped 'telnet' connection

Attachment: program.svf
Description: Binary data

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to