device reset after OTA update, no MCUBOO rtt logs

I come after this post.
After following these steps i was unable to view RTT logs of the MCUBOOT.
I am at Zephyr 2.6.99, nrd sdk 1.7.1 and working on OTA updates for a custum nrf52840 circuit board, that has RTT logging.
The debbugger is a J-link EDU debugger. I am getting my applications RTT logs normaly, but no logs from MCUBoot.
I was able to perform an OTA update with the nrf52840 dongle, and on my custom nrf52840 circuit board with the
smp sample provided inside ~/ncs/zephyr/samples/subsys/mgmt/mcumgr/smp_svr by sendins an update 
with the Device Manager APP.

I am having trouble performing an OTA update with my application. After i integrated the SMP service,
i see the advertisement, i follow the same steps, as with the SMP sample, and my device just resets after the 
upload is fineshed. Show i want to be able to see MCUBOOT logs for debugging perpuses.
For the record, i also read the flash memory before and after the OTA update with nrf's Connect programmer.
With the smp_srv sample, after the update i can see that slot0 and slot1 have swapped places.
With my smp integration, the flash remains unchanged before and after the OTA update. Meaning that slot1 is empty
and slot0 has the origian application binary.

SMP samples's binary is 178KB , as well as the ota update binary
My application's size with the smp service integrated is 300KB , and ota binary is 301KB
Here is my flash partitioning:

&flash0 {

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

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x000000000 0x0000C000>;
		};
		slot0_partition: partition@c000 {
			label = "image-0";
			reg = <0x0000C000 0x00067000>;
		};
		slot1_partition: partition@73000 {
			label = "image-1";
			reg = <0x00073000 0x00067000>;
		};
		scratch_partition: partition@da000 {
			label = "image-scratch";
			reg = <0x000da000 0x0001e000>;
		};

		/*
		 * 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.
		 */
		storage_partition: partition@f8000 {
			label = "storage";
			reg = <0x000f8000 0x00008000>;
		};
	};
};


Parents Reply Children
Related