How to set up OpenOCD with IAR Demo ver.5.11 toolset?

Hello,

I am new to ARM + OpenOCD + IAR toolset.

Can someone help me by guiding on “how to set up openOCD with IAR Demo ver. 5.11 toolset (32KB limited)”

I tried setting the options for debugging but it did not work, stating that OpenOCD is not running.

I have OpenOCD ver 1.0, and tried to execute it from command line while the IAR toolset is running.

Regards.

http://www.simonqian.com/en/Versaloon/h … p20ks.html

5.11 is not recommended, latest version is recommended.

I have only KS free version, so I can only test on that version.

Hello,

Thanks for your reply SimonQian.

It could connect with OpenOCD, in IAR KS ver.5.11, & programmed the chip also.

But it could NOT debug, because it could not write at some location,

& the message was “…SWJ-DP sticky error…”.

The part of the dump is as follows…

Error: dcb_dhcsr 0x30003, nvic_shcsr 0x20000, nvic_cfsr 0x1, nvic_bfar 0xe000edf8

Warn : BUG: keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (13000)

Error: SWJ-DP STICKY ERROR

Error: dcb_dhcsr 0x30003, nvic_shcsr 0x20000, nvic_cfsr 0x1, nvic_bfar 0xe000edf8

Warn : Block write error address 0x8000a28, wcount 0x32

Error: unexpected error -107

Warn : negative reply, retrying

Warn : negative reply, retrying

Warn : negative reply, retrying

Info : dropped ‘gdb’ connection - error -400

This may be because i have NOT updated as indicated by you on your web page, Step 1.

The ST’s website has the update for ver.5.20, i could not find for ver.5.11.

Can you tell me the exact link or share that update with me, if you have.

Thank for your prompt help.

Regards.