Hello,

I am trying to work with my i.MX31 board and openocd. I have a thread
about it on the forum
(http://forum.sparkfun.com/viewtopic.php?p=46139#46139), but I try to
find some information on the list to progress quicker. If this is not
appropriate, just tell me.

I get the following messages (I have put the full log so that you can
see my mx31.cfg config file that is not by default in the source
code):

Starting program: /home/valentin/openocd/trunk/src/openocd -f
target/interface/jtagkey.cfg -f ../../mx31.cfg -c init -c reset -d 1
Open On-Chip Debugger 1.0 (2008-07-01-23:31) svn:737
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Debug:   6 1 command.c:438 command_run_line_internal_op(): script
target/interface/jtagkey.cfg
Debug:   8 1 command.c:438 command_run_line_internal_op(): script
target/interface/jtagkey.cfg
Debug:   9 1 configuration.c:85 find_file(): found target/interface/jtagkey.cfg
Debug:   11 1 command.c:438 command_run_line_internal_op(): interface ft2232
Debug:   13 1 command.c:438 command_run_line_internal_op(): interface ft2232
Debug:   15 1 command.c:438 command_run_line_internal_op():
ft2232_device_desc "Amontec JTAGkey"
Debug:   17 1 command.c:438 command_run_line_internal_op():
ft2232_device_desc "Amontec JTAGkey"
Debug:   19 1 command.c:438 command_run_line_internal_op():
ft2232_layout jtagkey
Debug:   21 1 command.c:438 command_run_line_internal_op():
ft2232_layout jtagkey
Debug:   23 1 command.c:438 command_run_line_internal_op():
ft2232_vid_pid 0x0403 0xcff8
Debug:   25 1 command.c:438 command_run_line_internal_op():
ft2232_vid_pid 0x0403 0xcff8
Debug:   27 1 command.c:438 command_run_line_internal_op(): script
../../mx31.cfg
Debug:   29 1 command.c:438 command_run_line_internal_op(): script
../../mx31.cfg
Debug:   30 1 configuration.c:85 find_file(): found ../../mx31.cfg
Debug:   32 1 command.c:438 command_run_line_internal_op():
reset_config trst_and_srst
Debug:   34 1 command.c:438 command_run_line_internal_op():
reset_config trst_and_srst
Debug:   36 1 command.c:438 command_run_line_internal_op(): jtag_speed 10
Debug:   38 1 command.c:438 command_run_line_internal_op(): jtag_speed 10
Debug:   39 1 jtag.c:1863 handle_jtag_speed_command(): handle jtag speed
Info:    40 1 options.c:50 configuration_output_handler(): jtag_speed: 10, 10
Debug:   42 1 command.c:438 command_run_line_internal_op():
jtag_device 4 0x1 0x0 0xe
Debug:   44 1 command.c:438 command_run_line_internal_op():
jtag_device 4 0x1 0x0 0xe
Debug:   46 1 command.c:438 command_run_line_internal_op():
jtag_device 5 0x1 0x1f 0x1e
Debug:   48 1 command.c:438 command_run_line_internal_op():
jtag_device 5 0x1 0x1f 0x1e
Debug:   50 1 command.c:438 command_run_line_internal_op():
jtag_device 4 0x0 0x0 0xe
Debug:   52 1 command.c:438 command_run_line_internal_op():
jtag_device 4 0x0 0x0 0xe
Debug:   54 2 command.c:438 command_run_line_internal_op():
jtag_device 5 0x1 0x0 0x1e
Debug:   56 2 command.c:438 command_run_line_internal_op():
jtag_device 5 0x1 0x0 0x1e
Debug:   58 2 command.c:438 command_run_line_internal_op(): target
arm11 little reset_halt 1
Debug:   60 2 command.c:438 command_run_line_internal_op(): target
arm11 little reset_halt 1
Debug:   62 2 command.c:438 command_run_line_internal_op():
run_and_halt_time 0 0
Debug:   64 2 command.c:438 command_run_line_internal_op():
run_and_halt_time 0 0
Debug:   66 2 command.c:438 command_run_line_internal_op(): init
Debug:   68 2 command.c:438 command_run_line_internal_op(): init
Debug:   69 2 jtag.c:326 jtag_call_event_callbacks(): jtag event: JTAG
controller reset (TLR or TRST)
Debug:   70 2 jtag.c:1295 jtag_reset_callback(): -
Debug:   71 2 jtag.c:1295 jtag_reset_callback(): -
Debug:   72 2 jtag.c:1295 jtag_reset_callback(): -
Debug:   73 2 jtag.c:1295 jtag_reset_callback(): -
Error:   74 2 jtag.c:1266 interface_jtag_execute_queue(): No JTAG
interface configured yet. Issue 'init' command in startup scripts
before communicating with targets.
Error:   75 2 arm11.c:1412 arm11_init_target(): 'target arm11' expects
IDCODE 0x*7B*7****

Program exited with code 0377.

I have tried to debug it, and the main problem I think is that the
jtag_interface_t *jtag form jtag.c:240 remains NULL after my
configuration, so when it tries to execute the "commands" in the queue
for arm11 verification, it fails because there is no interface. But
unfortunately, I was not able to find in the code where this jtag
variable could be assigned to an interface.

I think this has something to do with my configuration files, because
I have exactly the same behavior with my probe unplugged to the
computer.

Thank you for your help

Regards,

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

Reply via email to