Flash area error while doing DFU using nRF Connect

Dear support team,

I am getting an error while performing DFU using nRF Connect.

My SDK version is 2.4.2, I need to do DFU using BLE simultaneously, for that i tried to modify Example mcuboot_smp_ble_simultaneous , but without modifying anything, while performing DFU by compiling this code i am getting this error, Even after getting this error new imaged is flashed successfully after DFU. i don't know the reason. my complete serial log is attached bellow. 

If any idea regarding this, please help. Thanks in advance.
Parents
  • Hi,

    Which target board do you build for?

    Regards,
    Sigurd Hellesvik

  • Hi Sigurd,
    I have not had a chance to run the sample yet, but have a comment. It seems the log in your post is from power on. The error message shows itself, at least in our case, when uploading a new image. Note that the DFU completes successfully, but we get some support cases and confusion from users.

    We see the same behavior with nRF Connect, nRF Connect Device Manager and mynewt-mcumgr-cli

    Thanks for the sample, it's always a good idea to eliminate what we can.

  • KjellArne Amina said:
    I have not had a chance to run the sample yet, but have a comment. It seems the log in your post is from power on. The error message shows itself, at least in our case, when uploading a new image. Note that the DFU completes successfully, but we get some support cases and confusion from users.

    Krish has got the difference. I just have not enabled logging in my application, so the mcumgr module does not complain visibly.

    Then I will see the same I suspect.

    I will do that next week and look into what this is.

    Note: Since DFU still works this is not my top priority, but I will do it.

  • Hi,

    Regards for the update. In this case, we still have one more question. Specifically, the following workaround is present in the overlay file.

    When compiling without this, we encounter compilation errors. The code for the nRF5340DK is functioning properly with this. Consequently, will you kindly provide some light on this?

    I am grateful for your support. Regards in advance.

  • Let's keep this ticket for the "Failed to open flash area ID 1: -2" error specifically.

    If you face other build errors, please create a new ticket.
    This will help us keep Devzone tidy. Thanks!

  • I ran the example myself now, and I saw the same error: "Failed to open flash area ID 1: -2".

    Digging into the error code, the error is that the mcumgr drivers try to open mcuboot_primary_1, which is in simulated RAM-flash. And this can not be opened as such.

    When we upload a new image with the app, the upload button will trigger multiple SMP Command being sent to the nRF. Among these is the image state command.
    With this, the nRF tries to return information about all images to the phone.
    Since the nRF cannot read the RAM-flash, as this is a "trick" we use to update the network core, it will return an error.

    This should not interfere in your DFU from what I can see.

Reply
  • I ran the example myself now, and I saw the same error: "Failed to open flash area ID 1: -2".

    Digging into the error code, the error is that the mcumgr drivers try to open mcuboot_primary_1, which is in simulated RAM-flash. And this can not be opened as such.

    When we upload a new image with the app, the upload button will trigger multiple SMP Command being sent to the nRF. Among these is the image state command.
    With this, the nRF tries to return information about all images to the phone.
    Since the nRF cannot read the RAM-flash, as this is a "trick" we use to update the network core, it will return an error.

    This should not interfere in your DFU from what I can see.

Children
  • Hi Sigurd,
    Good of you to confirm our suspicions. As we said, the DFU works so it does not block our progress. However, it is generating some support requests for our product, when customers and testers think that there is an issue with the firmware update.

    We would appreciate a ticket to remove the incorrect error message in a future nrf connect sdk release

    Best regrards
    Kjell Arne

  • KjellArne Amina said:
    We would appreciate a ticket to remove the incorrect error message in a future nrf connect sdk release

    I have now created an internal ticket.