I have been trying to implement a DFU OTA using Bluetooth Low Energy from one nRF52840 DK to another nRF52840 DK using the smp_client_ble (https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/client_smp/smp_client_ble) and the smp_svr sample. The smp_client_ble would not work because the function zcbor_new_decode_state() has missing parameters, and after examining the sample central_smp_client (https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/central_smp_client) I changed the following for every zcbor_new_decode_state():
-----------PRIMARY IMAGE----------- slot: 0 * buffer overflow detected * [00:00:55.241,424] <err> os: esf_dump: r0/a1: 0x00000002 r1/a2: 0x00000003 r2/a3: 0x00000002 [00:00:55.241,455] <err> os: esf_dump: r3/a4: 0x00000005 r12/ip: 0x00000004 r14/lr: 0x0002262d [00:00:55.241,455] <err> os: esf_dump: xpsr: 0x41000000 [00:00:55.241,485] <err> os: esf_dump: Faulting instruction address (r15/pc): 0x00022638 [00:00:55.241,516] <err> os: z_fatal_error: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0 [00:00:55.241,546] <err> os: z_fatal_error: Current thread: 0x20002170 (unknown) �*** Booting nRF Connect SDK 3758bcbfa5cd ***atal_error_handler: Resetting system
--- 10 messages dropped --- | (0/499712 bytes)Error in image upload response: 1
[00:00:57.971,801] <err> mcumgr_img_grp: Upload too large for slot: 499712 > 487424 [00:00:57.971,801] <err> mcumgr_img_grp: Image upload inspect failed: 30
Omar