On Thu, May 9, 2013 at 6:28 PM, Salvador Arroyo <salva...@telecable.es>wrote:

> On 05/09/2013 04:24 PM, Mindy Beseler wrote:
> > I'm using openOCD with a flyswatter3 probe on a PIC32 USB starter Kit II
> under gdb trying to "load" a program that's being written to flash but the
> flash programming doesn't seem to work.
> > (gdb) load leds.hex
> > Loading section .sec1, size 0x124 lma 0x1fc00000
> > Loading section .sec2, size 0x10 lma 0x1fc02ff0
> > Error finishing flash operation
> >
> > The erase works and after the load fails reading memory shows nothing
> was written to flash.
> >
> > Gdb does know this is flash and is using the RPC flash commands:
>

>
I think this should work:
>
> (gdb) monitor flash write_image leds.hex
>
> I never tried with "load" from gdb.
>

It "should" give the same result.

Make sure the target is reset before trying to program flash. A "reset
init" in the gdb flash start and end event handlers is usually a good idea.

/Andreas
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to