I think adding the erase command to newt is/was a great idea. This way there can be a standard way of erasing the supported board flash contents. I think the newt erase command should be able to erase the entire flash as well as portions of the flash.
> On Nov 11, 2016, at 9:19 AM, Kevin Townsend <[email protected]> wrote: > > You'll need to change the chip ID (there is a list available on Segger's > website), but if you are using a JLink you can also try this and then send > the '*erase*' command once you're connected, just as a FYI: > > $ jlinkexe -device nrf52832_xxaa -if swd -speed auto -autoconnect 1 > > > On 11/11/16 18:00, David G. Simmons wrote: >> This was the bit I was missing ... >> >> All good now! I guess I should add this to the tutorial. >> >> dg >> >>> On Nov 11, 2016, at 11:55 AM, will sanfilippo <[email protected]> wrote: >>> >>> # Erase the flash >>> newt debug arduino_zero_blinky >>> >>> (gdb) mon at91samd chip-erase >>> chip erased >>> chip erased >>> (gdb) x/32wx 0 >>> 0x0: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x10: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x20: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x30: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x40: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x50: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x60: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> 0x70: 0xffffffff 0xffffffff 0xffffffff 0xffffffff >>> (gdb) q >> -- >> David G. Simmons >> (919) 534-5099 >> Web <https://davidgs.com/> • Blog <https://davidgs.com/davidgs_blog> • >> Linkedin <http://linkedin.com/in/davidgsimmons> • Twitter >> <http://twitter.com/TechEvangelist1> • GitHub <http://github.com/davidgs> >> /** Message digitally signed for security and authenticity. >> * If you cannot read the PGP.sig attachment, please go to >> * http://www.gnupg.com/ <http://www.gnupg.com/> Secure your email!!! >> * Public key available at keyserver.pgp.com <http://keyserver.pgp.com/> >> **/ >> ♺ This email uses 100% recycled electrons. Don't blow it by printing! >> >> There are only 2 hard things in computer science: Cache invalidation, naming >> things, and off-by-one errors. >> >> >> >
