Great, I got that working.
I haven't been able to figure out what the following parameters of a tap
are: irlen, ircapture and irmask.
What does "ir" stand for?

I'm getting the following error:


Open On-Chip Debugger 0.5.0-dev-00734-gaaf145c (2011-02-02-13:14)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
10 kHz
srst_only separate srst_gates_jtag srst_open_drain
Warn : dsp568013.cpu: nonstandard IR mask
Info : Signalyzer: EM-ARM-JTAG (ARM JTAG) detected. (HW:  0).
Info : max TCK change to: 30000 kHz
Info : clock speed 10 kHz
Info : trst: 0, srst: 0, high_output: 0x12, high_direction: 0x1f
Info : JTAG tap: dsp568013.cpu tap/device found: 0x01f2401d (mfg: 0x00e,
part: 0x1f24, ver: 0x0)
Error: IR capture error at bit 4, saw 0x01 not 0x...3
Warn : Bypassing JTAG setup events due to errors


the debug output is:

./openocd -d -f ~/rrosa/56f80xx/openocd-cfg/openocd.cfg
> Open On-Chip Debugger 0.5.0-dev-00734-gaaf145c (2011-02-02-13:14)
> Licensed under GNU GPL v2
> For bug reports, read
> http://openocd.berlios.de/doc/doxygen/bugs.html
> User : 11 4 command.c:557 command_print(): debug_level: 3
> Debug: 12 4 configuration.c:45 add_script_search_dir(): adding
> /home/rrosa/.openocd
> Debug: 13 4 configuration.c:45 add_script_search_dir(): adding
> /usr/local/share/openocd/site
> Debug: 14 4 configuration.c:45 add_script_search_dir(): adding
> /usr/local/share/openocd/scripts
> Debug: 15 4 configuration.c:87 find_file(): found
> /home/rrosa/rrosa/56f80xx/openocd-cfg/openocd.cfg
> Debug: 16 4 configuration.c:87 find_file(): found
> /usr/local/share/openocd/scripts/interface/signalyzer-h2.cfg
> Debug: 17 5 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_interface ft2232
> Debug: 18 5 command.c:151 script_debug(): command - interface ocd_interface
> ft2232
> Debug: 20 5 command.c:364 register_command_handler(): registering
> 'ocd_ft2232_device_desc'...
> Debug: 21 5 command.c:364 register_command_handler(): registering
> 'ocd_ft2232_serial'...
> Debug: 22 5 command.c:364 register_command_handler(): registering
> 'ocd_ft2232_layout'...
> Debug: 23 5 command.c:364 register_command_handler(): registering
> 'ocd_ft2232_vid_pid'...
> Debug: 24 5 command.c:364 register_command_handler(): registering
> 'ocd_ft2232_latency'...
> Info : 25 5 transport.c:123 allow_transports(): only one transport option;
> autoselect 'jtag'
> Debug: 26 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag_flush_queue_sleep'...
> Debug: 27 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag_rclk'...
> Debug: 28 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag_ntrst_delay'...
> Debug: 29 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag_ntrst_assert_width'...
> Debug: 30 5 command.c:364 register_command_handler(): registering
> 'ocd_scan_chain'...
> Debug: 31 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag_reset'...
> Debug: 32 5 command.c:364 register_command_handler(): registering
> 'ocd_runtest'...
> Debug: 33 5 command.c:364 register_command_handler(): registering
> 'ocd_irscan'...
> Debug: 34 5 command.c:364 register_command_handler(): registering
> 'ocd_verify_ircapture'...
> Debug: 35 5 command.c:364 register_command_handler(): registering
> 'ocd_verify_jtag'...
> Debug: 36 5 command.c:364 register_command_handler(): registering
> 'ocd_tms_sequence'...
> Debug: 37 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 38 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 39 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 40 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 41 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 42 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 43 5 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 44 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 45 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 46 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 47 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 48 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 49 6 command.c:364 register_command_handler(): registering
> 'ocd_jtag'...
> Debug: 50 6 command.c:364 register_command_handler(): registering
> 'ocd_svf'...
> Debug: 51 6 command.c:364 register_command_handler(): registering
> 'ocd_xsvf'...
> Debug: 52 6 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_ft2232_device_desc Signalyzer H2
> Debug: 53 6 command.c:151 script_debug(): command - ft2232_device_desc
> ocd_ft2232_device_desc Signalyzer H2
> Debug: 55 6 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_ft2232_layout signalyzer-h
> Debug: 56 6 command.c:151 script_debug(): command - ft2232_layout
> ocd_ft2232_layout signalyzer-h
> Debug: 58 6 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_ft2232_vid_pid 0x0403 0xbca2
> Debug: 59 6 command.c:151 script_debug(): command - ft2232_vid_pid
> ocd_ft2232_vid_pid 0x0403 0xbca2
> Debug: 61 6 configuration.c:87 find_file(): found
> /usr/local/share/openocd/scripts/target/dsp568013.cfg
> Debug: 62 7 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_adapter_khz 10
> Debug: 63 7 command.c:151 script_debug(): command - adapter_khz
> ocd_adapter_khz 10
> Debug: 65 7 core.c:1621 jtag_config_khz(): handle jtag khz
> Debug: 66 7 core.c:1584 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 67 7 core.c:1584 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> User : 68 7 command.c:557 command_print(): 10 kHz
> Debug: 69 7 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_reset_config srst_only
> Debug: 70 7 command.c:151 script_debug(): command - reset_config
> ocd_reset_config srst_only
> User : 72 7 command.c:557 command_print(): srst_only separate
> srst_gates_jtag srst_open_drain
> Debug: 73 7 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_jtag newtap dsp568013 cpu -irlen 4 -ircapture 1 -irmask 0x01
> -expected-id 0x01f2401d
> Debug: 74 7 command.c:151 script_debug(): command - ocd_jtag ocd_jtag
> newtap dsp568013 cpu -irlen 4 -ircapture 1 -irmask 0x01 -expected-id
> 0x01f2401d
> Debug: 75 7 tcl.c:573 jim_newtap_cmd(): Creating New Tap, Chip: dsp568013,
> Tap: cpu, Dotted: dsp568013.cpu, 8 params
> Debug: 76 7 tcl.c:590 jim_newtap_cmd(): Processing option: -irlen
> Debug: 77 7 tcl.c:590 jim_newtap_cmd(): Processing option: -ircapture
> Debug: 78 7 tcl.c:590 jim_newtap_cmd(): Processing option: -irmask
> Warn : 79 7 tcl.c:507 jim_newtap_ir_param(): dsp568013.cpu: nonstandard IR
> mask
> Debug: 80 7 tcl.c:590 jim_newtap_cmd(): Processing option: -expected-id
> Debug: 81 7 core.c:1330 jtag_tap_init(): Created Tap: dsp568013.cpu @ abs
> position 0, irlen 4, capture: 0x1 mask: 0x1
> Debug: 82 8 command.c:151 script_debug(): command - ocd_command ocd_command
> type ocd_target create dsp568013.cpu dsp5680xx -endian big -chain-position
> dsp568013.cpu
> Debug: 83 8 command.c:151 script_debug(): command - ocd_target ocd_target
> create dsp568013.cpu dsp5680xx -endian big -chain-position dsp568013.cpu
> Debug: 84 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 85 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 86 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 87 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 88 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 89 8 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 90 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 91 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 92 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 93 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 94 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 95 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 96 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 97 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 98 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 99 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 100 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 101 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 102 9 command.c:364 register_command_handler(): registering
> 'ocd_dsp568013.cpu'...
> Debug: 103 9 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_dsp568013.cpu configure -work-area-virt 0
> Debug: 104 9 command.c:151 script_debug(): command - ocd_dsp568013.cpu
> ocd_dsp568013.cpu configure -work-area-virt 0
> Debug: 105 9 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_telnet_port 4444
> Debug: 106 9 command.c:151 script_debug(): command - telnet_port
> ocd_telnet_port 4444
> Debug: 108 9 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_gdb_port 3333
> Debug: 109 9 command.c:151 script_debug(): command - gdb_port ocd_gdb_port
> 3333
> Debug: 111 10 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_init
> Debug: 112 10 command.c:151 script_debug(): command - init ocd_init
> Debug: 114 10 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_target init
> Debug: 115 10 command.c:151 script_debug(): command - ocd_target ocd_target
> init
> Debug: 117 10 target.c:895 handle_target_init_command(): Initializing
> targets...
> Debug: 118 10 dsp5680xx.c:424 dsp5680xx_init_target():
> dsp5680xx_init_target
> Debug: 119 10 command.c:364 register_command_handler(): registering
> 'ocd_target_request'...
> Debug: 120 10 command.c:364 register_command_handler(): registering
> 'ocd_trace'...
> Debug: 121 10 command.c:364 register_command_handler(): registering
> 'ocd_trace'...
> Debug: 122 10 command.c:364 register_command_handler(): registering
> 'ocd_fast_load_image'...
> Debug: 123 10 command.c:364 register_command_handler(): registering
> 'ocd_fast_load'...
> Debug: 124 10 command.c:364 register_command_handler(): registering
> 'ocd_profile'...
> Debug: 125 10 command.c:364 register_command_handler(): registering
> 'ocd_virt2phys'...
> Debug: 126 10 command.c:364 register_command_handler(): registering
> 'ocd_reg'...
> Debug: 127 10 command.c:364 register_command_handler(): registering
> 'ocd_poll'...
> Debug: 128 10 command.c:364 register_command_handler(): registering
> 'ocd_wait_halt'...
> Debug: 129 10 command.c:364 register_command_handler(): registering
> 'ocd_halt'...
> Debug: 130 10 command.c:364 register_command_handler(): registering
> 'ocd_resume'...
> Debug: 131 10 command.c:364 register_command_handler(): registering
> 'ocd_reset'...
> Debug: 132 10 command.c:364 register_command_handler(): registering
> 'ocd_soft_reset_halt'...
> Debug: 133 10 command.c:364 register_command_handler(): registering
> 'ocd_step'...
> Debug: 134 11 command.c:364 register_command_handler(): registering
> 'ocd_mdw'...
> Debug: 135 11 command.c:364 register_command_handler(): registering
> 'ocd_mdh'...
> Debug: 136 11 command.c:364 register_command_handler(): registering
> 'ocd_mdb'...
> Debug: 137 11 command.c:364 register_command_handler(): registering
> 'ocd_mww'...
> Debug: 138 11 command.c:364 register_command_handler(): registering
> 'ocd_mwh'...
> Debug: 139 11 command.c:364 register_command_handler(): registering
> 'ocd_mwb'...
> Debug: 140 11 command.c:364 register_command_handler(): registering
> 'ocd_bp'...
> Debug: 141 11 command.c:364 register_command_handler(): registering
> 'ocd_rbp'...
> Debug: 142 11 command.c:364 register_command_handler(): registering
> 'ocd_wp'...
> Debug: 143 11 command.c:364 register_command_handler(): registering
> 'ocd_rwp'...
> Debug: 144 11 command.c:364 register_command_handler(): registering
> 'ocd_load_image'...
> Debug: 145 11 command.c:364 register_command_handler(): registering
> 'ocd_dump_image'...
> Debug: 146 11 command.c:364 register_command_handler(): registering
> 'ocd_verify_image'...
> Debug: 147 11 command.c:364 register_command_handler(): registering
> 'ocd_test_image'...
> Debug: 148 11 command.c:364 register_command_handler(): registering
> 'ocd_reset_nag'...
> Debug: 149 11 ft2232.c:2379 ft2232_init(): ft2232 interface using shortest
> path jtag state transitions
> Debug: 150 11 ft2232.c:2292 ft2232_init_libftdi(): 'ft2232' interface using
> libftdi with 'signalyzer-h' layout (0403:bca2)
> Debug: 151 224 ft2232.c:2339 ft2232_init_libftdi(): current latency timer:
> 2
> Debug: 152 224 ft2232.c:2350 ft2232_init_libftdi(): FTDI chip type: 4
> "2232H"
> Info : 153 224 ft2232.c:4074 signalyzer_h_init(): Signalyzer: EM-ARM-JTAG
> (ARM JTAG) detected. (HW:  0).
> Info : 154 224 ft2232.c:635 ft2232h_ft4232h_clk_divide_by_5(): max TCK
> change to: 30000 kHz
> Debug: 155 224 core.c:1584 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 156 224 core.c:1588 adapter_khz_to_speed(): have interface set up
> Debug: 157 224 ft2232.c:603 ft2232h_ft4232h_adaptive_clocking(): 97
> Debug: 158 225 ft2232.c:664 ft2232_speed(): 86 b7 0b
> Debug: 159 225 core.c:1584 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 160 225 core.c:1588 adapter_khz_to_speed(): have interface set up
> Debug: 161 225 core.c:1584 adapter_khz_to_speed(): convert khz to interface
> specific speed value
> Debug: 162 225 core.c:1588 adapter_khz_to_speed(): have interface set up
> Info : 163 225 core.c:1403 adapter_init(): clock speed 10 kHz
> Debug: 164 225 openocd.c:137 handle_init_command(): Debug Adapter init
> complete
> Debug: 165 225 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_transport init
> Debug: 166 225 command.c:151 script_debug(): command - ocd_transport
> ocd_transport init
> Debug: 168 225 transport.c:255 handle_transport_init():
> handle_transport_init
> Info : 169 226 ft2232.c:4389 signalyzer_h_reset(): trst: 0, srst: 0,
> high_output: 0x12, high_direction: 0x1f
> Debug: 170 226 core.c:713 jtag_add_reset(): SRST line released
> Debug: 171 226 core.c:737 jtag_add_reset(): TRST line released
> Debug: 172 226 core.c:329 jtag_call_event_callbacks(): jtag event: TAP
> reset
> Debug: 173 226 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_jtag arp_init
> Debug: 174 226 command.c:151 script_debug(): command - ocd_jtag ocd_jtag
> arp_init
> Debug: 175 226 core.c:1417 jtag_init_inner(): Init JTAG chain
> Debug: 176 226 core.c:329 jtag_call_event_callbacks(): jtag event: TAP
> reset
> Debug: 177 226 core.c:1048 jtag_examine_chain(): DR scan interrogation for
> IDCODE/BYPASS
> Debug: 178 226 core.c:329 jtag_call_event_callbacks(): jtag event: TAP
> reset
> Info : 179 293 core.c:948 jtag_examine_chain_display(): JTAG tap:
> dsp568013.cpu tap/device found: 0x01f2401d (mfg: 0x00e, part: 0x1f24, ver:
> 0x0)
> Debug: 180 293 core.c:1212 jtag_validate_ircapture(): IR capture validation
> scan
> Debug: 181 295 core.c:1273 jtag_validate_ircapture(): dsp568013.cpu: IR
> capture 0x01
> Error: 182 295 core.c:1284 jtag_validate_ircapture(): IR capture error at
> bit 4, saw 0x01 not 0x...3
> Debug: 183 295 core.c:329 jtag_call_event_callbacks(): jtag event: TAP
> reset
> Warn : 184 295 core.c:1485 jtag_init_inner(): Bypassing JTAG setup events
> due to errors
> Debug: 185 295 openocd.c:150 handle_init_command(): Examining targets...
> Debug: 186 295 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_flash init
> Debug: 187 295 command.c:151 script_debug(): command - ocd_flash ocd_flash
> init
> Debug: 189 301 tcl.c:912 handle_flash_init_command(): Initializing flash
> devices...
> Debug: 190 301 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_mflash init
> Debug: 191 301 command.c:151 script_debug(): command - ocd_mflash
> ocd_mflash init
> Debug: 193 307 mflash.c:1331 handle_mflash_init_command(): Initializing
> mflash devices...
> Debug: 194 307 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_nand init
> Debug: 195 307 command.c:151 script_debug(): command - ocd_nand ocd_nand
> init
> Debug: 197 313 tcl.c:521 handle_nand_init_command(): Initializing NAND
> devices...
> Debug: 198 313 command.c:151 script_debug(): command - ocd_command
> ocd_command type ocd_pld init
> Debug: 199 313 command.c:151 script_debug(): command - ocd_pld ocd_pld init
> Debug: 201 319 pld.c:232 handle_pld_init_command(): Initializing PLDs...


Any ideas?

Thanks!



On Wed, Feb 2, 2011 at 7:33 PM, Aaron Carroll <[email protected]> wrote:

> On 3 February 2011 13:39, Rodrigo Rosa <[email protected]> wrote:
> > Hello,
> > I'm trying to add support for a freescale 568013.
> > I've modified the files  dsp563xx.* to adapt them to the 568013.
> > Now I have  dsp5680xx.h, dsp5680xx.c, dsp5680xx_once.h
> and dsp5680xx_once.c.
> > What files do I have to modify in order to be able to compile openocd
> with
> > the new stuff?
>
> Hi,
>
> Look towards the top of src/target/target.c, specifically the
> "target_types" array.
>
>
>        -- Aaron
>



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

Reply via email to