I want to use image management API independently without SMP, can you provide me example for the same?

I am developing an server app  on zephyr stack which requires to flash the image without SMP protocol, I receives the image data over BLE , how can I use Image management API to flash the zephyr.signed.bin image, any example code if you can provide ? Also, can I use flash_image.h API to flash the image directly?




Parents
  • Hello,

    Yes, you're right, the DFU target library isn't part of upstream Zephyr, it's specific to the nRF Connect SDK. So, you won't be able to use this library directly without using the Connect SDK.

    We don't currently have a sample that matches your use case, but you might find more guidance by asking on the Zephyr Discord. You could look into using flash_img_buffered_write(), although I can't say for sure if it fits your scenario, as I haven’t used or worked with it myself.

    Kind Regards,

    Abhijith

Reply
  • Hello,

    Yes, you're right, the DFU target library isn't part of upstream Zephyr, it's specific to the nRF Connect SDK. So, you won't be able to use this library directly without using the Connect SDK.

    We don't currently have a sample that matches your use case, but you might find more guidance by asking on the Zephyr Discord. You could look into using flash_img_buffered_write(), although I can't say for sure if it fits your scenario, as I haven’t used or worked with it myself.

    Kind Regards,

    Abhijith

Children
No Data
Related