target.cfg file - configuration problem

I am trying to configure OpenOCD for our customized board.

Problem :

Need to execute some board specific commands while reset-init,

proc my_proc { } {

mww …

sleep …

}

$_TARGETNAME configure -event reset-init my_proc

but this is not working, target never invokes inside braces.

Can anybody help ??

Hello xxx,

try this:

$_TARGETNAME configure -event reset-init {

mww …

sleep …

}

Regards,

Michael

Thanks but that was my first try. It didn’t worked out so I tried it with proc.

Anything else I should know or give a try ?