Hi,
My main() program is
maiin()
{
int rc;
//rc = mcumgr_smp_client_erase();
//printk("mcumgr_smp_client_erase rc=%d\n", rc);
//rc = mcumgr_smp_client_confirm_image();
//printk("mcumgr_smp_client_confirm_image rc=%d\n", rc);
rc = mcumgr_smp_client_init(NULL);
printk("mcumgr_smp_client_init rc=%d\n", rc);
if (rc) return 0;
}
I also added a printk in nrf system code
iff --git a/subsys/dfu/dfu_target/src/dfu_target_smp.c b/subsys/dfu/dfu_target/src/dfu_target_smp.c
index 81b20d69ab..c3a90d86e0 100644
--- a/subsys/dfu/dfu_target/src/dfu_target_smp.c
+++ b/subsys/dfu/dfu_target/src/dfu_target_smp.c
@@ -68,6 +68,7 @@ int dfu_target_smp_client_init(void)
int rc;
rc = smp_client_object_init(&smp_client, SMP_SERIAL_TRANSPORT);
+ printk("%s rc=%d\n", __func__, rc);
if (rc) {
return rc;
}
But this is what I get
*** Booting nRF Connect SDK v3.3.0-ba167d9f3db4 ***
*** Using Zephyr OS v4.3.99-fd9204a02d52 ***
dfu_target_smp_client_init rc=3
[00:00:00.259,674] <err> nrf_mcumgr_smp_client: Failed to init DFU target SMP, 3
mcumgr_smp_client_init rc=3
Please debug this for me and also debug the commented code. Also, I wish to do a FOTA update through my nRF9160 BLE gateway that I have coded, to my BLE connected peripheral, using SMP, MCUMGR, and all that jazz. I would be grateful if you could provide a complete implementation from the point in which I have downloaded code into a partition on the external flash on the nRF9160DK. I am able to use downloader and get an image from AWS, with some mods to aws_fota. But as you can see from my simple example, I cannot get to first base with the smp and mcumgr code. Thanks. Barring a complete implementation, get me past all the bugs that show up in the library code.
Burt Silverman