Create Zip firmware package for DFU over Bluetooth

Hi,

I'm developing an application based on the nRF52832 development kit. It is nrf52dk_nrf52832(PCA10040). I have used nRF Connect SDK (3.0.0) for the project development.

Now, I want to add a feature of DFU over Bluetooth to update the firmware. We used the Simple Management Protocol (SMP) and we could complete the DFU using the Android/iOS nRFConnect application using the *.bin file created by Zephyr.
We have a custom mobile application which is based on React Native and it only supports zip packages created using "nrfutil pkg generate" command.
Hereby, the API that using in my custom mobile Application.
import { NordicDFU, DFUEmitter } from "react-native-nordic-dfu";

 

NordicDFU.startDFU({
  deviceAddress: "12:34:56:78:90:99",
  deviceName: "Pilloxa Pillbox",
  filePath: "/data/user/0/com.nordicdfuexample/files/RNFetchBlobTmp4of.zip",
})

Is there any possible way to do DFU using a zip package?
Zephyr version: 3.0.99
Zephyr SDK version: zephyr-sdk-0.13.2
Thanks!
Parents Reply
  • Hi Hung,

    Thank you for the quick response. 

    As I have mentioned in my ticket, I am using nRF Connect SDK (3.0.0). When I build source code using the WEST command, the build .zip file is not available in the build directory. Please find below the command to compile the source code.

    west build -b nrf52dk_nrf52832 -s test-src/peripheral/ -d test-build/peripheral -- -DCONFIG_MCUBOOT_SIGNATURE_KEY_FILE=\"bootloader/mcuboot/root-rsa-2048.pem\"

    Here, test-src/peripheral/ is the source directory and test-build/peripheral is the build directory.

    Please let me know if I am missing something.

    Thanks!

Children
Related