Problem using OpenOCD on STR712

Hello everyone,

I’m a trainee and I’m actually trying to use openOCD in order to flash a progam already compile with arm-elf-g++. The thing is that when I connect my JTAG cable to my board (with a STR712FR2 on it), I’m getting those errors using openOCD:

halt

timed out while waiting for target halted

Runtime error, file “command.c”, line 469:

I normally have to setup some info about flash with this:

flash protect B0F 0 1 off

but as I’m not able to halt the target, no way to launch it.

Whatever, I was thinking that maybe I can flash my program even without those steps, but no way, according to this:

flash write_image erase V10_01A-rom.bin 0x40000000

auto erase enabled

Target not halted

failed erasing sectors 0 to 6 (-304)

called at file “command.c”, line 469

called at file “embedded:startup.tcl”, line 89

called at file “embedded:startup.tcl”, line 91

called at file “embedded:startup.tcl”, line 93

I’m thinking that maybe it’s related to the fact that my µC might be busy, but how can I take back tha control? Am I doing something wrong?

PS : I have found this TOPIC, related to my issue, but I’m not getting how to use the solution proposed :S

viewtopic.php?p=93196

To get an idea of the problem you will have to provide a full debug log details of the config used.

openocd -d 3 -l openocd.log [other cmds]

Cheers

Spen

Apparently I was facing issues with my X-tools I used to launch OpenOCD. I’ll let you know if I’m facing this kind of preoblems again.

Thanks.