Hello all,

I have been using the developer version of openocd (checkout out on August
12th ) for testing with the cortex-a5 processors from atmel which is
sama5d3. I am using a ft2232 interface with jtagkey layout.

The connection phase is fine but halting the processor is giving some
issues.

I found out that there is a branch available with few modifications for
sama5d3 series. It would be great if some one could let me know the branch
URL.

*I am copying debug log so that some one can find out if there is anything
wrong *

*Debug: 200 14 ft2232.c:2346 ft2232_init(): ft2232 interface using shortest
path jtag state transitions^M*
*Debug: 201 14 ft2232.c:2233 ft2232_init_libftdi(): 'ft2232' interface
using libftdi with 'jtagkey' layout (0403:cff8)^M*
*Debug: 202 251 ft2232.c:2272 ft2232_init_libftdi(): current latency timer:
2^M*
*Debug: 203 252 ft2232.c:2283 ft2232_init_libftdi(): FTDI chip type: 2
"2232C"^M*
*Debug: 204 252 ft2232.c:2308 ft2232_set_data_bits_low_byte(): 80 08 1b^M*
*Debug: 205 253 ft2232.c:2327 ft2232_set_data_bits_high_byte(): 82 09 0f^M*
*Debug: 206 257 core.c:1613 adapter_khz_to_speed(): convert khz to
interface specific speed value^M*
*Debug: 207 257 core.c:1616 adapter_khz_to_speed(): have interface set up^M*
*Debug: 208 257 ft2232.c:684 ft2232_speed(): 86 af 04^M*
*Debug: 209 258 core.c:1613 adapter_khz_to_speed(): convert khz to
interface specific speed value^M*
*Debug: 210 258 core.c:1616 adapter_khz_to_speed(): have interface set up^M*
*Info : 211 258 core.c:1402 adapter_init(): clock speed 5 kHz^M*
*Debug: 212 258 openocd.c:132 handle_init_command(): Debug Adapter init
complete^M*
*Debug: 213 258 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_transport init^M*
*Debug: 214 258 command.c:145 script_debug(): command - ocd_transport
ocd_transport init^M*
*Debug: 216 258 transport.c:240 handle_transport_init():
handle_transport_init^M*
*Debug: 217 259 ft2232.c:1403 jtagkey_reset(): trst: 0, srst: 0,
high_output: 0x09, high_direction: 0x0f^M*
*Debug: 218 260 core.c:719 jtag_add_reset(): SRST line released^M*
*Debug: 219 260 core.c:743 jtag_add_reset(): TRST line released^M*
*Debug: 220 260 core.c:323 jtag_call_event_callbacks(): jtag event: TAP
reset^M*
*Debug: 221 464 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_jtag arp_init^M*
*Debug: 222 464 command.c:145 script_debug(): command - ocd_jtag ocd_jtag
arp_init^M*
*Debug: 223 464 core.c:1415 jtag_init_inner(): Init JTAG chain^M*
*Debug: 224 464 core.c:323 jtag_call_event_callbacks(): jtag event: TAP
reset^M*
*Debug: 225 466 core.c:1048 jtag_examine_chain(): DR scan interrogation for
IDCODE/BYPASS^M*
*Debug: 226 466 core.c:323 jtag_call_event_callbacks(): jtag event: TAP
reset^M*
*Info : 227 597 core.c:951 jtag_examine_chain_display(): JTAG tap:
sama5d31.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver:
0x4)^M*
*Debug: 228 597 core.c:1208 jtag_validate_ircapture(): IR capture
validation scan^M*
*Debug: 229 601 core.c:1265 jtag_validate_ircapture(): sama5d31.cpu: IR
capture 0x01^M*
*Debug: 230 601 openocd.c:145 handle_init_command(): Examining targets...^M*
*Debug: 231 601 target.c:1352 target_call_event_callbacks(): target event
21 (examine-start)^M*
*Debug: 232 601 arm_adi_v5.c:1086 ahbap_debugport_init():  ^M*
*Debug: 233 669 arm_adi_v5.c:1048 dap_syssec(): DAP: mdmap_init for idcode:
4ba00477^M*
*Debug: 234 739 arm_adi_v5.c:945 dap_syssec_kinetis_mdmap(): id doesn't
match 00000000 != 0x001C0000^M*
*Debug: 235 785 arm_adi_v5.c:1227 dap_find_ap(): Found APB-AP at AP index:
0 (IDR=0x24770002)^M*
*Debug: 236 12551 arm_adi_v5.c:1237 dap_find_ap(): No AHB-AP found^M*
*Debug: 237 12551 cortex_a.c:2408 cortex_a8_examine_first(): Could not find
AHB-AP - using APB-AP for memory access^M*
*Debug: 238 13043 cortex_a.c:2463 cortex_a8_examine_first(): cpuid =
0x00000000^M*
*Debug: 239 13043 cortex_a.c:2464 cortex_a8_examine_first(): ctypr =
0x00000000^M*
*Debug: 240 13043 cortex_a.c:2465 cortex_a8_examine_first(): ttypr =
0x00000000^M*
*Debug: 241 13043 cortex_a.c:2466 cortex_a8_examine_first(): didr =
0x00010003^M*
*Info : 242 13043 arm_dpm.c:986 arm_dpm_setup(): sama5d31.cpu: hardware has
1 breakpoints, 1 watchpoints^M*
*Debug: 243 13043 cortex_a.c:702 cortex_a8_bpwp_disable(): A8: bpwp
disable, cr 00000140^M*
*Debug: 244 13118 cortex_a.c:702 cortex_a8_bpwp_disable(): A8: bpwp
disable, cr 000001c0^M*
*Debug: 245 13192 cortex_a.c:2490 cortex_a8_examine_first(): Configured 1
hw breakpoints^M*
*Debug: 246 13192 cortex_a.c:173 cortex_a8_init_debug_access():  ^M*
*Debug: 247 13430 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 248 13430 target.c:1352 target_call_event_callbacks(): target event
22 (examine-end)^M*
*Debug: 249 13430 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_flash init^M*
*Debug: 250 13430 command.c:145 script_debug(): command - ocd_flash
ocd_flash init^M*
*Debug: 251 13431 log.c:422 keep_alive(): keep_alive() was not invoked in
the 1000ms timelimit (13430). This may cause trouble with GDB connections.^M
*
*Debug: 253 13484 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 255 13484 tcl.c:847 handle_flash_init_command(): Initializing flash
devices...^M*
*Debug: 256 13484 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_mflash init^M*
*Debug: 257 13484 command.c:145 script_debug(): command - ocd_mflash
ocd_mflash init^M*
*Debug: 258 13538 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 260 13538 mflash.c:1379 handle_mflash_init_command(): Initializing
mflash devices...^M*
*Debug: 261 13538 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_nand init^M*
*Debug: 262 13538 command.c:145 script_debug(): command - ocd_nand ocd_nand
init^M*
*Debug: 263 13592 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 265 13592 tcl.c:497 handle_nand_init_command(): Initializing NAND
devices...^M*
*Debug: 266 13592 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_pld init^M*
*Debug: 267 13592 command.c:145 script_debug(): command - ocd_pld ocd_pld
init^M*
*Debug: 268 13646 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 270 13646 pld.c:207 handle_pld_init_command(): Initializing
PLDs...^M*
*Debug: 271 13646 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_init^M*
*Debug: 272 13647 command.c:145 script_debug(): command - init ocd_init^M*
*Debug: 273 13702 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 275 13858 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 276 14014 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 277 14170 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*Debug: 278 14326 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000^M*
*
*
*
*
*Debug output when halt is issued*
*
*
*Debug: 310 19097 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 311 19251 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 312 19405 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 313 19559 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 314 19713 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 315 19773 command.c:145 script_debug(): command - ocd_command
ocd_command type ocd_halt*
*Debug: 316 19774 command.c:145 script_debug(): command - halt ocd_halt*
*Debug: 317 19827 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 319 19827 target.c:2530 handle_halt_command(): -*
*Error: 320 21055 cortex_a.c:890 cortex_a8_halt(): Timeout waiting for halt*
*Debug: 321 21056 command.c:631 run_command(): Command failed with error
code -4*
*User : 322 21056 command.c:669 command_run_line(): in procedure 'halt'*
*Debug: 323 21057 log.c:422 keep_alive(): keep_alive() was not invoked in
the 1000ms timelimit (1344). This may cause trouble with GDB connections.*
*Debug: 325 21111 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 326 21265 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 327 21419 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 328 21575 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 329 21731 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 330 21887 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*
*Debug: 331 22043 cortex_a.c:845 cortex_a8_poll(): Unknown target state
dscr = 0x00000000*

openocd.cfg
*
*
interface ft2232
ft2232_device_desc "Amontec JTAGkey"
ft2232_layout jtagkey
ft2232_vid_pid 0x0403 0xcff8
adapter_khz 5

adapter_nsrst_delay 200
jtag_ntrst_delay 0
reset_config trst_and_srst

jtag newtap sama5d31 cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
0x4ba00477

target create sama5d31.cpu cortex_a -endian little -chain-position
sama5d31.cpu -variant cortex_a

init



*
*
Regards,
Vishnu
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to