>
> > My old command-line from r717:
> >
> > ./openocd -f interface/olimex-arm-usb-ocd.cfg -f target/sam7x256.cfg -c
> init
> > -c reset
> >
> > This quits. If I leave off the "-c reset", the program stays alive and I
> can
> > telnet to it. This is different than how r717 behaved. I'm not sure why
> it
> > should quit, especially since adding "-c reset" is suggested all over the
> > documentation.
>
> Please post a seperate email w/error message(debug_level 3) here. "quits"
> is
> not sufficient description to work from.


By "quits" I meant that with the "-c reset" in the command line, it doesn't
sit around waiting for a telnet/gdb connection.  Instead it just returns me
to a prompt with not particularly suspicious error.

I've included two log files, one where I run it with the "-c reset" and one
without.

The exact command line was:

openocd -d 3 -l with_reset.txt -f interface/olimex-arm-usb-ocd.cfg -f
target/sam7x256.cfg -c init -c reset

I didn't give as much detail the first time because I thought the "-c reset"
might be deprecated or something.

Jason
Debug:   8 46 configuration.c:88 find_file(): found 
/usr/local/lib/openocd/interface/olimex-arm-usb-ocd.cfg
Debug:   10 46 command.c:79 script_command(): script_command - interface
Debug:   11 46 command.c:96 script_command(): script_command - interface, 
argv[0]=ocd_interface
Debug:   12 46 command.c:96 script_command(): script_command - interface, 
argv[1]=ft2232
Debug:   14 46 command.c:79 script_command(): script_command - 
ft2232_device_desc
Debug:   15 46 command.c:96 script_command(): script_command - 
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug:   16 46 command.c:96 script_command(): script_command - 
ft2232_device_desc, argv[1]=Olimex OpenOCD JTAG A
Debug:   18 46 command.c:79 script_command(): script_command - ft2232_layout
Debug:   19 46 command.c:96 script_command(): script_command - ft2232_layout, 
argv[0]=ocd_ft2232_layout
Debug:   20 46 command.c:96 script_command(): script_command - ft2232_layout, 
argv[1]=olimex-jtag
Debug:   21 46 configuration.c:88 find_file(): found 
/usr/local/lib/openocd/target/sam7x256.cfg
Debug:   23 62 command.c:79 script_command(): script_command - reset_config
Debug:   24 62 command.c:96 script_command(): script_command - reset_config, 
argv[0]=ocd_reset_config
Debug:   25 62 command.c:96 script_command(): script_command - reset_config, 
argv[1]=srst_only
Debug:   26 62 command.c:96 script_command(): script_command - reset_config, 
argv[2]=srst_pulls_trst
Debug:   28 62 command.c:79 script_command(): script_command - jtag_nsrst_delay
Debug:   29 62 command.c:96 script_command(): script_command - 
jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug:   30 62 command.c:96 script_command(): script_command - 
jtag_nsrst_delay, argv[1]=100
Debug:   32 62 command.c:79 script_command(): script_command - jtag_ntrst_delay
Debug:   33 62 command.c:96 script_command(): script_command - 
jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug:   34 62 command.c:96 script_command(): script_command - 
jtag_ntrst_delay, argv[1]=100
Debug:   36 62 command.c:79 script_command(): script_command - jtag_device
Debug:   37 62 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   38 62 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=4
Debug:   39 62 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   40 62 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0xf
Debug:   41 62 command.c:96 script_command(): script_command - jtag_device, 
argv[4]=0xe
Debug:   43 62 command.c:79 script_command(): script_command - target
Debug:   44 62 command.c:96 script_command(): script_command - target, 
argv[0]=ocd_target
Debug:   45 62 command.c:96 script_command(): script_command - target, 
argv[1]=arm7tdmi
Debug:   46 62 command.c:96 script_command(): script_command - target, 
argv[2]=little
Debug:   47 62 command.c:96 script_command(): script_command - target, argv[3]=0
Debug:   48 62 command.c:96 script_command(): script_command - target, 
argv[4]=arm7tdmi
Debug:   50 62 command.c:79 script_command(): script_command - working_area
Debug:   51 62 command.c:96 script_command(): script_command - working_area, 
argv[0]=ocd_working_area
Debug:   52 62 command.c:96 script_command(): script_command - working_area, 
argv[1]=0
Debug:   53 62 command.c:96 script_command(): script_command - working_area, 
argv[2]=0x00200000
Debug:   54 62 command.c:96 script_command(): script_command - working_area, 
argv[3]=0x4000
Debug:   55 62 command.c:96 script_command(): script_command - working_area, 
argv[4]=nobackup
Debug:   57 62 command.c:79 script_command(): script_command - bank
Debug:   58 62 command.c:96 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   59 62 command.c:96 script_command(): script_command - bank, 
argv[1]=at91sam7
Debug:   60 62 command.c:96 script_command(): script_command - bank, argv[2]=0
Debug:   61 62 command.c:96 script_command(): script_command - bank, argv[3]=0
Debug:   62 62 command.c:96 script_command(): script_command - bank, argv[4]=0
Debug:   63 62 command.c:96 script_command(): script_command - bank, argv[5]=0
Debug:   64 62 command.c:96 script_command(): script_command - bank, argv[6]=0
Debug:   66 78 command.c:79 script_command(): script_command - init
Debug:   67 78 command.c:96 script_command(): script_command - init, 
argv[0]=ocd_init
Debug:   68 78 openocd.c:107 handle_init_command(): target init complete
Debug:   69 78 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using 
FTD2XX with 'olimex-jtag' layout (0403:6010)
Debug:   70 78 ft2232.c:1463 ft2232_init_ftd2xx(): current latency timer: 2
Debug:   71 78 ft2232.c:1810 olimex_jtag_init(): 80 08 1b
Debug:   72 78 ft2232.c:1853 olimex_jtag_init(): 82 09 0f
Debug:   73 78 ft2232.c:253 ft2232_speed(): 86 00 00
Debug:   74 93 openocd.c:114 handle_init_command(): jtag interface init complete
Debug:   75 93 jtag.c:1563 jtag_init_inner(): Init JTAG chain
Debug:   76 93 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   77 93 jtag.c:1301 jtag_reset_callback(): -
Debug:   78 93 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   79 93 jtag.c:1301 jtag_reset_callback(): -
Info:    80 93 jtag.c:1418 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f 
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Debug:   81 93 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   82 93 jtag.c:1301 jtag_reset_callback(): -
Debug:   83 93 openocd.c:120 handle_init_command(): jtag init complete
Debug:   84 93 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000000
Debug:   85 93 embeddedice.c:400 embeddedice_write_reg(): 20: 0x00000000
Debug:   86 93 openocd.c:123 handle_init_command(): jtag examine complete
Debug:   87 93 openocd.c:129 handle_init_command(): flash init complete
Debug:   88 93 openocd.c:133 handle_init_command(): NAND init complete
Debug:   89 93 openocd.c:137 handle_init_command(): pld init complete
Warning: 90 93 telnet_server.c:609 telnet_init(): no telnet port specified, 
using default port 4444
Warning: 91 125 gdb_server.c:2053 gdb_init(): no gdb port specified, using 
default port 3333
Debug:   92 125 gdb_server.c:2068 gdb_init(): gdb service for target arm7tdmi 
at port 3333
Warning: 93 125 tcl_server.c:178 tcl_init(): no tcl port specified, using 
default port 6666
Debug:   95 125 command.c:79 script_command(): script_command - init
Debug:   96 125 command.c:96 script_command(): script_command - init, 
argv[0]=ocd_init
Debug:   8 0 configuration.c:88 find_file(): found 
/usr/local/lib/openocd/interface/olimex-arm-usb-ocd.cfg
Debug:   10 0 command.c:79 script_command(): script_command - interface
Debug:   11 0 command.c:96 script_command(): script_command - interface, 
argv[0]=ocd_interface
Debug:   12 0 command.c:96 script_command(): script_command - interface, 
argv[1]=ft2232
Debug:   14 0 command.c:79 script_command(): script_command - ft2232_device_desc
Debug:   15 0 command.c:96 script_command(): script_command - 
ft2232_device_desc, argv[0]=ocd_ft2232_device_desc
Debug:   16 16 command.c:96 script_command(): script_command - 
ft2232_device_desc, argv[1]=Olimex OpenOCD JTAG A
Debug:   18 16 command.c:79 script_command(): script_command - ft2232_layout
Debug:   19 16 command.c:96 script_command(): script_command - ft2232_layout, 
argv[0]=ocd_ft2232_layout
Debug:   20 16 command.c:96 script_command(): script_command - ft2232_layout, 
argv[1]=olimex-jtag
Debug:   21 16 configuration.c:88 find_file(): found 
/usr/local/lib/openocd/target/sam7x256.cfg
Debug:   23 16 command.c:79 script_command(): script_command - reset_config
Debug:   24 16 command.c:96 script_command(): script_command - reset_config, 
argv[0]=ocd_reset_config
Debug:   25 16 command.c:96 script_command(): script_command - reset_config, 
argv[1]=srst_only
Debug:   26 16 command.c:96 script_command(): script_command - reset_config, 
argv[2]=srst_pulls_trst
Debug:   28 16 command.c:79 script_command(): script_command - jtag_nsrst_delay
Debug:   29 16 command.c:96 script_command(): script_command - 
jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay
Debug:   30 16 command.c:96 script_command(): script_command - 
jtag_nsrst_delay, argv[1]=100
Debug:   32 16 command.c:79 script_command(): script_command - jtag_ntrst_delay
Debug:   33 16 command.c:96 script_command(): script_command - 
jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay
Debug:   34 16 command.c:96 script_command(): script_command - 
jtag_ntrst_delay, argv[1]=100
Debug:   36 16 command.c:79 script_command(): script_command - jtag_device
Debug:   37 16 command.c:96 script_command(): script_command - jtag_device, 
argv[0]=ocd_jtag_device
Debug:   38 16 command.c:96 script_command(): script_command - jtag_device, 
argv[1]=4
Debug:   39 16 command.c:96 script_command(): script_command - jtag_device, 
argv[2]=0x1
Debug:   40 16 command.c:96 script_command(): script_command - jtag_device, 
argv[3]=0xf
Debug:   41 16 command.c:96 script_command(): script_command - jtag_device, 
argv[4]=0xe
Debug:   43 16 command.c:79 script_command(): script_command - target
Debug:   44 16 command.c:96 script_command(): script_command - target, 
argv[0]=ocd_target
Debug:   45 16 command.c:96 script_command(): script_command - target, 
argv[1]=arm7tdmi
Debug:   46 16 command.c:96 script_command(): script_command - target, 
argv[2]=little
Debug:   47 16 command.c:96 script_command(): script_command - target, argv[3]=0
Debug:   48 16 command.c:96 script_command(): script_command - target, 
argv[4]=arm7tdmi
Debug:   50 31 command.c:79 script_command(): script_command - working_area
Debug:   51 31 command.c:96 script_command(): script_command - working_area, 
argv[0]=ocd_working_area
Debug:   52 31 command.c:96 script_command(): script_command - working_area, 
argv[1]=0
Debug:   53 31 command.c:96 script_command(): script_command - working_area, 
argv[2]=0x00200000
Debug:   54 31 command.c:96 script_command(): script_command - working_area, 
argv[3]=0x4000
Debug:   55 31 command.c:96 script_command(): script_command - working_area, 
argv[4]=nobackup
Debug:   57 31 command.c:79 script_command(): script_command - bank
Debug:   58 31 command.c:96 script_command(): script_command - bank, 
argv[0]=ocd_flash_bank
Debug:   59 31 command.c:96 script_command(): script_command - bank, 
argv[1]=at91sam7
Debug:   60 31 command.c:96 script_command(): script_command - bank, argv[2]=0
Debug:   61 31 command.c:96 script_command(): script_command - bank, argv[3]=0
Debug:   62 31 command.c:96 script_command(): script_command - bank, argv[4]=0
Debug:   63 31 command.c:96 script_command(): script_command - bank, argv[5]=0
Debug:   64 31 command.c:96 script_command(): script_command - bank, argv[6]=0
Debug:   66 31 command.c:79 script_command(): script_command - init
Debug:   67 31 command.c:96 script_command(): script_command - init, 
argv[0]=ocd_init
Debug:   68 31 openocd.c:107 handle_init_command(): target init complete
Debug:   69 31 ft2232.c:1374 ft2232_init_ftd2xx(): 'ft2232' interface using 
FTD2XX with 'olimex-jtag' layout (0403:6010)
Debug:   70 31 ft2232.c:1463 ft2232_init_ftd2xx(): current latency timer: 2
Debug:   71 47 ft2232.c:1810 olimex_jtag_init(): 80 08 1b
Debug:   72 47 ft2232.c:1853 olimex_jtag_init(): 82 09 0f
Debug:   73 47 ft2232.c:253 ft2232_speed(): 86 00 00
Debug:   74 47 openocd.c:114 handle_init_command(): jtag interface init complete
Debug:   75 47 jtag.c:1563 jtag_init_inner(): Init JTAG chain
Debug:   76 47 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   77 47 jtag.c:1301 jtag_reset_callback(): -
Debug:   78 47 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   79 47 jtag.c:1301 jtag_reset_callback(): -
Info:    80 47 jtag.c:1418 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f 
(Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Debug:   81 47 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   82 47 jtag.c:1301 jtag_reset_callback(): -
Debug:   83 47 openocd.c:120 handle_init_command(): jtag init complete
Debug:   84 47 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000000
Debug:   85 47 embeddedice.c:400 embeddedice_write_reg(): 20: 0x00000000
Debug:   86 47 openocd.c:123 handle_init_command(): jtag examine complete
Debug:   87 47 openocd.c:129 handle_init_command(): flash init complete
Debug:   88 47 openocd.c:133 handle_init_command(): NAND init complete
Debug:   89 47 openocd.c:137 handle_init_command(): pld init complete
Warning: 90 63 telnet_server.c:609 telnet_init(): no telnet port specified, 
using default port 4444
Warning: 91 78 gdb_server.c:2053 gdb_init(): no gdb port specified, using 
default port 3333
Debug:   92 94 gdb_server.c:2068 gdb_init(): gdb service for target arm7tdmi at 
port 3333
Warning: 93 94 tcl_server.c:178 tcl_init(): no tcl port specified, using 
default port 6666
Debug:   95 94 command.c:79 script_command(): script_command - reset
Debug:   96 94 command.c:96 script_command(): script_command - reset, 
argv[0]=ocd_reset
Debug:   97 94 jtag.c:1607 jtag_init_reset(): Trying to bring the JTAG 
controller to life by asserting TRST / TLR
Debug:   98 94 jtag.c:1003 jtag_add_reset(): SRST line released
Debug:   99 94 jtag.c:1010 jtag_add_reset(): JTAG reset with TLR instead of TRST
Debug:   100 94 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   101 94 jtag.c:1301 jtag_reset_callback(): -
Debug:   102 94 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   103 94 jtag.c:1301 jtag_reset_callback(): -
Debug:   104 94 jtag.c:999 jtag_add_reset(): SRST line asserted
Debug:   105 94 jtag.c:1010 jtag_add_reset(): JTAG reset with TLR instead of 
TRST
Debug:   106 94 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   107 94 jtag.c:1301 jtag_reset_callback(): -
Debug:   108 94 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   109 94 jtag.c:1301 jtag_reset_callback(): -
Debug:   110 94 jtag.c:1003 jtag_add_reset(): SRST line released
Debug:   111 94 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, 
high_output: 0x01, high_direction: 0x0f
Debug:   112 328 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 1, 
high_output: 0x03, high_direction: 0x0f
Debug:   113 328 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, 
high_output: 0x01, high_direction: 0x0f
Debug:   114 547 jtag.c:1563 jtag_init_inner(): Init JTAG chain
Debug:   115 547 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   116 547 jtag.c:1301 jtag_reset_callback(): -
Debug:   117 547 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   118 547 jtag.c:1301 jtag_reset_callback(): -
Info:    119 547 jtag.c:1418 jtag_examine_chain(): JTAG device found: 
0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)
Debug:   120 547 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   121 547 jtag.c:1301 jtag_reset_callback(): -
Debug:   123 547 embeddedice.c:400 embeddedice_write_reg(): 12: 0x00000000
Debug:   124 547 embeddedice.c:400 embeddedice_write_reg(): 20: 0x00000000
Debug:   125 547 arm7_9_common.c:729 arm7_9_assert_reset(): target->state: 
unknown
Debug:   126 547 jtag.c:999 jtag_add_reset(): SRST line asserted
Debug:   127 547 jtag.c:1010 jtag_add_reset(): JTAG reset with TLR instead of 
TRST
Debug:   128 547 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   129 547 jtag.c:1301 jtag_reset_callback(): -
Debug:   130 547 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG 
controller reset (TLR or TRST)
Debug:   131 547 jtag.c:1301 jtag_reset_callback(): -
Debug:   132 547 arm7_9_common.c:790 arm7_9_deassert_reset(): target->state: 
reset
Debug:   133 547 jtag.c:1003 jtag_add_reset(): SRST line released
Debug:   134 547 target.c:339 target_process_reset(): Waiting for halted stated 
as appropriate
Debug:   135 563 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 1, 
high_output: 0x03, high_direction: 0x0f
Debug:   136 625 ft2232.c:1037 olimex_jtag_reset(): trst: 0, srst: 0, 
high_output: 0x01, high_direction: 0x0f
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to