Hi, Am 02.06.2013 06:57, schrieb Stuart Longland (VK4MSL): > I'm just trying to debug a problem that has cropped up out of the blue. > I have a couple of STM32F103VE-based microcontrollers which I'm > programming using a Olimex ARM-USB-TINY-H JTAG programmer. > > Host environment is Open On-Chip Debugger 0.7.0-dev-00080-g59c051c-dirty > (2013-01-25-19:17), from the Gentoo ebuild. > > I'm invoking openocd with the following: >> openocd -f interface/olimex-arm-usb-tiny-h.cfg -f target/stm32f1x.cfg > > which up until now has worked fine, I've been able to telnet in to port > 4444, and flash my devices, even hook up gdb. I was doing some > debugging today, no problems flashing the devices until suddenly, it > stopped halting the device. No configuration files had been changed.
Do you use Sleep or low power modes? Did you mess with the clock? > When I issue a `reset init`, I get: >>> reset init >> JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg: 0x23b, part: >> 0xba00, ver: 0x3) >> JTAG tap: stm32f1x.bs tap/device found: 0x06414041 (mfg: 0x020, part: >> 0x6414, ver: 0x0) The JTAG adapter works and seems to talk to the target JTAG tap... >> Halt timed out, wake up GDB. >> timed out while waiting for target halted >> TARGET: stm32f1x.cpu - Not halted ... but not to the Cortex M core. >> in procedure 'reset' > > Turning up debugging I get: > [..skipped..] >> Debug: 398 74782 cortex_m.c:974 cortex_m3_assert_reset(): target->state: >> reset >> Debug: 399 74788 cortex_m.c:1065 cortex_m3_assert_reset(): Using Cortex-M3 >> SYSRESETREQ >> Debug: 400 74790 cortex_m.c:597 cortex_m3_halt(): target->state: reset >> [...] > > Is there any way, using openocd, to determine if it's something wrong > with the targets (all three seem to have failed, and all were working > earlier), or if the JTAG device has failed? Have you connected the SRST line? Then you could try: "reset_config srst_only separate" Using a low JTAG clock might also be helpful: "adapter_khz 10" -- Jörg Fischer ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
