On Mon, Jul 8, 2013 at 3:18 PM, Laszlo Papp <[email protected]> wrote:

> > What other config files do you use? (i.e show the complete command line)
>
> Well, the interface is simply this: source [find
> interface/ftdi/flyswatter.cfg] -> I also tried [find
> interface/flyswatter.cfg]
>
> The board config is something like this:
>
> proc programFoo ()
> {
>     global foo
>     global foo_addr
>     global foo_size
>     halt
>     wait_halt
>     arm7_9 dcc_downloads enable
>     sleep 15
>     poll
>     mww a b
>     sleep 15
>     flash erase_address $foo_addr $foo_size
>     flash write_image  $foo $foo_addr
>     sleep 15
>     reset run
>     sleep 15
>     shutdown
> }
>
> To be completely precise just in case: openocd -f flyswatter.cfg  -c
my_board.cfg "init" -c "reset_init" -c "programFoo ()"

Cheers,
Laszlo
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to