nrf5340 Serial recovery for the NET-core

Hi:

I am developing a product based on nrf5340. 

Now I am able to update the application core and network core via the BLE over the external flash. In case of any unexpected case(e.g. application core or network core crashes), it can enter the MCUboot Serial recovery mode to recover the FW by USB CDC,

now the problem is that the application core can be recovered, but the network core can not.

I set CONFIG_NRF53_MULTI_IMAGE_UPDATE= y

1. upload the net_core_app_update.bin by mcumgr.exe, everything is OK 

2. reset, but the network core version(CONFIG_FW_INFO_FIRMWARE_VERSION) is not changed (it can be seen by the log)

My question is how to update the network core in recovery mode?

Another issue is the 'image 1 version' list by mcumgr is not CONFIG_FW_INFO_FIRMWARE_VERSION, the 'image 0 version' has no problem, the same as the CONFIG_MCUBOOT_IMAGE_VERSION.

Where does the image 1 version come from?

Thanks!

Parents
  • Hi, 

    I have nRF53 MCUBoot Serial Recovery Sample over USB CDC for netcore and appcore with mcumgr in this post, but it's for v2.2.0. Hope that can help you. 

    Regards,
    Amanda H.

  • Hi,

    I found it was due to enabling the ANT+ feature. if no enable ANT+ , everything is OK.

    If enable ANT+, it returns an error after upload the net_core_app_update.bin by mcumgr.exe, 

    nrf\subsys\pcd\src\pcd.c pcd_fw_copy_status_get() return PCD_STATUS_COPY_FAILED

    I attached my sample code based on the nrf5340DK.

    If the ANT+ configuration is disabled in child_image/hci_rpmsg/prj.conf, the net-core recovery works, otherwise doesn't work.

    please add the below build argument when editing the build configuration. 

    -Dhci_rpmsg_b0n_OVERLAY_CONFIG:STRING="overlay-minimal-size.conf"
    -Dhci_rpmsg_b0n_CONFIG_RESET_ON_FATAL_ERROR:STRING="y"

     recovery_mode_test.zip

    So, how to make the net-core recovery work with ANT+ feature?

Reply
  • Hi,

    I found it was due to enabling the ANT+ feature. if no enable ANT+ , everything is OK.

    If enable ANT+, it returns an error after upload the net_core_app_update.bin by mcumgr.exe, 

    nrf\subsys\pcd\src\pcd.c pcd_fw_copy_status_get() return PCD_STATUS_COPY_FAILED

    I attached my sample code based on the nrf5340DK.

    If the ANT+ configuration is disabled in child_image/hci_rpmsg/prj.conf, the net-core recovery works, otherwise doesn't work.

    please add the below build argument when editing the build configuration. 

    -Dhci_rpmsg_b0n_OVERLAY_CONFIG:STRING="overlay-minimal-size.conf"
    -Dhci_rpmsg_b0n_CONFIG_RESET_ON_FATAL_ERROR:STRING="y"

     recovery_mode_test.zip

    So, how to make the net-core recovery work with ANT+ feature?

Children
No Data
Related