Bonding randomly loss after DFU

Hi there,

I am using nrf connect sdk v2.6.0. I have noticed that after DFU update, I am seeing ble bonding lost randomly on firmware side. I did uncheck Erase Application Settings before DFU and I tried on both Device Manager app as well as nrf connect app and on both Android/IOS. I am attaching dts snippet and prj.conf for reference.

Thanks M

&flash0 {

	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x00000000 0x0000C000>;
		};
		slot0_partition: partition@c000 {
			label = "image-0";
			reg = <0x0000C000 0x00076000>;
		};
		slot1_partition: partition@82000 {
			label = "image-1";
			reg = <0x00082000 0x00076000>;
		};

		/*
		 * The flash starting at 0x000f8000 and ending at
		 * 0x000fffff is reserved for use by the application.
		 */

		/*
		 * Storage partition will be used by FCB/LittleFS/NVS
		 * if enabled.
		 */

		app_storage_partition: partition@f8000 {
			label = "appstorage";
			reg = <0x000f8000 0x00006000>;
		};
		storage_partition: partition@fe000 {
			label = "storage";
			reg = <0x000fe000 0x00002000>;
		};
	};
};

6786.prj.conf

Parents Reply
  • Hi,

    I added Mcuboot support and OTA DFU in peripheral_hids_keyboard sample in SDK v2.6.0 and v3.1.0

    In both SDK sometime after updating my application to the new version the connection between my phone and the application is NOK. In fact you can see that after swaping to the new version my phone is trying to connect using its random BDA resulting the application not recognizing it and disaproving the connection.

    SDK v2.6.0 :   

    SDK v3.1.0  :   

    But sometimes with SDK v3.1.0 I can do the upgrade to a newer version and my phones reconnect after. It connects with it public address and so their is no disconnection asked from the nRF application.

    I added those files to the peripheral_hids_keyboard sample, I let you do the same tests to see if the issue is coming from my setup.

    files_to_add_in_sample.zip

    You can just unzip in the sample

    Thibaud

Children
Related