On Fri, Jul 18, 2008 at 8:31 AM, Michael Schwingen <[EMAIL PROTECTED]> wrote: > Øyvind Harboe wrote: > >>> If there is a reset init script and a reset_init command, of course the >>> init script should be run. If I do a reset, there are many possible >>> scenarios where I want to keep as much processor state as possible, so >>> reset halt is a very reasonable bahiviour unless a different default reset >>> behaviour is specified. >> >> I don't know what to make of the above. You are an expert on these >> things, so you understand all the different types of resets and you >> have all of them available to you. > > I am not sure if I understood the beginning of this duscussion. > > It is important that I can switch during runtime what type of reset I want. > I regularly need both:
You can choose the type of reset by the argument to reset "reset init" *always* executes the init script "reset halt" *always* executes a reset halt. What we are discussing is the case without any arguments "reset". I'd like it to always do a "reset init". > For some work, it might be ueful to be able to switch between multiple > different init scripts - reset halt might then be considered a special > case with an empty init script. With tcl you can define any procedure you want: #add to .cfg file proc dosomething {} { reset init # do more stuff here... } In telnet type: dosomething -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development