On Fri, 3 Oct 2008, ?yvind Harboe wrote: > On Fri, Oct 3, 2008 at 8:03 PM, Mariusz Janiak > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm working with the lm3s811 microcontroller (EVAL BOARD). I have serious >> problem with any program that run from flash and change the PLL frequency >> to 50MHz. In this case openocd return following error: >> >> Timeout waiting for ACK = OK/FAULT in SWJDP transaction. >> >> even when I debug different program from RAM. >> >> When I set the uC clock to run directly from the crystal (in flash >> program) I haven't this problem. I have tried change JTAG speed and >> jtag_nsrst_delay but it didn't help. >> >> Any ideas? > > Some ideas on debugging/putting together more info: > > http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
Sorry for last mail, it was my mistake 1. Target PCB/board description: LM3S811 EVAL BOARD 2. Config scripts (cortex_ft2232_dbg.cfg) #daemon configuration telnet_port 4444 gdb_port 3333 #interface interface ft2232 ft2232_device_desc "LM3S811 Evaluation Board A" ft2232_layout evb_lm3s811 ft2232_vid_pid 0x0403 0xbcd9 jtag_speed 10 jtag_nsrst_delay 100 #LM3S811 Evaluation Board has only srst reset_config srst_only separate #jtag scan chain #format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE) jtag_device 4 0x1 0xf 0xe #target configuration target cortex_m3 little 0 lm3s # all ram working_area 0 0x20000000 0x2000 nobackup #flash configuration flash bank stellaris 0 0 0 0 0 init reset halt 3. OpenOCD command line openocd -f Util/cortex_ft2232_dbg.cfg 4. Expected result Open On-Chip Debugger 1.0 (2008-10-03-19:21) svn:1014 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ jtag_speed: 10 Info: JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) Warning:no tcl port specified, using default port 6666 Info: JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x000000b8 5. Actual result Open On-Chip Debugger 1.0 (2008-10-03-19:21) svn:1014 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ jtag_speed: 10 Info: JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Block read error address 0xe000ed00, count 0x1 Warning:no tcl port specified, using default port 6666 Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Info: JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning:Timeout waiting for ACK = OK/FAULT in SWJDP transaction 6. debug_level 3 logs Open On-Chip Debugger 1.0 (2008-10-03-19:21) svn:1014 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ Debug: 5 0 configuration.c:88 find_file(): found Util/cortex_ft2232_dbg.cfg Debug: 7 0 command.c:82 script_command(): script_command - telnet_port Debug: 8 0 command.c:99 script_command(): script_command - telnet_port, argv[0]=ocd_telnet_port Debug: 9 0 command.c:99 script_command(): script_command - telnet_port, argv[1]=4444 Debug: 11 0 command.c:82 script_command(): script_command - gdb_port Debug: 12 1 command.c:99 script_command(): script_command - gdb_port, argv[0]=ocd_gdb_port Debug: 13 1 command.c:99 script_command(): script_command - gdb_port, argv[1]=3333 Debug: 15 1 command.c:82 script_command(): script_command - interface Debug: 16 1 command.c:99 script_command(): script_command - interface, argv[0]=ocd_interface Debug: 17 1 command.c:99 script_command(): script_command - interface, argv[1]=ft2232 Debug: 19 1 command.c:82 script_command(): script_command - ft2232_device_desc Debug: 20 1 command.c:99 script_command(): script_command - ft2232_device_desc, argv[0]=ocd_ft2232_device_desc Debug: 21 1 command.c:99 script_command(): script_command - ft2232_device_desc, argv[1]=LM3S811 Evaluation Board A Debug: 23 1 command.c:82 script_command(): script_command - ft2232_layout Debug: 24 1 command.c:99 script_command(): script_command - ft2232_layout, argv[0]=ocd_ft2232_layout Debug: 25 1 command.c:99 script_command(): script_command - ft2232_layout, argv[1]=evb_lm3s811 Debug: 27 1 command.c:82 script_command(): script_command - ft2232_vid_pid Debug: 28 1 command.c:99 script_command(): script_command - ft2232_vid_pid, argv[0]=ocd_ft2232_vid_pid Debug: 29 1 command.c:99 script_command(): script_command - ft2232_vid_pid, argv[1]=0x0403 Debug: 30 1 command.c:99 script_command(): script_command - ft2232_vid_pid, argv[2]=0xbcd9 Debug: 32 1 command.c:82 script_command(): script_command - jtag_speed Debug: 33 1 command.c:99 script_command(): script_command - jtag_speed, argv[0]=ocd_jtag_speed Debug: 34 1 command.c:99 script_command(): script_command - jtag_speed, argv[1]=10 Debug: 35 1 jtag.c:1937 handle_jtag_speed_command(): handle jtag speed User: 36 1 command.c:363 command_print(): jtag_speed: 10 Debug: 38 1 command.c:82 script_command(): script_command - jtag_nsrst_delay Debug: 39 1 command.c:99 script_command(): script_command - jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay Debug: 40 1 command.c:99 script_command(): script_command - jtag_nsrst_delay, argv[1]=100 Debug: 42 1 command.c:82 script_command(): script_command - reset_config Debug: 43 1 command.c:99 script_command(): script_command - reset_config, argv[0]=ocd_reset_config Debug: 44 1 command.c:99 script_command(): script_command - reset_config, argv[1]=srst_only Debug: 45 1 command.c:99 script_command(): script_command - reset_config, argv[2]=separate Debug: 47 1 command.c:82 script_command(): script_command - jtag_device Debug: 48 1 command.c:99 script_command(): script_command - jtag_device, argv[0]=ocd_jtag_device Debug: 49 1 command.c:99 script_command(): script_command - jtag_device, argv[1]=4 Debug: 50 1 command.c:99 script_command(): script_command - jtag_device, argv[2]=0x1 Debug: 51 1 command.c:99 script_command(): script_command - jtag_device, argv[3]=0xf Debug: 52 1 command.c:99 script_command(): script_command - jtag_device, argv[4]=0xe Debug: 53 1 target.c:3930 jim_target(): Target command params: Debug: 54 1 target.c:3931 jim_target(): target cortex_m3 little 0 lm3s Debug: 55 1 target.c:4009 jim_target(): Target OLD SYNTAX - converted to new syntax Debug: 56 1 target.c:3930 jim_target(): Target command params: Debug: 57 1 target.c:3931 jim_target(): target create target0 cortex_m3 -endian little -chain-position 0 -variant lm3s Debug: 59 1 command.c:82 script_command(): script_command - working_area Debug: 60 1 command.c:99 script_command(): script_command - working_area, argv[0]=ocd_working_area Debug: 61 7 command.c:99 script_command(): script_command - working_area, argv[1]=0 Debug: 62 8 command.c:99 script_command(): script_command - working_area, argv[2]=0x20000000 Debug: 63 8 command.c:99 script_command(): script_command - working_area, argv[3]=0x2000 Debug: 64 8 command.c:99 script_command(): script_command - working_area, argv[4]=nobackup Debug: 66 8 command.c:82 script_command(): script_command - bank Debug: 67 8 command.c:99 script_command(): script_command - bank, argv[0]=ocd_flash_bank Debug: 68 8 command.c:99 script_command(): script_command - bank, argv[1]=stellaris Debug: 69 8 command.c:99 script_command(): script_command - bank, argv[2]=0 Debug: 70 8 command.c:99 script_command(): script_command - bank, argv[3]=0 Debug: 71 8 command.c:99 script_command(): script_command - bank, argv[4]=0 Debug: 72 8 command.c:99 script_command(): script_command - bank, argv[5]=0 Debug: 73 8 command.c:99 script_command(): script_command - bank, argv[6]=0 Debug: 75 8 command.c:82 script_command(): script_command - init Debug: 76 8 command.c:99 script_command(): script_command - init, argv[0]=ocd_init Debug: 77 9 openocd.c:106 handle_init_command(): target init complete Debug: 78 9 ft2232.c:1382 ft2232_init_ftd2xx(): 'ft2232' interface using FTD2XX with 'evb_lm3s811' layout (0403:bcd9) Debug: 79 47 ft2232.c:1471 ft2232_init_ftd2xx(): current latency timer: 2 Debug: 80 48 ft2232.c:1714 usbjtag_init(): 80 88 8b Debug: 81 49 ft2232.c:256 ft2232_speed(): 86 0a 00 Debug: 82 58 openocd.c:113 handle_init_command(): jtag interface init complete Debug: 83 58 jtag.c:1621 jtag_init_inner(): Init JTAG chain Debug: 84 58 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 85 58 jtag.c:1301 jtag_reset_callback(): - Debug: 86 59 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 87 59 jtag.c:1301 jtag_reset_callback(): - Info: 88 62 jtag.c:1410 jtag_examine_chain(): JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) Debug: 89 62 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 90 62 jtag.c:1301 jtag_reset_callback(): - Debug: 91 64 openocd.c:119 handle_init_command(): jtag init complete Debug: 92 64 cortex_swjdp.c:968 ahbap_debugport_init(): Debug: 93 66 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 94 86 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 95 105 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 96 124 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 97 144 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 98 164 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 99 184 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 100 204 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 101 224 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Debug: 102 244 cortex_swjdp.c:987 ahbap_debugport_init(): swjdp: wait CDBGPWRUPACK Warning: 103 530 cortex_swjdp.c:209 swjdp_transaction_endcheck(): Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning: 105 740 cortex_swjdp.c:209 swjdp_transaction_endcheck(): Timeout waiting for ACK = OK/FAULT in SWJDP transaction Debug: 106 741 cortex_swjdp.c:1012 ahbap_debugport_init(): AHB-AP ID Register 0x10, Debug ROM Address 0x10 Warning: 107 955 cortex_swjdp.c:209 swjdp_transaction_endcheck(): Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning: 108 1170 cortex_swjdp.c:209 swjdp_transaction_endcheck(): Timeout waiting for ACK = OK/FAULT in SWJDP transaction Warning: 109 1170 cortex_swjdp.c:725 ahbap_read_buf_u32(): Block read error address 0xe000ed00, count 0x1 Debug: 110 1170 target.c:1283 target_read_u32(): address: 0xe000ed00 failed Debug: 111 1170 openocd.c:128 handle_init_command(): flash init complete Debug: 112 1170 openocd.c:132 handle_init_command(): NAND init complete Debug: 113 1170 openocd.c:136 handle_init_command(): pld init complete Debug: 114 1170 gdb_server.c:2123 gdb_init(): gdb service for target cortex_m3 at port 3333 Warning: 115 1170 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666 Warning: 117 1411 cortex_swjdp.c:209 swjdp_transaction_endcheck(): Timeout waiting for ACK = OK/FAULT in SWJDP transaction Debug: 119 1411 command.c:82 script_command(): script_command - reset Debug: 120 1411 command.c:99 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 121 1411 command.c:99 script_command(): script_command - reset, argv[1]=halt Debug: 122 1411 target.c:3930 jim_target(): Target command params: Debug: 123 1411 target.c:3931 jim_target(): target names Debug: 124 1411 target.c:3066 target_handle_event(): event: 1 old-pre_reset - no action Debug: 125 1411 target.c:3066 target_handle_event(): event: 9 reset-start - no action Debug: 126 1411 jtag.c:1658 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / TLR Debug: 127 1411 jtag.c:1003 jtag_add_reset(): SRST line released Debug: 128 1411 jtag.c:1010 jtag_add_reset(): JTAG reset with TLR instead of TRST Debug: 129 1411 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 130 1411 jtag.c:1301 jtag_reset_callback(): - Debug: 131 1411 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 132 1411 jtag.c:1301 jtag_reset_callback(): - Debug: 133 1411 jtag.c:999 jtag_add_reset(): SRST line asserted Debug: 134 1411 jtag.c:1010 jtag_add_reset(): JTAG reset with TLR instead of TRST Debug: 135 1411 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 136 1411 jtag.c:1301 jtag_reset_callback(): - Debug: 137 1411 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 138 1411 jtag.c:1301 jtag_reset_callback(): - Debug: 139 1411 jtag.c:999 jtag_add_reset(): SRST line asserted Debug: 140 1411 jtag.c:1003 jtag_add_reset(): SRST line released Debug: 141 1617 jtag.c:1621 jtag_init_inner(): Init JTAG chain Debug: 142 1617 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 143 1617 jtag.c:1301 jtag_reset_callback(): - Debug: 144 1618 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 145 1618 jtag.c:1301 jtag_reset_callback(): - Info: 146 1621 jtag.c:1410 jtag_examine_chain(): JTAG device found: 0x2ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x2) Debug: 147 1621 jtag.c:327 jtag_call_event_callbacks(): jtag event: JTAG controller reset (TLR or TRST) Debug: 148 1621 jtag.c:1301 jtag_reset_callback(): - Debug: 149 1623 target.c:3930 jim_target(): Target command params: Debug: 150 1623 target.c:3931 jim_target(): target names Debug: 151 1623 cortex_swjdp.c:968 ahbap_debugport_init(): Debug: 152 1633 cortex_swjdp.c:1012 ahbap_debugport_init(): AHB-AP ID Register 0x14770011, Debug ROM Address 0xe00ff003 Debug: 153 1637 target.c:1278 target_read_u32(): address: 0xe000ed00, value: 0x410fc231 Debug: 154 1637 cortex_m3.c:1351 cortex_m3_examine(): CORTEX-M3 processor detected Debug: 155 1637 cortex_m3.c:1352 cortex_m3_examine(): cpuid: 0x410fc231 Debug: 156 1641 target.c:1278 target_read_u32(): address: 0xe000e004, value: 0x00000000 Debug: 157 1645 target.c:1278 target_read_u32(): address: 0xe000e100, value: 0x00000060 Debug: 158 1645 cortex_m3.c:1360 cortex_m3_examine(): interrupt enable[0] = 0x00000060 Debug: 159 1649 target.c:1278 target_read_u32(): address: 0xe0002000, value: 0x00000260 Debug: 160 1649 cortex_m3.c:1375 cortex_m3_examine(): FPB fpcr 0x260, numcode 6, numlit 2 Debug: 161 1653 target.c:1278 target_read_u32(): address: 0xe0001000, value: 0x40000000 Debug: 162 1653 target.c:3930 jim_target(): Target command params: Debug: 163 1653 target.c:3931 jim_target(): target names Debug: 164 1653 target.c:3066 target_handle_event(): event: 10 reset-assert-pre - no action Debug: 165 1653 cortex_m3.c:684 cortex_m3_assert_reset(): target->state: unknown Debug: 166 1677 target.c:1278 target_read_u32(): address: 0x400fe000, value: 0x00000200 -- Best regards Mariusz _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
