nf52 fota

Hi,

I'm trying to run some example with ble fota

I've read

http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_nrf52.html#fota-upgrades

and 

http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/mgmt/mcumgr/smp_svr/README.html#smp-svr-sample

I did the following steps in my repository

C:\NRF_Connect\v1.7.1> west build -b nrf52dk_nrf52832 -d build_mcuboot bootloader/mcuboot/boot/zephyr
C:\NRF_Connect\v1.7.1> west flash -d build_mcuboot

C:\NRF_Connect\v1.7.1\zephyr> west build -b nrf52dk_nrf52832 samples/subsys/mgmt/mcumgr/smp_svr -- -DOVERLAY_CONFIG=overlay-bt.conf -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"bootloader/mcuboot/root-rsa-2048.pem\"
C:\NRF_Connect\v1.7.1\zephyr> west flash --bin-file build/zephyr/app_update.bin

Like You can see above I'm using nrf52dk_nrf52832 and the newest sdk version.

After flashing nrf52dk, it looks like bootloop... 

I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
▒*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
▒*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
▒*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
*** Booting Zephyr OS build v2.6.99-ncs1-1  ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
▒*** Booting Zephyr OS build v2.6.99-ncs1-1  ***

What am I doing wrong?

Parents
  • Hi,

    CONFIG_LOG=y was already enabled so I added CONFIG_RESET_ON_FATAL_ERROR=n.

    That is how prj.conf looks

    # Enable mcumgr.
    CONFIG_MCUMGR=y
    
    # Some command handlers require a large stack.
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
    
    # Ensure an MCUboot-compatible binary is generated.
    CONFIG_BOOTLOADER_MCUBOOT=y
    
    # Enable flash operations.
    CONFIG_FLASH=y
    
    # Required by the `taskstat` command.
    CONFIG_THREAD_MONITOR=y
    
    # Enable statistics and statistic names.
    CONFIG_STATS=y
    CONFIG_STATS_NAMES=y
    
    # Enable most core commands.
    CONFIG_MCUMGR_CMD_IMG_MGMT=y
    CONFIG_MCUMGR_CMD_OS_MGMT=y
    CONFIG_MCUMGR_CMD_STAT_MGMT=y
    
    # Enable logging
    CONFIG_LOG=y
    CONFIG_MCUBOOT_UTIL_LOG_LEVEL_WRN=y
    
    # Disable restart
    CONFIG_RESET_ON_FATAL_ERROR=n

    Console output 

    *** Booting Zephyr OS build v2.6.99-ncs1-1  ***
    I: Starting bootloader
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    I: Swap type: none
    I: Bootloader chainload address offset: 0xc000
    ▒*** Booting Zephyr OS build v2.6.99-ncs1-1  ***

  • Hi,

    I will try to run the SMP server and replicate your problem. I will get back to you soon. 

    Regards,

    Priyanka

  • Hi Kamil,

    Which platform are you working on? Windows, Linux or MacOS?

Reply Children
Related