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

  

Parents
  • Hi DG,

    I see that you are using a nrfutil version newer than v7.0.0. In such versions, you need to enable support for nRF5 SDK first. Have you done that?

    If not, please follow the instruction in this page: https://infocenter.nordicsemi.com/topic/ug_nrfutil/UG/nrfutil/nrfutil_installing.html.

    Hieu

  • Hi Hieu

    i dump ble_led.zip file into nrf52840 using nrf connect tool .it is working fine but i generate AES_Encrypt.zip file and dump into nrf52840 sdk but it is not working. can you tell me why it is not working ? same normal_led.zip file not working

    1 . bootloader_dfu.hex file dump into nrf52840 sdk 

    2 . nrfutil pkg generate --hw-version 52 --application-version 1 --application ble_app_blinky_pca10056_s140.hex --sd-req      0xA9 --key-file private.key ble_led.zip

    3. nrfutil pkg generate --hw-version 52 --application-version 1 --application              C:/Dharm_work/Backup_code/DFU/DeviceDownload/nRF5SDK1500a53641a/nRF5_SDK_15.0.0_a53641a/examples/crypto/nrf_crypto/aes/aes_ctr/pca10056/blank/ses/Output/Release/Exe/nrf_crypto_aes_ctr_pca10056.hex --sd-req 0xA9 --key-file private.key AES_Encrtpy.zip

     i generated zip file using  this commands and once try your side alse

    BR

    DG

    bootloader_dfu.hex

    ble_led.zip

    AES_Encrypt.zip

    normal_led.zip

  • Hi Hieu ,

    can you guide me how to solve these error. in which file 

  • Hii Hieu,

    i am getting latest this error .can you guide me how to solve it .

    Building ‘ble_app_uart_pca10056_s140’ from solution ‘ble_app_uart_pca10056_s140’ in configuration ‘Release’
    1> Compiling ‘nrf_drv_uart.c’
    2> Compiling ‘nrfx_clock.c’
    3> Compiling ‘nrfx_gpiote.c’
    4> Compiling ‘nrf_drv_clock.c’
    5> Compiling ‘nrfx_power_clock.c’
    6> Compiling ‘nrfx_uart.c’
    7> Compiling ‘nrfx_prs.c’
    8> Compiling ‘nrfx_uarte.c’
    9> Compiling ‘mbedtls_backend_aes.c’
    10> Compiling ‘mbedtls_backend_aes_aead.c’
    11> Compiling ‘mbedtls_backend_ecc.c’
    12> Compiling ‘mbedtls_backend_ecdh.c’
    9> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\crypto\backend\mbedtls\mbedtls_backend_aes.c:45:10: fatal error: mbedtls/md.h: No such file or directory
    9> compilation terminated.
    11> In file included from ../../../../../../components/libraries/crypto/nrf_crypto_ecc.h:73,
    11> from C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\crypto\backend\mbedtls\mbedtls_backend_ecc.c:49:
    11> ../../../../../../components/libraries/crypto/nrf_crypto_ecc_backend.h:56:10: fatal error: mbedtls_backend_ecc.h: No such file or directory
    11> compilation terminated.
    12> In file included from ../../../../../../components/libraries/crypto/nrf_crypto_ecc.h:73,
    12> from ../../../../../../components/libraries/crypto/nrf_crypto_ecdh.h:72,
    12> from C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\crypto\backend\mbedtls\mbedtls_backend_ecdh.c:50:
    12> ../../../../../../components/libraries/crypto/nrf_crypto_ecc_backend.h:56:10: fatal error: mbedtls_backend_ecc.h: No such file or directory
    12> compilation terminated.
    10> In file included from C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\crypto\backend\mbedtls\mbedtls_backend_aes_aead.c:46:
    10> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\crypto\backend\mbedtls\mbedtls_backend_aes_aead.h:57:10: fatal error: mbedtls/ccm.h: No such file or directory
    10> compilation terminated.
    Build failed

    BR 

    DG

  • Hi DG,

    Hieu said:
    You might run into further missing include files as you proceed. Simply search for where those files are in the SDK, and provide a relative path to the file's containing folder.

    The errors you have are still "No such file or directory" kind of errors. Unless it is some files not available in the SDK, please just repeat the steps I described above.

    Please also consider searching the issue on DevZone or on an internet search engine to see if someone has a better way around it.

    Lastly, please be informed that I am out of office and will not be able to reply for the next few days.

    Best regards,

    Hieu

  • Hi Hieu 

    i am unable to solve this error can you tell how to solve it

    BR 

    DG

  • Hi DG,

    My apologies for the late follow up. I have been on sick leave and could not work much.

    This case is likely one of this type:

    Hieu said:
    Rarely, but sometimes necessarily, understand what configurations are in used in the project configuration file (for SEGGER Embedded Studio projects).

    You likely are missing some preprocessor definitions. You should review the preprocessor definition in the nrf_crypto_aes_ctr example. Please review your project's preprocessors settings to see which is missing, and update accordingly.

    To view and edit preprocessor definitions, 

    1. Go into Project Options
      1. By right click on the Project in the Project Explorer window
      2. Or by using the menu Project > Options (remember to move up/down until the options is being displayed for the Project)
    2. Go to Code > Preprocessors > Preprocessor Definitions

    BR,

    Hieu

Reply
  • Hi DG,

    My apologies for the late follow up. I have been on sick leave and could not work much.

    This case is likely one of this type:

    Hieu said:
    Rarely, but sometimes necessarily, understand what configurations are in used in the project configuration file (for SEGGER Embedded Studio projects).

    You likely are missing some preprocessor definitions. You should review the preprocessor definition in the nrf_crypto_aes_ctr example. Please review your project's preprocessors settings to see which is missing, and update accordingly.

    To view and edit preprocessor definitions, 

    1. Go into Project Options
      1. By right click on the Project in the Project Explorer window
      2. Or by using the menu Project > Options (remember to move up/down until the options is being displayed for the Project)
    2. Go to Code > Preprocessors > Preprocessor Definitions

    BR,

    Hieu

Children
Related