On Wed, Jan 21, 2009 at 8:56 PM, Sergey Lapin <[email protected]> wrote: > On Wed, Jan 21, 2009 at 8:26 PM, Alan Carvalho de Assis > <[email protected]> wrote: >> Hi Sergey, >> >> On Wed, Jan 21, 2009 at 4:30 PM, Sergey Lapin <[email protected]> wrote: >>> Hi, all! >>> >>> I write support for mc13224 - arm7tdmi-based ieee8021.15.4 -compliant >>> communication chip. Chip is quite new, documentation is in weird state >>> and is not full, but core and basic peripherals like SPI are >>> documented normally. I already managed to make core work, >>> but I can't manage it to reset properly. >>> >> >> Can you please send your patches to OpenOCD? Even if it is not working >> correctly your patch base help other people who wants to test it. > It is basically very messy config, need to clean it up first, but > I of course plan to do it. I did not patch any code inside openocd > itself. > > Also, I need to mention I use jlink interface. > >> Please go ahead! It is nice to see open-source alternatives to closed >> solution. >> Be sure your work will help more people. > > Hope so, > S. >
Well, logs follow up: sla...@slapin-notebook:~/mc13224$ telnet localhost 4444 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. Open On-Chip Debugger > halt target state: halted target halted in Thumb state due to debug-request, current mode: System cpsr: 0x8000003f pc: 0x004106d6 > reset JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) JTAG Tap/device matched TAP mc13224.cpu: value captured during scan didn't pass the requested check: captured: 0x04 check_value: 0x01 check_mask: 0x0f in_handler: w/o "in_value", mismatch in SIR > reset JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) JTAG Tap/device matched TAP mc13224.cpu: value captured during scan didn't pass the requested check: captured: 0x04 check_value: 0x01 check_mask: 0x0f in_handler: w/o "in_value", mismatch in SIR > reset JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) JTAG Tap/device matched TAP mc13224.cpu: value captured during scan didn't pass the requested check: captured: 0x04 check_value: 0x01 check_mask: 0x0f in_handler: w/o "in_value", mismatch in SIR > openocd log: sla...@slapin-notebook:~/mc13224$ sudo /usr/local/bin/openocd -d3 [sudo] password for slapin: Open On-Chip Debugger 1.0 (2008-12-24-10:25) svn:1273 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ User : 5 1 command.c:494 command_run_line(): Debug: 6 49 configuration.c:88 find_file(): found openocd.cfg Debug: 7 120 configuration.c:88 find_file(): found /usr/local/lib/openocd/interface/jlink.cfg Debug: 9 131 command.c:91 script_command(): script_command - interface Debug: 10 131 command.c:108 script_command(): script_command - interface, argv[0]=ocd_interface Debug: 11 131 command.c:108 script_command(): script_command - interface, argv[1]=jlink Debug: 13 131 command.c:91 script_command(): script_command - telnet_port Debug: 14 131 command.c:108 script_command(): script_command - telnet_port, argv[0]=ocd_telnet_port Debug: 15 131 command.c:108 script_command(): script_command - telnet_port, argv[1]=4444 Debug: 17 131 command.c:91 script_command(): script_command - gdb_port Debug: 18 131 command.c:108 script_command(): script_command - gdb_port, argv[0]=ocd_gdb_port Debug: 19 131 command.c:108 script_command(): script_command - gdb_port, argv[1]=3333 Debug: 21 131 command.c:91 script_command(): script_command - gdb_memory_map Debug: 22 131 command.c:108 script_command(): script_command - gdb_memory_map, argv[0]=ocd_gdb_memory_map Debug: 23 131 command.c:108 script_command(): script_command - gdb_memory_map, argv[1]=enable Debug: 25 132 command.c:91 script_command(): script_command - gdb_flash_program Debug: 26 132 command.c:108 script_command(): script_command - gdb_flash_program, argv[0]=ocd_gdb_flash_program Debug: 27 132 command.c:108 script_command(): script_command - gdb_flash_program, argv[1]=enable Debug: 28 144 configuration.c:88 find_file(): found /usr/local/lib/openocd/tcl/bitsbytes.tcl Debug: 29 154 configuration.c:88 find_file(): found /usr/local/lib/openocd/tcl/cpu/arm/arm7tdmi.tcl Debug: 30 157 configuration.c:88 find_file(): found /usr/local/lib/openocd/tcl/memory.tcl Debug: 31 167 configuration.c:88 find_file(): found /usr/local/lib/openocd/tcl/mmr_helpers.tcl Debug: 33 167 command.c:91 script_command(): script_command - reset_config Debug: 34 167 command.c:108 script_command(): script_command - reset_config, argv[0]=ocd_reset_config Debug: 35 167 command.c:108 script_command(): script_command - reset_config, argv[1]=srst_only Debug: 36 167 command.c:108 script_command(): script_command - reset_config, argv[2]=srst_pulls_trst Debug: 37 167 jtag.c:1847 jim_newtap_cmd(): Creating New Tap, Chip: mc13224, Tap: cpu, Dotted: mc13224.cpu, 8 params Debug: 38 167 jtag.c:1866 jim_newtap_cmd(): Processing option: -irlen Debug: 39 167 jtag.c:1866 jim_newtap_cmd(): Processing option: -ircapture Debug: 40 167 jtag.c:1866 jim_newtap_cmd(): Processing option: -irmask Debug: 41 167 jtag.c:1866 jim_newtap_cmd(): Processing option: -expected-id Debug: 42 167 jtag.c:1979 jim_newtap_cmd(): Created Tap: mc13224.cpu @ abs position 0, irlen 4, capture: 0x1 mask: 0xf Debug: 44 167 command.c:91 script_command(): script_command - jtag_nsrst_delay Debug: 45 167 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[0]=ocd_jtag_nsrst_delay Debug: 46 167 command.c:108 script_command(): script_command - jtag_nsrst_delay, argv[1]=200 Debug: 48 167 command.c:91 script_command(): script_command - jtag_ntrst_delay Debug: 49 167 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[0]=ocd_jtag_ntrst_delay Debug: 50 167 command.c:108 script_command(): script_command - jtag_ntrst_delay, argv[1]=200 Debug: 51 167 target.c:3911 jim_target(): Target command params: Debug: 52 167 target.c:3912 jim_target(): target create mc13224.cpu arm7tdmi -endian little -chain-position mc13224.cpu -variant arm7tdmi User : 54 186 command.c:494 command_run_line(): Debug: 56 186 command.c:91 script_command(): script_command - init Debug: 57 186 command.c:108 script_command(): script_command - init, argv[0]=ocd_init Debug: 58 187 openocd.c:151 handle_init_command(): target init complete Info : 59 324 jlink.c:528 jlink_get_version_info(): J-Link compiled Jul 30 2008 11:24:37 ARM Rev.5 Info : 60 324 jlink.c:496 jlink_get_status(): Vref = 3.280 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 1 Info : 61 324 jlink.c:317 jlink_init(): J-Link JTAG Interface ready Debug: 62 324 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 63 324 openocd.c:158 handle_init_command(): jtag interface init complete Debug: 64 324 jtag.c:2194 jtag_init_inner(): Init JTAG chain Debug: 65 324 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 66 324 jtag.c:1444 jtag_reset_callback(): - Debug: 67 325 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 68 325 jtag.c:1444 jtag_reset_callback(): - Info : 69 359 jtag.c:1564 jtag_examine_chain(): JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) Info : 70 359 jtag.c:1602 jtag_examine_chain(): JTAG Tap/device matched Debug: 71 359 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 72 359 jtag.c:1444 jtag_reset_callback(): - Debug: 73 361 openocd.c:164 handle_init_command(): jtag init complete Warn : 74 370 embeddedice.c:191 embeddedice_build_reg_cache(): EmbeddedICE version 7 detected, EmbeddedICE handling might be broken Debug: 75 376 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 76 380 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 77 380 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 78 386 openocd.c:167 handle_init_command(): jtag examine complete Debug: 79 386 openocd.c:173 handle_init_command(): flash init complete Debug: 80 386 openocd.c:177 handle_init_command(): mflash init complete Debug: 81 404 openocd.c:181 handle_init_command(): NAND init complete Debug: 82 404 openocd.c:185 handle_init_command(): pld init complete Debug: 83 404 gdb_server.c:2225 gdb_init(): gdb service for target arm7tdmi at port 3333 Warn : 84 404 tcl_server.c:178 tcl_init(): no tcl port specified, using default port 6666 User : 85 404 command.c:494 command_run_line(): Info : 86 22842 server.c:89 add_connection(): accepting 'telnet' connection from 0 Debug: 88 25762 command.c:91 script_command(): script_command - halt Debug: 89 25762 command.c:108 script_command(): script_command - halt, argv[0]=ocd_halt Debug: 90 25762 target.c:1744 handle_halt_command(): - Debug: 91 25762 arm7_9_common.c:1054 arm7_9_halt(): target->state: running Debug: 92 25762 embeddedice.c:401 embeddedice_write_reg(): 9: 0xffffffff Debug: 93 25762 embeddedice.c:401 embeddedice_write_reg(): 11: 0xffffffff Debug: 94 25762 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000100 Debug: 95 25762 embeddedice.c:401 embeddedice_write_reg(): 13: 0x000000f7 Debug: 96 25779 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000005 Debug: 97 25779 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 98 25785 arm7_9_common.c:1145 arm7_9_debug_entry(): target entered debug from Thumb state Debug: 99 25837 arm7_9_common.c:1149 arm7_9_debug_entry(): r0_thumb: 0x00000001, pc_thumb: 0x004106dc Debug: 100 25905 arm7_9_common.c:1185 arm7_9_debug_entry(): target entered debug state in System mode Debug: 101 25905 arm7_9_common.c:1189 arm7_9_debug_entry(): thumb state, applying fixups Debug: 102 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r0: 0x00000001 Debug: 103 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r1: 0x00000001 Debug: 104 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r2: 0x00000000 Debug: 105 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r3: 0x0000002c Debug: 106 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r4: 0x00413c98 Debug: 107 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r5: 0x00000000 Debug: 108 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r6: 0x00000000 Debug: 109 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r7: 0x00000000 Debug: 110 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r8: 0xa24a0038 Debug: 111 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r9: 0xa418246c Debug: 112 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r10: 0x62428ee0 Debug: 113 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r11: 0x06121280 Debug: 114 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r12: 0x00411220 Debug: 115 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r13: 0x00412f50 Debug: 116 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r14: 0x004106d3 Debug: 117 25905 arm7_9_common.c:1216 arm7_9_debug_entry(): r15: 0x004106d6 Debug: 118 25905 arm7_9_common.c:1222 arm7_9_debug_entry(): entered debug state at PC 0x4106d6 Debug: 119 25905 target.c:696 target_call_event_callbacks(): target event 4 (early-halted) Debug: 120 25905 target.c:3054 target_handle_event(): event: 4 early-halted - no action Debug: 121 25905 target.c:696 target_call_event_callbacks(): target event 5 (halted) Debug: 122 25905 target.c:3054 target_handle_event(): event: 5 halted - no action User : 123 25905 target.c:959 target_arch_state(): target state: halted User : 124 25905 armv4_5.c:316 armv4_5_arch_state(): target halted in Thumb state due to debug-request, current mode: System cpsr: 0x8000003f pc: 0x004106d6 User : 125 25905 command.c:494 command_run_line(): Debug: 127 32604 command.c:91 script_command(): script_command - reset Debug: 128 32604 command.c:108 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 129 32604 target.c:3911 jim_target(): Target command params: Debug: 130 32604 target.c:3912 jim_target(): target names Debug: 131 32604 target.c:3054 target_handle_event(): event: 11 reset-start - no action Debug: 132 32604 jtag.c:2227 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET Debug: 133 32604 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 134 32604 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 135 32604 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 136 32604 jtag.c:1444 jtag_reset_callback(): - Debug: 137 32604 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 138 32604 jtag.c:1444 jtag_reset_callback(): - Debug: 139 32604 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 140 32604 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 141 32604 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 142 32604 jtag.c:1444 jtag_reset_callback(): - Debug: 143 32604 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 144 32604 jtag.c:1444 jtag_reset_callback(): - Debug: 145 32604 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 146 32604 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 147 32806 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 148 32807 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 150 33209 jtag.c:2194 jtag_init_inner(): Init JTAG chain Debug: 151 33209 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 152 33209 jtag.c:1444 jtag_reset_callback(): - Debug: 153 33210 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 154 33210 jtag.c:1444 jtag_reset_callback(): - Info : 155 33244 jtag.c:1564 jtag_examine_chain(): JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) Info : 156 33244 jtag.c:1602 jtag_examine_chain(): JTAG Tap/device matched Debug: 157 33244 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 158 33244 jtag.c:1444 jtag_reset_callback(): - Debug: 159 33246 target.c:3911 jim_target(): Target command params: Debug: 160 33246 target.c:3912 jim_target(): target names Debug: 161 33255 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 162 33259 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 163 33259 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 164 33265 target.c:3911 jim_target(): Target command params: Debug: 165 33265 target.c:3912 jim_target(): target names Debug: 166 33265 target.c:3054 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 167 33265 arm7_9_common.c:810 arm7_9_assert_reset(): target->state: halted Debug: 168 33265 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 169 33265 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 170 33265 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 171 33265 jtag.c:1444 jtag_reset_callback(): - Debug: 172 33265 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 173 33265 jtag.c:1444 jtag_reset_callback(): - Debug: 174 33265 target.c:3054 target_handle_event(): event: 13 reset-assert-post - no action Debug: 175 33265 target.c:3911 jim_target(): Target command params: Debug: 176 33265 target.c:3912 jim_target(): target names Debug: 177 33265 target.c:3054 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 178 33265 arm7_9_common.c:870 arm7_9_deassert_reset(): target->state: reset Debug: 179 33265 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 180 33265 target.c:3054 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 181 33265 target.c:3911 jim_target(): Target command params: Debug: 182 33265 target.c:3912 jim_target(): target names Debug: 183 33265 target.c:3054 target_handle_event(): event: 21 reset-end - no action Debug: 184 33265 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 185 33317 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Warn : 187 33728 jtag.c:1348 jtag_check_value(): TAP mc13224.cpu: Warn : 188 33728 jtag.c:1358 jtag_check_value(): value captured during scan didn't pass the requested check: Warn : 189 33728 jtag.c:1360 jtag_check_value(): captured: 0x04 check_value: 0x01 check_mask: 0x0f Warn : 190 33728 jtag.c:1317 jtag_read_buffer(): in_handler: w/o "in_value", mismatch in SIR User : 191 33728 command.c:494 command_run_line(): Debug: 193 42298 command.c:91 script_command(): script_command - reset Debug: 194 42298 command.c:108 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 195 42298 target.c:3911 jim_target(): Target command params: Debug: 196 42298 target.c:3912 jim_target(): target names Debug: 197 42298 target.c:3054 target_handle_event(): event: 11 reset-start - no action Debug: 198 42298 jtag.c:2227 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET Debug: 199 42298 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 200 42298 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 201 42298 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 202 42298 jtag.c:1444 jtag_reset_callback(): - Debug: 203 42298 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 204 42298 jtag.c:1444 jtag_reset_callback(): - Debug: 205 42298 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 206 42298 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 207 42298 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 208 42298 jtag.c:1444 jtag_reset_callback(): - Debug: 209 42298 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 210 42298 jtag.c:1444 jtag_reset_callback(): - Debug: 211 42298 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 212 42298 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 213 42500 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 214 42501 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 216 42902 jtag.c:2194 jtag_init_inner(): Init JTAG chain Debug: 217 42902 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 218 42902 jtag.c:1444 jtag_reset_callback(): - Debug: 219 42903 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 220 42903 jtag.c:1444 jtag_reset_callback(): - Info : 221 42937 jtag.c:1564 jtag_examine_chain(): JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) Info : 222 42938 jtag.c:1602 jtag_examine_chain(): JTAG Tap/device matched Debug: 223 42938 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 224 42938 jtag.c:1444 jtag_reset_callback(): - Debug: 225 42939 target.c:3911 jim_target(): Target command params: Debug: 226 42939 target.c:3912 jim_target(): target names Debug: 227 42948 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 228 42952 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 229 42952 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 230 42958 target.c:3911 jim_target(): Target command params: Debug: 231 42958 target.c:3912 jim_target(): target names Debug: 232 42958 target.c:3054 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 233 42958 arm7_9_common.c:810 arm7_9_assert_reset(): target->state: running Debug: 234 42958 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 235 42958 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 236 42958 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 237 42958 jtag.c:1444 jtag_reset_callback(): - Debug: 238 42958 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 239 42958 jtag.c:1444 jtag_reset_callback(): - Debug: 240 42958 target.c:3054 target_handle_event(): event: 13 reset-assert-post - no action Debug: 241 42958 target.c:3911 jim_target(): Target command params: Debug: 242 42958 target.c:3912 jim_target(): target names Debug: 243 42958 target.c:3054 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 244 42958 arm7_9_common.c:870 arm7_9_deassert_reset(): target->state: reset Debug: 245 42958 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 246 42958 target.c:3054 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 247 42958 target.c:3911 jim_target(): Target command params: Debug: 248 42958 target.c:3912 jim_target(): target names Debug: 249 42958 target.c:3054 target_handle_event(): event: 21 reset-end - no action Debug: 250 42958 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 251 43010 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Warn : 253 43420 jtag.c:1348 jtag_check_value(): TAP mc13224.cpu: Warn : 254 43420 jtag.c:1358 jtag_check_value(): value captured during scan didn't pass the requested check: Warn : 255 43420 jtag.c:1360 jtag_check_value(): captured: 0x04 check_value: 0x01 check_mask: 0x0f Warn : 256 43420 jtag.c:1317 jtag_read_buffer(): in_handler: w/o "in_value", mismatch in SIR User : 257 43420 command.c:494 command_run_line(): Debug: 259 49170 command.c:91 script_command(): script_command - reset Debug: 260 49170 command.c:108 script_command(): script_command - reset, argv[0]=ocd_reset Debug: 261 49170 target.c:3911 jim_target(): Target command params: Debug: 262 49170 target.c:3912 jim_target(): target names Debug: 263 49170 target.c:3054 target_handle_event(): event: 11 reset-start - no action Debug: 264 49170 jtag.c:2227 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET Debug: 265 49170 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 266 49170 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 267 49170 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 268 49170 jtag.c:1444 jtag_reset_callback(): - Debug: 269 49170 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 270 49170 jtag.c:1444 jtag_reset_callback(): - Debug: 271 49170 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 272 49170 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 273 49170 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 274 49170 jtag.c:1444 jtag_reset_callback(): - Debug: 275 49170 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 276 49170 jtag.c:1444 jtag_reset_callback(): - Debug: 277 49170 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 278 49170 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 279 49372 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 280 49373 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Debug: 282 49774 jtag.c:2194 jtag_init_inner(): Init JTAG chain Debug: 283 49774 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 284 49774 jtag.c:1444 jtag_reset_callback(): - Debug: 285 49775 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 286 49775 jtag.c:1444 jtag_reset_callback(): - Info : 287 49809 jtag.c:1564 jtag_examine_chain(): JTAG tap: mc13224.cpu tap/device found: 0x1f1f001d (Manufacturer: 0x00e, Part: 0xf1f0, Version: 0x1) Info : 288 49810 jtag.c:1602 jtag_examine_chain(): JTAG Tap/device matched Debug: 289 49810 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 290 49810 jtag.c:1444 jtag_reset_callback(): - Debug: 291 49811 target.c:3911 jim_target(): Target command params: Debug: 292 49811 target.c:3912 jim_target(): target names Debug: 293 49820 embeddedice.c:401 embeddedice_write_reg(): 0: 0x00000000 Debug: 294 49824 embeddedice.c:401 embeddedice_write_reg(): 12: 0x00000000 Debug: 295 49824 embeddedice.c:401 embeddedice_write_reg(): 20: 0x00000000 Debug: 296 49830 target.c:3911 jim_target(): Target command params: Debug: 297 49830 target.c:3912 jim_target(): target names Debug: 298 49830 target.c:3054 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 299 49830 arm7_9_common.c:810 arm7_9_assert_reset(): target->state: running Debug: 300 49830 jtag.c:1139 jtag_add_reset(): SRST line asserted Debug: 301 49830 jtag.c:1150 jtag_add_reset(): JTAG reset with RESET instead of TRST Debug: 302 49830 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 303 49830 jtag.c:1444 jtag_reset_callback(): - Debug: 304 49830 jtag.c:427 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 305 49830 jtag.c:1444 jtag_reset_callback(): - Debug: 306 49830 target.c:3054 target_handle_event(): event: 13 reset-assert-post - no action Debug: 307 49830 target.c:3911 jim_target(): Target command params: Debug: 308 49830 target.c:3912 jim_target(): target names Debug: 309 49830 target.c:3054 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 310 49830 arm7_9_common.c:870 arm7_9_deassert_reset(): target->state: reset Debug: 311 49830 jtag.c:1143 jtag_add_reset(): SRST line released Debug: 312 49830 target.c:3054 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 313 49830 target.c:3911 jim_target(): Target command params: Debug: 314 49830 target.c:3912 jim_target(): target names Debug: 315 49830 target.c:3054 target_handle_event(): event: 21 reset-end - no action Debug: 316 49830 jlink.c:446 jlink_reset(): trst: 0, srst: 1 Debug: 317 49882 jlink.c:446 jlink_reset(): trst: 0, srst: 0 Warn : 319 50293 jtag.c:1348 jtag_check_value(): TAP mc13224.cpu: Warn : 320 50293 jtag.c:1358 jtag_check_value(): value captured during scan didn't pass the requested check: Warn : 321 50293 jtag.c:1360 jtag_check_value(): captured: 0x04 check_value: 0x01 check_mask: 0x0f Warn : 322 50293 jtag.c:1317 jtag_read_buffer(): in_handler: w/o "in_value", mismatch in SIR User : 323 50293 command.c:494 command_run_line(): openocd.cfg: source [find interface/jlink.cfg] # Change the default telnet port... telnet_port 4444 # GDB connects here gdb_port 3333 # GDB can also flash my flash! gdb_memory_map enable gdb_flash_program enable source [find tcl/bitsbytes.tcl] source [find tcl/cpu/arm/arm7tdmi.tcl] source [find tcl/memory.tcl] source [find tcl/mmr_helpers.tcl] set CHIP_MAKER freescale set CHIP_FAMILY mc1322 set CHIP_NAME mc13224 set N_RAM 1 set RAM(0,BASE) 0x00400000 set RAM(0,LEN) 0x18000 set RAM(0,HUMAN) "internal SRAM" set RAM(0,TYPE) "ram" set RAM(0,RWX) $RWX_RWX set RAM(0,ACCESS_WIDTH) $ACCESS_WIDTH_ANY # I AM LAZY... I create 1 region for all MMRs. set N_MMREGS 1 set MMREGS(0,CHIPSELECT) -1 set MMREGS(0,BASE) 0x80000000 set MMREGS(0,LEN) 0x00030000 set MMREGS(0,HUMAN) "mm-regs" set MMREGS(0,TYPE) "mmr" set MMREGS(0,RWX) $RWX_RW set MMREGS(0,ACCESS_WIDTH) $ACCESS_WIDTH_ANY set N_XMEM 0 set _CHIPNAME mc13224 set _ENDIAN little set _CPUTAPID 0x1f1f001d # set _CPUTAPID 0 reset_config srst_only srst_pulls_trst jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID jtag_nsrst_delay 200 jtag_ntrst_delay 200 ###################### # Target configuration ###################### set _TARGETNAME [format "%s.cpu" $_CHIPNAME] target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi $_TARGETNAME configure -event reset-init { sleep 100 soft_reset_halt mww 0x80000018 0x50000000 mww 0x80000000 0x00000f00 mww 0x80000008 0x00000e00 mww 0x80005000 0x00006013 # mww 0x80005018 0x017f270f # mww 0x80005008 0x55 mww 0x80005018 0x07A9270F mww 0x80005008 0x55 sleep 100 } # Internal sram memory $_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x0041a000 -work-area-size 0x1000 -work-area-backup 1 Hope, that will help to resolve issue. S. _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
