This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Updating nrf52840 through nrf9160 on the nrf9160dk

Hello! I'm currently working on updating nrf52840 through nrf9160 on the nrf9160dk like this thread and this thread

Currently i have this setup:

On 9160:

I've implemented mcuboot and mcumgr with a prj.conf similar to the one in this thread.

The setup works great with both shell command on the chip and mcumgr-cli commands from the terminal working. In other words i am able to upload images using the mcumgr ... image upload FILE.bin command, though very slow for some reason (2kB/s), and also write shell commands when listening on a screen.

On 52840:

The implementation is identical except for

CONFIG_BOARD_NRF9160DK_INTERFACE0_MCU=y
CONFIG_BOARD_NRF9160DK_INTERFACE1_MCU=y 

in the prj.conf to connect them. However this no longer works after i updated the sdk.

The applications on both are just:

#include <zephyr.h>
#include <sys/printk.h>
#include <fs/fs.h>
#include "fs_mgmt/fs_mgmt.h"
#include <fs/littlefs.h>
#include "os_mgmt/os_mgmt.h"
#include "img_mgmt/img_mgmt.h"
#include "stat_mgmt/stat_mgmt.h"
void main(void)
{
img_mgmt_register_group();
os_mgmt_register_group();
fs_mgmt_register_group();
stat_mgmt_register_group();
printk("Hello 52!\n");
}

Problems:

1. Assuming I can increase the speed of transfer, how do i do that?

2. What are the new kconfigs for connecting 9160 and 52840?

3. How can i transfer a 52840 image from the mcuboot second slot on 9160 to mcuboot second slot on 52840?

I'm on linux, Zephyr version 2.4.99, sdk version 1.5.0

Thanks!

Parents
  • Hello, Erlend!

    Great to hear that you're progressing! 

    1. Increasing the baud rate of the UART is likely the best method for increasing the transfer speed. Though, based on what Jared writes in this thread there may be some lack of support for increased speed on the Zephyr-side of things. 
    2. This functionality has been moved out of Kconfig and into the Device Tree Structure (DTS). You can find more information about this in the nRF9160DK - nRF52840 documentation.
    3. I'll get back to you on this shortly, but if you get an SMP client running on the nRF52 it should be possible to transfer the image from the nRF9160 using SPM and mcumgr. 

    Best regards,
    Carl Richard

Reply
  • Hello, Erlend!

    Great to hear that you're progressing! 

    1. Increasing the baud rate of the UART is likely the best method for increasing the transfer speed. Though, based on what Jared writes in this thread there may be some lack of support for increased speed on the Zephyr-side of things. 
    2. This functionality has been moved out of Kconfig and into the Device Tree Structure (DTS). You can find more information about this in the nRF9160DK - nRF52840 documentation.
    3. I'll get back to you on this shortly, but if you get an SMP client running on the nRF52 it should be possible to transfer the image from the nRF9160 using SPM and mcumgr. 

    Best regards,
    Carl Richard

Children
No Data
Related