Hi David,

Is there a reason you want/need to replace the bootloader while an app is 
running on a device? This is a pretty atypical scenario, in my opinion.

thanks,
aditi


> On Nov 11, 2016, at 11:16 AM, David G. Simmons <[email protected]> wrote:
> 
> Interesting side-effect:
> 
> If the blinky app is running, and I attempt to re-load a new version of the 
> bootloader I'm back to:
> 
> DSimmons-Pro:arduino_zero dsimmons$ newt load arduino_boot
> Loading bootloader
> Error: Downloading 
> /Users/dsimmons/dev/arduino_zero/bin/targets/arduino_boot/app/apps/boot/boot.elf.bin
>  to 0x0
> Open On-Chip Debugger 0.9.0 (2015-11-15-05:39)
> Licensed under GNU GPL v2
> For bug reports, read
>       http://openocd.org/doc/doxygen/bugs.html
> Info : only one transport option; autoselect 'swd'
> adapter speed: 500 kHz
> adapter_nsrst_delay: 100
> cortex_m reset_config sysresetreq
> Info : CMSIS-DAP: SWD  Supported
> Info : CMSIS-DAP: JTAG Supported
> Info : CMSIS-DAP: Interface Initialised (SWD)
> Info : CMSIS-DAP: FW Version = 01.1F.0118
> Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
> Info : CMSIS-DAP: Interface ready
> Info : clock speed 500 kHz
> Info : SWD IDCODE 0x0bc11477
> Info : at91samd21g18.cpu: hardware has 4 breakpoints, 2 watchpoints
> Error: Target not halted
> 
> However, if I then go crash it via the console, then I can load a new 
> bootloader. 
> 
> I don't know if this is significant, but basically with blinky the way it is, 
> you cannot load a new bootloader onto the Arduino Zero Pro without either a) 
> crashing mynewt first or b) erasing the flash. 
> 
> dg
> 
> 
>> On Nov 11, 2016, at 1:53 PM, Christopher Collins <[email protected]> wrote:
>> 
>> Since we are hoping to release soon, I'm inclined to say let's keep
>> blinky how it is for now.  We can figure out the right solution for the
>> next release.  I'm certainly open to hearing opposing viewpoints,
>> though.
> 
> --
> 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.
> 
> 

Reply via email to