Hi
I'm using an nRF52840 with Zephyr and nRF Connect SDK v2.1.0.
In our device, we use USB (CDC ACM) as an interface that accepts JSON formatted commands. At the same time, we require a means for DFU via USB. I checked out the SMP server sample. My understanding is, that this takes over the USB device completely, so I won't be able to implement my own commands any longer.
My preferred way would be to integrate the update process into my command structure (e.g. JSON commands with base 64 encoded chunks of the firmware). How can I programmatically write the received data to 'image-1' and then trigger the image swapping?