Hi,

I checked in a package that can be included in bootloader, and
it will accept image upgrades over serial port.

It expects that the image upgrade is done using the newtmgr
protocol. Command set that it supports is limited; it can list images,
accept an image upload command (stores it to slot 0), and also reset.

For testing, I added a snippet of code to apps/boot which can
be conditionally compiled in by defining target features for boot loader
to include BOOT_SERIAL.
The code monitors a GPIO pin, and if it’s set to specific state during
bootup, it’ll enter the serial downloader, awaiting these commands.
Again for testing, I added the pin config to use for Arduino MKR1000
BSP.

Here’s my target definition for using this, in case you want to try this
out:
[marko@IsMyLaptop:~/src/incubator-mynewt-blinky]$ newt target show boot_mkr1000 
targets/boot_mkr1000
    app=@apache-mynewt-core/apps/boot
    bsp=@mynewt-arduino-zero/hw/bsp/arduino_mkr1000
    build_profile=optimized
    features=BOOT_SERIAL 

Feedback appreciated,
M

> On Jun 17, 2016, at 4:26 PM, [email protected] wrote:
> 
> boot; conditionally check whether to expect image download commands
> over serial. Whether code gets built in depends on target features.
> 
> 

Reply via email to