Hi Kevin,

> On Jun 7, 2016, at 5:07 AM, Kevin Townsend <[email protected]> wrote:
> 
> Dev probably isn't the ideal place to post this, but I'm filing it here in 
> case the request is useful to other people in the future.
> 
> I'm trying to determine how the bootloader functions with image management, 
> and what functionality is currently in place, and I was hoping someone could 
> clarify is whether flashing only the bootloader (on the nRF51822 in this 
> case) is enough to allow for firmware updates over serial?

It is not. Bootloader does not have serial port or newtmgr command processing 
in it.
Image uploads/list etc commands are processed by the app itself.

Bootloader gets instructed by the app what image to boot next, and it acts on 
this info
on next reset.

If you can type in console input and see responses over the serial, then the 
target should
be able to process newtmgr commands as well (assuming newtmgr is included, of 
course).

> I've tried the following with a custom BSP that I've confirmed USB Serial 
> works for with a JLink:
> 
>   # Flash the bootloader with a JLink
>   $ newt load nrf51_boot
> 
>   # Show the previously created connection profile for newtmgr
>   $ newtmgr conn show
>   Connection profiles:
>      serial1: type=serial, connstring='/dev/tty.usbserial-DJ004OSX'
> 
>   # You can see the right tty instance is used below
>   $ ls /dev/tty.*
>   /dev/tty.Bluetooth-Incoming-Port /dev/tty.usbserial-DJ004OSX
> 
>   # Try to run any command using the connection profile above, but
>   they all freeze and I need to enter CTRL+C to escape
>   $ newtmgr -c serial1 image list
> 
> I know the serial setup is good since I can send commands to the shell when I 
> flash a firmware image with the same BSP using a JLink, but newtmgr doesn't 
> seem to do anything meaningful on the nRF51822 for me.
> 
> One noteworthy indicator that makes me wonder if serial support is 
> implemented is that we have LEDs on the HW TX and RX lines and it doesn't 
> seem the be transmitting any data over UART since the LEDs never light up. 
> Perhaps newtmgr and serial bootloader support is limited to a specific MCU 
> family as of 0.9.0-rc3?

AFAIK, it should be functional for all platforms that have driver for UART.
I.e. all of the ones in the tree.

Hope this helps,
M

Reply via email to