Not able to perform dfu over ble using nrf7002

I am using a module MS12SF1(nrf5340 + nrf7002). I wanted to perform dfu over ble by using nrf7002dk_nrf5340_cpuapp_ns or nrf7002dk_nrf5340_cpuapp build configurations but as soon as I enable the dfu configurations and flash the code I don't get anything in the logs and bluetooth also stops advertising 
I was trying this on peripheral_uart sample code 

I followed the course as well but nothing helped
What can be the issue?

Using sdk v2.6.1

Parents
  • Hi, 

    It's not clear to me what is the issue from the limited information. 

    Here is my test project peripheral_uart_nrf7002DK_DFU.7z which can run peripheral_uart with BLE DFU on nRF7002DK in NCS v2.6.1.

    The build command is  

    west build -p -b nrf7002dk_nrf5340_cpuapp -d build_nrf7002dk_nrf5340_cpuapp -- -DOVERLAY_CONFIG=overlay-bt.conf

    It requires extra board/BLE DFU configs and overlay files for nRF7002DK. 

    “Beware that this code/configuration is not fully tested or qualified and should be considered provided “as-is”. Please test it with your application and let me know if you find any issues.”

    Regards,
    Amanda H.

  • Hey Amanda 
    The code which u shared above for dfu for DK I was testing using external flash as the secondary slot 
    The issue is that the dfu worked for the first time but when I tried to perform it for a different file it was continuously failing 
    I was getting no_file_slot(9) error as it was not clearing the older image

    I found 

    CONFIG_MCUMGR_GRP_IMG_ALLOW_ERASE_PENDING=y this configuration, by doing this I wasn't getting no_file_slot error but was getting hash not found error

    What can be the reason??
  • Are you testing on nRF7002DK?

    Do you update the file with the same static partition? You can duplicate build/partitions.yml, place it in the app folder, and rename it to pm_static.yml to build.   

Reply Children
No Data
Related