Hi,

On Sun, Mar 15, 2015 at 07:27:43PM +0100, Daniel Kowalski wrote:
> proc program {} {
>     init
...

OpenOCD already has a "program" command, please consider using it
instead of cooking your own. The documentation has an appropriate
description.

There was discovered an issue with shutdown and program, and a patch
to fix that is proposed: http://openocd.zylin.com/2600 .

>     halt
>     wait_halt

halt already waits for halt, no need for wait_halt

>     flash write_image erase unlock Debug/image.bin 0 

I recommend using elf file directly, OpenOCD can parse them. Less
commands in a makefile, and less chances to make a mistake with
offset.

HTH!
-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to