I hope I'm closing in a bit on the problem with "reset run" on i.MX27.
- "reset run" will fail with the error messages below - the problem appears to be that OpenOCD believes that the target is halted when it is in fact running. It could be that MOE=0xe is simply what is returned when the target is running rather than halted... - cpsr is also reporting bogus values, which would make sense if the target is running instead of halted - if I issue a "halt" or "poll" after the "reset run", then the OpenOCD syncs up to the state of the target. User : 137 107590 command.c:396 command_print(): debug_level: 3 Debug: 139 109510 command.c:68 script_debug(): command - reset Debug: 140 109510 command.c:77 script_debug(): reset - argv[0]=ocd_reset Debug: 141 109520 command.c:77 script_debug(): reset - argv[1]=run Debug: 142 109530 target.c:4295 jim_target(): Target command params: Debug: 143 109540 target.c:4296 jim_target(): target names Debug: 144 109550 target.c:3414 target_handle_event(): event: 11 reset-start - no action Debug: 145 109550 core.c:1208 jtag_init_reset(): Trying to bring the JTAG controller to life by asserting TRST / RESET Debug: 146 109560 zy1000.c:129 zy1000_reset(): zy1000 trst=1, srst=0 Debug: 147 109570 core.c:653 jtag_add_reset(): SRST line released Debug: 148 109580 core.c:671 jtag_add_reset(): TRST line asserted Debug: 149 109580 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 150 109590 core.c:807 jtag_reset_callback(): - Debug: 151 109600 core.c:807 jtag_reset_callback(): - Debug: 152 109600 zy1000.c:129 zy1000_reset(): zy1000 trst=1, srst=1 Debug: 153 109610 core.c:649 jtag_add_reset(): SRST line asserted Debug: 154 109610 core.c:671 jtag_add_reset(): TRST line asserted Debug: 155 109620 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 156 109630 core.c:807 jtag_reset_callback(): - Debug: 157 109630 core.c:807 jtag_reset_callback(): - Debug: 158 109640 zy1000.c:129 zy1000_reset(): zy1000 trst=0, srst=1 Debug: 159 109650 core.c:649 jtag_add_reset(): SRST line asserted Debug: 160 109650 zy1000.c:129 zy1000_reset(): zy1000 trst=0, srst=0 Debug: 161 109660 core.c:653 jtag_add_reset(): SRST line released Debug: 162 109670 core.c:1161 jtag_init_inner(): Init JTAG chain Debug: 163 109670 core.c:291 jtag_call_event_callbacks(): jtag event: JTAG controller reset (RESET or TRST) Debug: 164 109680 core.c:807 jtag_reset_callback(): - Debug: 165 109690 core.c:807 jtag_reset_callback(): - Info : 166 109690 core.c:874 jtag_examine_chain_display(): JTAG tap: imx27.bs tap/device found: 0x1b900f0f (mfg: 0x787, part: 0xb900, ver: 0x1) Info : 167 109710 core.c:933 jtag_examine_chain_match_tap(): JTAG Tap/device matched Info : 168 109720 core.c:874 jtag_examine_chain_display(): JTAG tap: imx27.cpu tap/device found: 0x07926121 (mfg: 0x090, part: 0x7926, ver: 0x0) Info : 169 109730 core.c:933 jtag_examine_chain_match_tap(): JTAG Tap/device matched Debug: 170 109740 target.c:4295 jim_target(): Target command params: Debug: 171 109740 target.c:4296 jim_target(): target names Debug: 172 109750 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000000 Debug: 173 109760 arm7_9_common.c:61 arm7_9_clear_watchpoints(): - Debug: 174 109770 embeddedice.c:370 embeddedice_write_reg(): 12: 0x00000000 Debug: 175 109770 embeddedice.c:370 embeddedice_write_reg(): 20: 0x00000000 Debug: 176 109780 target.c:4295 jim_target(): Target command params: Debug: 177 109790 target.c:4296 jim_target(): target names Debug: 178 109790 target.c:3414 target_handle_event(): event: 12 reset-assert-pre - no action Debug: 179 109800 arm7_9_common.c:996 arm7_9_assert_reset(): target->state: running Debug: 180 109810 zy1000.c:129 zy1000_reset(): zy1000 trst=0, srst=1 Debug: 181 109820 core.c:649 jtag_add_reset(): SRST line asserted Debug: 182 109870 target.c:3414 target_handle_event(): event: 13 reset-assert-post - no action Debug: 183 109880 target.c:4295 jim_target(): Target command params: Debug: 184 109890 target.c:4296 jim_target(): target names Debug: 185 109900 target.c:3414 target_handle_event(): event: 14 reset-deassert-pre - no action Debug: 186 109910 arm7_9_common.c:1066 arm7_9_deassert_reset(): target->state: reset Debug: 187 109910 zy1000.c:129 zy1000_reset(): zy1000 trst=0, srst=0 Debug: 188 109920 core.c:653 jtag_add_reset(): SRST line released Debug: 189 109930 target.c:3414 target_handle_event(): event: 15 reset-deassert-post - no action Debug: 190 109940 target.c:4295 jim_target(): Target command params: Debug: 191 109940 target.c:4296 jim_target(): target names Debug: 192 109950 target.c:3414 target_handle_event(): event: 21 reset-end - no action Debug: 193 109960 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000005 Debug: 194 109970 embeddedice.c:370 embeddedice_write_reg(): 0: 0x00000005 Warn : 195 109970 arm926ejs.c:367 arm926ejs_examine_debug_reason(): WARNING: unknown debug reason: 0xe Debug: 196 109980 arm7_9_common.c:1389 arm7_9_debug_entry(): target entered debug from ARM state Error: 197 110000 armv4_5.h:117 armv4_5_mode_to_number(): invalid mode value encountered 0 Error: 198 110000 arm7_9_common.c:1417 arm7_9_debug_entry(): cpsr contains invalid mode value - communication failure Debug: 200 114200 command.c:68 script_debug(): command - debug_level Debug: 201 114200 command.c:77 script_debug(): debug_level - argv[0]=ocd_debug_level Debug: 202 114210 command.c:77 script_debug(): debug_level - argv[1]=1 debug_level: 1 -- Øyvind Harboe Embedded software and hardware consulting services http://www.zylin.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development