ARM-USB-OCD-H timed out while waiting for target halted

Started by wmchang, October 14, 2013, 12:43:59 PM

Previous topic - Next topic

wmchang

I am using an Arm-USB-OCD-H with openOCD v 0.6.1 and 0.7.0
On a STM32F10x system.

It functioned just fine for a long time, but now it can not halt the STM32.
The halt function produces the following message

> halt
Halt timed out, wake up GDB.
timed out while waiting for target halted
in procedure 'halt'


I have the following function in the configuration file that i use for stand-alone programming

proc program_device {filename} {
    set flash_address 0x08000000
    #halt the processor 
    reset init
    sleep 10
    # write file to flash memory   
    flash probe 0
    sleep 10
    flash write_image erase unlock $filename $flash_address
    verify_image $filename $flash_address
}


I use the ST-LINK JTAG programmer, which works just fine. So it's not the hardware..

Please help......


LubOlimex

Hey there,

If everything worked fine for a long time and then it stopped it might be a hardware problem (if you use the debugger in the same conditions as you did before without introducing new hardware to the setup).

This is the run commands we use in the Eclipse environment we have here:

target remote localhost:3333
monitor reset halt
monitor wait_halt
monitor sleep 100
monitor poll
monitor flash probe 0
monitor flash write_image erase main.bin 0x08000000
monitor sleep 200
monitor soft_reset_halt
monitor wait_halt
monitor poll
thbreak main
continue

If you use MS Windows you might check if it is a hardware problem by testing with Olimex ODS IDE: https://www.olimex.com/Products/ARM/JTAG/_resources/OpenOCD/

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex