+++ Peter Korsgaard [2009-05-19 13:41 +0200]: > >>>>> "Wookey" == Wookey <woo...@wookware.org> writes: > > Hi, > > Wookey> 1) Is there a way to output a user message? Currently > Wookey> flash write_image erase kernel/zImageInitrd 0x200000 bin > Wookey> involves a 10-minute pause. It would be great if there was a way to > Wookey> display > Wookey> 'programming flash with kernel/root image now - should take 10 mins' > Wookey> so the user didn't think it had died. > > Yes, just use echo "message"
OK. Great. (cheers peter) But I failed to find any mention of that in 'General commands' in the manual. And it's not listed in 'help' either. So attached is a patch for the manual so that people have a fighting chance of discovering it. (how many other secret commands are there I wonder :-) Loking at the source I see that ocd_find, echo and capture are all registered with Jim_CreateCommand and have no help associated with them because Jim_CreateCommand doesn't support that, whereas register_command does. I'm not at all familar with this stuff so hesitate to go fiddling where I don't understand. But clearly having those commands appear in the help, along with some explanation would be a useful improvement. And SFAICT neither capture nor ocd_find appear in the manual either. I haven't added them as I have no idea what they do. Wookey -- Principal hats: iEndian - Balloonboard - Toby Churchill - Emdebian http://wookware.org/
--- openocd.texi~ 2009-05-19 09:18:25.000000000 +0100 +++ openocd.texi 2009-05-19 13:22:55.000000000 +0100 @@ -2588,6 +2588,10 @@ openocd -c "fast enable" -c "interface dummy" -f target/str710.cfg @end example +...@subsection echo <@var{message}> +...@cindex echo +...@*output message to stdio. e.g. echo "Programming - please wait" + @subsection log_output <@var{file}> @cindex log_output @*Redirect logging to <file> (default: stderr)
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development