Generate Zip file for FOTA DFu

Hello ,

i am using nrfutil tool and generate zip file but i am getting error which is mention in picture. i try ble_app_blinky code and generated ZIP file successfully, can you tell me how to solve this error

i am using

1 ..nRF5SDK1500a53641a sdk 

2.  nrfutil 7.4.1

3. windows 11 home

  

  • It seems you have missed my recommendation:

    Hieu said:
    Please try to regenerate the package without SoftDevice Requirement.
  • how can you tell me ?  (any command ) 

  • nrfutil pkg generate --hw-version <hw_version> --sd-req <sd_version> --application <application_file> --application-version <app_version> --key-file <private.key> <output_zip_file> 

    i used this command for generate zip file and i am not using any soft device file .i used soft device file for generate dfu boatloader hex file . 

  • You can remove the SoftDevice Requirement by removing the --sd-req parameters from the command.

    However, this recommendation from me is not correct. I reviewed your reply and see that you already flashed the SoftDevice onto the DK. I am sorry about this.

    If you are using the SoftDevice, then the issue is most likely that the nrf_crypto_aes_ctr_pca10056 example that you are using is not built to accommodate coexistence with the SoftDevice. 

    Let's refer to the Memory Layout of the SDK's bootloader solution here. All the addresses and pointers in that crypto application is built expecting the application to locate at the MBR or the SoftDevice's place. However, when downloaded with DFU, it is not. Therefore, the application cannot work correctly.

    Technically, you can modify the example to start at a later address, like discussed in this DevZone question. However, if I understand correctly, you are just evaluating the solutions, so I recommend you retry with a BLE example instead.

  • i removed --sd--req  from command then i got  some warning  pc_nrfutil_legacy_v6.1.7.exe pkg generate [OPTIONS] ZIPFILE and i download nrfutls version V6.1.7 and try but i still got error which is Error: --sd-req required.. 

    after install nrfutil version V6.1.7

    Also, we want to understand the following questions:

    1. Is there a BLE code that already integrates AES CTR or any other form of AES? Our goal is to make sure that the communication between the mobile phone and our hardware is encrypted. 

    We were following the methodology of integrating the nrf_crypto_aes_ctr_pca10056 with the BLE uart code. This is the place where we got stuck. We, furthermore, also want to integrate other services like the battery level and some others with our firmware. This is just FYI 

    2. If we are to combine the two examples how should we go about doing this? We want to combine the BLE uart and the nrf_crypto_aes_ctr_pca10056. . On this same point we also understand that both these codes have a different project file and we are not sure how to combine them. Can you advice how to proceed forward on this?

    Thanks

    DG

Related