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: > (gdb) info mem > Using memory regions provided by the target. > Num Enb Low Addr High Addr Attrs > 0 y 0x00000000 0x1d000000 rw nocache > 1 y 0x1d000000 0x1d080000 flash blocksize 0x1000 nocache > 2 y 0x1d080000 0x1fc00000 rw nocache > 3 y 0x1fc00000 0x1fc03000 flash blocksize 0x1000 nocache > 4 y 0x1fc03000 0x9d000000 rw nocache > 5 y 0x9d000000 0x9d080000 flash blocksize 0x1000 nocache > 6 y 0x9d080000 0x9fc00000 rw nocache > 7 y 0x9fc00000 0x9fc03000 flash blocksize 0x1000 nocache > 8 y 0x9fc03000 0xbd000000 rw nocache > 9 y 0xbd000000 0xbd080000 flash blocksize 0x1000 nocache > 10 y 0xbd080000 0xbfc00000 rw nocache > 11 y 0xbfc00000 0xbfc03000 flash blocksize 0x1000 nocache > 12 y 0xbfc03000 0x00000000 rw nocache > > I didn't see any ticket in the bug tracking system: > http://sourceforge.net/apps/trac/openocd/ > > Does this work and I am just doing something wrong? If so, what? > > Thanks, > Mindy > > > ------------------------------------------------------------------------------ > 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 I think this should work:
(gdb) monitor flash write_image leds.hex I never tried with "load" from gdb. See more command/options with: (gdb) monitor help flash Thanks Salvador. ------------------------------------------------------------------------------ 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