On Sun, 15 Mar 2015 21:43:05 +0300 Paul Fertser <fercer...@gmail.com> wrote:
> 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. OK, I didn't know about that, now everything works perfectly with -c "program Debug/image.axf verify reset exit" (apart from verify, bacause of checksum required by MCU, but thats ok) > > 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! thanks for help! Daniel --
pgp1L1B9Qcm37.pgp
Description: OpenPGP digital signature
------------------------------------------------------------------------------ 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