On Thu, Oct 16, 2008 at 11:17 PM, Spen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am unable to get either of the following working.
>
> target_script 0 reset program.ocr
> [new_target_name] configure -event reset-init { script program.ocr }
>
> Looks like the TARGET_EVENT_RESET_INIT never gets called anywhere, has
> something changed?
See startup.tcl... reset-init is only invoked if the target could be
halted.
Perhaps it should be invoked even if waiting for halt fails?
#Pass 2 - if needed "init"
if { 0 == [string compare init $MODE] } {
foreach t [target names] {
set err [catch "$t arp_waitstate halted 5000"]
# Did it halt?
if { $err == 0 } {
$t invoke-event reset-init
}
}
}
> If i change the reset-init to reset_start then the script gets called.
That's another event.
>
> Cheers
> Spen
>
> _______________________________________________
> Openocd-development mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/openocd-development
>
--
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer
Free eCos workshop in Oslo October 21!
http://www.zylin.com/workshop.html
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development