NFC and FOTA does not work

Hi

SDK: nRF Connect v2.6.1
uP: nRF52832

In my project I try to compbine NFC and FOTA (DFU over BLE). First I did setup a NFC project from the example "writable_ndef_msg". This is running. Then I did setup a demo project based on that example: https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-8-bootloaders-and-dfu-fota/

But after combining those two example project, FOTA does not run. In the "Device Manager" App on my mobile phone I received a "GATT CONN TIMEOUT" error, after starting a firmware upgrade. To speed up the start time, CONFIG_BOOT_VALIDATE_SLOT0=n is set to no in child_image/mcuboot.conf

I think I missed to set a configuration in the prj.conf file but I have no idea what could be wrong.

Further could that be a problem that NFC is allowed to write to the flash?

CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y

Attached you find my project.

Thanks and best regards
Markus

Parents
  • I am not an expert in this but looking into other forums it seems like there could be some configs missing in your prj.conf 

    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
    
    # you did not mention below but seems like this is needed
    CONFIG_FLASH_MAP=y
    CONFIG_STREAM_FLASH=y
    
    

    If this did not work, then I can try asking the author of the lesson to give some guidance. 

Reply
  • I am not an expert in this but looking into other forums it seems like there could be some configs missing in your prj.conf 

    CONFIG_BOOTLOADER_MCUBOOT=y
    CONFIG_NCS_SAMPLE_MCUMGR_BT_OTA_DFU=y
    
    # you did not mention below but seems like this is needed
    CONFIG_FLASH_MAP=y
    CONFIG_STREAM_FLASH=y
    
    

    If this did not work, then I can try asking the author of the lesson to give some guidance. 

Children
Related