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

  • DG, you might have misunderstood me. By 

    Hieu said:

    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.

    I meant that --sd-req should not be removed.

    DG said:

    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 

    If your goal is encryption of the message, then you should know that all BLE messages are encrypted when after pairing or bonding is done.

    We explain those concepts in the free Bluetooth Low Energy Fundamentals course in DevAcademy. The course is based on the nRF Connect SDK. However, as you seem to be starting a new project, I think it is also better for you to work with this SDK instead.

    DG said:
    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?

    My steps are usually as followed

    1. Understand the API calls in main.c.
    2. Understand what source files and header files are used.
    3. Understand what configuration are in used in sdk_config.h.
    4. Rarely, but sometimes necessarily, understand what configurations are in used in the project configuration file (for SEGGER Embedded Studio projects).
    5. Replicate the above understanding in the based project.

    As you start out with the SDK, each step can be intimidating, but please trust me that it will get better.

    Finally, please remember my recommendation to consider the nRF Connect SDK instead.

    Regards,

    Hieu

  • Hello Hieo,

    i am trying to combine ble_uart and AES_Ctr file but i am getting some error which in mention in

    picture ,can you tell me how to solve it.

    BR 

    DG

  • Building ‘ble_app_uart_pca10056_s140’ from solution ‘ble_app_uart_pca10056_s140’ in configuration ‘Release’
    1> Compiling ‘nrf_log_backend_rtt.c’
    2> Compiling ‘nrf_log_backend_uart.c’
    3> Compiling ‘nrf_log_frontend.c’
    4> Compiling ‘nrf_log_default_backends.c’
    5> Compiling ‘nrf_log_str_formatter.c’
    6> Compiling ‘app_timer.c’
    7> Compiling ‘app_scheduler.c’
    8> Compiling ‘app_error_weak.c’
    9> Compiling ‘app_uart_fifo.c’
    10> Compiling ‘nrf_balloc.c’
    11> Compiling ‘nrf_atomic.c’
    12> Compiling ‘nrf_atfifo.c’
    1> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_rtt.c:46:10: fatal error: nrf_delay.h: No such file or directory
    1> compilation terminated.
    9> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\uart\app_uart_fifo.c:43:10: fatal error: app_fifo.h: No such file or directory
    9> compilation terminated.
    2> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_uart.c:45:10: fatal error: nrf_drv_uart.h: No such file or directory
    2> compilation terminated.
    6> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\timer\app_timer.c:48:10: fatal error: nrf_delay.h: No such file or directory
    6> compilation terminated.
    Build failed

  • Hi DG,

    You will need to update the list of include directories. Please:

    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 > User include Directories
    3. Add the folders where the missing header files can be found to the list

  • HI Hieu ,

    can you tell me what should add exactly .because i am adding path but still getting same error .i am sending you ble_uart and aes_ctr merge emproject file 

    Building ‘ble_app_uart_pca10056_s140’ from solution ‘ble_app_uart_pca10056_s140’ in configuration ‘Release’
    1> Assembling ‘thumb_crt0.s’
    2> Compiling ‘nrf_log_backend_serial.c’
    3> Compiling ‘nrf_log_backend_rtt.c’
    4> Compiling ‘nrf_log_backend_uart.c’
    5> Compiling ‘nrf_log_default_backends.c’
    6> Compiling ‘nrf_log_frontend.c’
    7> Compiling ‘nrf_log_str_formatter.c’
    8> Compiling ‘app_button.c’
    9> Compiling ‘app_error.c’
    10> Compiling ‘app_error_handler_gcc.c’
    11> Compiling ‘app_error_weak.c’
    12> Compiling ‘app_fifo.c’
    1> Compiling ‘app_scheduler.c’
    3> In file included from C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_rtt.c:46:
    3> ../../../../../../components/libraries/delay/nrf_delay.h:44:10: fatal error: nrfx.h: No such file or directory
    3> compilation terminated.
    4> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_uart.c:45:10: fatal error: nrf_drv_uart.h: No such file or directory
    4> compilation terminated.
    Build failed

    <!DOCTYPE CrossStudio_Project_File>
    <solution Name="ble_app_uart_pca10056_s140" target="8" version="2">
      <project Name="ble_app_uart_pca10056_s140">
        <configuration
          Name="Common"
          arm_architecture="v7EM"
          arm_core_type="Cortex-M4"
          arm_endian="Little"
          arm_fp_abi="Hard"
          arm_fpu_type="FPv4-SP-D16"
          arm_linker_heap_size="8192"
          arm_linker_process_stack_size="0"
          arm_linker_stack_size="8192"
          arm_linker_treat_warnings_as_errors="No"
          arm_simulator_memory_simulation_parameter="RWX 00000000,00100000,FFFFFFFF;RWX 20000000,00010000,CDCDCDCD"
          arm_target_device_name="nRF52840_xxAA"
          arm_target_interface_type="SWD"
          c_preprocessor_definitions="BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;NRF_SD_BLE_API_VERSION=6;S140;SOFTDEVICE_PRESENT;SWI_DISABLE0;"
          c_user_include_directories="../../../config;../../../../../../components;../../../../../../components/ble/ble_advertising;../../../../../../components/ble/ble_dtm;../../../../../../components/ble/ble_link_ctx_manager;../../../../../../components/ble/ble_racp;../../../../../../components/ble/ble_services/ble_ancs_c;../../../../../../components/ble/ble_services/ble_ans_c;../../../../../../components/ble/ble_services/ble_bas;../../../../../../components/ble/ble_services/ble_bas_c;../../../../../../components/ble/ble_services/ble_cscs;../../../../../../components/ble/ble_services/ble_cts_c;../../../../../../components/ble/ble_services/ble_dfu;../../../../../../components/ble/ble_services/ble_dis;../../../../../../components/ble/ble_services/ble_gls;../../../../../../components/ble/ble_services/ble_hids;../../../../../../components/ble/ble_services/ble_hrs;../../../../../../components/ble/ble_services/ble_hrs_c;../../../../../../components/ble/ble_services/ble_hts;../../../../../../components/ble/ble_services/ble_ias;../../../../../../components/ble/ble_services/ble_ias_c;../../../../../../components/ble/ble_services/ble_lbs;../../../../../../components/ble/ble_services/ble_lbs_c;../../../../../../components/ble/ble_services/ble_lls;../../../../../../components/ble/ble_services/ble_nus;../../../../../../components/ble/ble_services/ble_nus_c;../../../../../../components/ble/ble_services/ble_rscs;../../../../../../components/ble/ble_services/ble_rscs_c;../../../../../../components/ble/ble_services/ble_tps;../../../../../../components/ble/common;../../../../../../components/ble/nrf_ble_gatt;../../../../../../components/ble/nrf_ble_qwr;../../../../../../components/ble/peer_manager;../../../../../../components/boards;../../../../../../components/drivers_nrf/usbd;../../../../../../components/libraries/atomic;../../../../../../../../components/libraries/atomic_fifo;../../../../../../components/libraries/atomic_flags;../../../../../../components/libraries/balloc;../../../../../../components/libraries/bootloader/ble_dfu;../../../../../../components/libraries/bsp;../../../../../../../../components/libraries/button;../../../../../../components/libraries/cli;../../../../../../components/libraries/crc16;../../../../../../components/libraries/crc32;../../../../../../components/libraries/crypto;../../../../../../components/libraries/crypto/backend/cc310;../../../../../../components/libraries/crypto/backend/cc310_bl;../../../../../../components/libraries/crypto/backend/cifra;../../../../../../components/libraries/crypto/backend/mbedtls;../../../../../../components/libraries/crypto/backend/micro_ecc;../../../../../../components/libraries/crypto/backend/nrf_hw;../../../../../../components/libraries/crypto/backend/nrf_sw;../../../../../../components/libraries/crypto/backend/oberon;../../../../../../components/libraries/csense;../../../../../../components/libraries/csense_drv;../../../../../../components/libraries/delay;../../../../../../components/libraries/ecc;../../../../../../components/libraries/experimental_log;../../../../../../components/libraries/experimental_log/src;../../../../../../components/libraries/experimental_memobj;../../../../../../components/libraries/experimental_mpu;../../../../../../components/libraries/experimental_ringbuf;../../../../../../components/libraries/experimental_section_vars;../../../../../../components/libraries/experimental_stack_guard;../../../../../../components/libraries/experimental_task_manager;../../../../../../components/libraries/fds;../../../../../../../../components/libraries/fifo;../../../../../../components/libraries/fstorage;../../../../../../components/libraries/gfx;../../../../../../../../components/libraries/gpiote;../../../../../../components/libraries/hardfault;../../../../../../components/libraries/hardfault/nrf52;../../../../../../components/libraries/hci;../../../../../../components/libraries/led_softblink;../../../../../../components/libraries/low_power_pwm;../../../../../../components/libraries/mem_manager;../../../../../../components/libraries/mutex;../../../../../../components/libraries/pwm;../../../../../../components/libraries/pwr_mgmt;../../../../../../components/libraries/queue;../../../../../../components/libraries/scheduler;../../../../../../components/libraries/stack_info;../../../../../../components/libraries/sdcard;../../../../../../components/libraries/slip;../../../../../../components/libraries/sortlist;../../../../../../components/libraries/spi_mngr;../../../../../../components/libraries/strerror;../../../../../../components/libraries/timer;../../../../../../components/libraries/twi_mngr;../../../../../../components/libraries/twi_sensor;../../../../../../../../components/libraries/uart;../../../../../../components/libraries/usbd;../../../../../../components/libraries/usbd/class/audio;../../../../../../components/libraries/usbd/class/cdc;../../../../../../components/libraries/usbd/class/cdc/acm;../../../../../../components/libraries/usbd/class/hid;../../../../../../components/libraries/usbd/class/hid/generic;../../../../../../components/libraries/usbd/class/hid/kbd;../../../../../../components/libraries/usbd/class/hid/mouse;../../../../../../components/libraries/usbd/class/msc;../../../../../../components/libraries/usbd/config;../../../../../../components/libraries/util;../../../../../../components/nfc/ndef/conn_hand_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser;../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser;../../../../../../components/nfc/ndef/connection_handover/ac_rec;../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata;../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib;../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg;../../../../../../components/nfc/ndef/connection_handover/common;../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec;../../../../../../components/nfc/ndef/connection_handover/hs_rec;../../../../../../components/nfc/ndef/connection_handover/le_oob_rec;../../../../../../components/nfc/ndef/generic/message;../../../../../../components/nfc/ndef/generic/record;../../../../../../components/nfc/ndef/launchapp;../../../../../../components/nfc/ndef/parser/message;../../../../../../components/nfc/ndef/parser/record;../../../../../../components/nfc/ndef/text;../../../../../../components/nfc/ndef/uri;../../../../../../components/nfc/t2t_lib;../../../../../../components/nfc/t2t_lib/hal_t2t;../../../../../../components/nfc/t2t_parser;../../../../../../components/nfc/t4t_lib;../../../../../../components/nfc/t4t_lib/hal_t4t;../../../../../../components/nfc/t4t_parser/apdu;../../../../../../components/nfc/t4t_parser/cc_file;../../../../../../components/nfc/t4t_parser/hl_detection_procedure;../../../../../../components/nfc/t4t_parser/tlv;../../../../../../components/softdevice/common;../../../../../../components/softdevice/s140/headers;../../../../../../components/softdevice/s140/headers/nrf52;../../../../../../components/toolchain/cmsis/include;../../..;../../../../../../external/cifra_AES128-EAX;../../../../../../external/fprintf;../../../../../../external/mbedtls/include;../../../../../../external/micro-ecc/micro-ecc;../../../../../../external/nrf_cc310/include;../../../../../../external/nrf_oberon../../../../../../external/nrf_oberon/include;../../../../../../external/nrf_tls/mbedtls/nrf_crypto/config;../../../../../../external/segger_rtt;../../../../../../../../integration/nrfx;../../../../../../../../integration/nrfx/legacy;../../../../../../../../modules/nrfx;../../../../../../modules/nrfx/drivers/include;../../../../../../../../modules/nrfx/hal;../../../../../../modules/nrfx/mdk;../config"
          debug_additional_load_file="../../../../../../components/softdevice/s140/hex/s140_nrf52_6.0.0_softdevice.hex"
          debug_register_definition_file="../../../../../../modules/nrfx/mdk/nrf52840.svd"
          debug_start_from_entry_point_symbol="No"
          debug_target_connection="J-Link"
          gcc_debugging_level="Level 3"
          gcc_entry_point="Reset_Handler"
          linker_output_format="hex"
          linker_printf_fmt_level="long"
          linker_printf_width_precision_supported="Yes"
          linker_section_placement_file="flash_placement.xml"
          linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x26000;FLASH_SIZE=0xda000;RAM_START=0x20002a98;RAM_SIZE=0x3d568"
          linker_section_placements_segments="FLASH RX 0x0 0x100000;RAM RWX 0x20000000 0x40000"
          macros="CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar"
          project_directory=""
          project_type="Executable" />
        <folder Name="Segger Startup Files">
          <file file_name="$(StudioDir)/source/thumb_crt0.s" />
        </folder>
        <folder Name="nrf_cc310">
          <file file_name="../../../../../../external/nrf_cc310/lib/libnrf_cc310_0.9.9.a" />
        </folder>
        <folder Name="nRF_Log">
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_rtt.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_serial.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_uart.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_default_backends.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_frontend.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_str_formatter.c" />
        </folder>
        <folder Name="nRF_Libraries">
          <file file_name="../../../../../../components/libraries/button/app_button.c" />
          <file file_name="../../../../../../components/libraries/util/app_error.c" />
          <file file_name="../../../../../../components/libraries/util/app_error_handler_gcc.c" />
          <file file_name="../../../../../../components/libraries/util/app_error_weak.c" />
          <file file_name="../../../../../../components/libraries/fifo/app_fifo.c" />
          <file file_name="../../../../../../components/libraries/scheduler/app_scheduler.c" />
          <file file_name="../../../../../../components/libraries/timer/app_timer.c" />
          <file file_name="../../../../../../components/libraries/uart/app_uart_fifo.c" />
          <file file_name="../../../../../../components/libraries/util/app_util_platform.c" />
          <file file_name="../../../../../../components/libraries/hardfault/hardfault_implementation.c" />
          <file file_name="../../../../../../components/libraries/util/nrf_assert.c" />
          <file file_name="../../../../../../components/libraries/atomic_fifo/nrf_atfifo.c" />
          <file file_name="../../../../../../components/libraries/atomic_flags/nrf_atflags.c" />
          <file file_name="../../../../../../components/libraries/atomic/nrf_atomic.c" />
          <file file_name="../../../../../../components/libraries/balloc/nrf_balloc.c" />
          <file file_name="../../../../../../external/fprintf/nrf_fprintf.c" />
          <file file_name="../../../../../../external/fprintf/nrf_fprintf_format.c" />
          <file file_name="../../../../../../components/libraries/fstorage/nrf_fstorage.c" />
          <file file_name="../../../../../../components/libraries/fstorage/nrf_fstorage_sd.c" />
          <file file_name="../../../../../../components/libraries/experimental_memobj/nrf_memobj.c" />
          <file file_name="../../../../../../components/libraries/pwr_mgmt/nrf_pwr_mgmt.c" />
          <file file_name="../../../../../../components/libraries/experimental_section_vars/nrf_section_iter.c" />
          <file file_name="../../../../../../components/libraries/strerror/nrf_strerror.c" />
          <file file_name="../../../../../../../../components/libraries/uart/retarget.c" />
        </folder>
        <folder Name="None">
          <file file_name="../../../../../../modules/nrfx/mdk/ses_nRF_Startup.s" />
          <file file_name="../../../../../../modules/nrfx/mdk/ses_nrf52840_Vectors.s" />
          <file file_name="../../../../../../modules/nrfx/mdk/system_nrf52840.c" />
        </folder>
        <folder Name="Board Definition">
          <file file_name="../../../../../../components/boards/boards.c" />
        </folder>
        <folder Name="nRF_Crypto backend uECC">
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecdsa.c" />
        </folder>
        <folder Name="nRF_Drivers">
          <file file_name="../../../../../../integration/nrfx/legacy/nrf_drv_clock.c" />
          <file file_name="../../../../../../../../integration/nrfx/legacy/nrf_drv_uart.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_clock.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_gpiote.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_power_clock.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/prs/nrfx_prs.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uart.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uarte.c" />
        </folder>
        <folder Name="nRF_Crypto backend mbed TLS">
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_aes.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_aes_aead.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecdsa.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_hash.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_hmac.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_init.c" />
        </folder>
        <folder Name="nRF_Crypto">
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aead.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aes.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aes_shared.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecdsa.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_error.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hash.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hkdf.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hmac.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_init.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_rng.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_shared.c" />
        </folder>
        <folder Name="Board Support">
          <file file_name="../../../../../../components/libraries/bsp/bsp.c" />
          <file file_name="../../../../../../components/libraries/bsp/bsp_btn_ble.c" />
        </folder>
        <folder Name="nRF_Crypto backend nRF HW">
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_init.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_rng.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_rng_mbedtls.c" />
        </folder>
        <folder Name="Application">
          <file file_name="../../../main.c" />
          <file file_name="../config/sdk_config.h" />
        </folder>
        <folder Name="nRF_micro-ecc">
          <file file_name="../../../../../../../../external/micro-ecc/nrf52hf_armgcc/armgcc/micro_ecc_lib_nrf52.a" />
        </folder>
        <folder Name="nRF_TLS">
          <file file_name="../../../../../../../../external/mbedtls/library/aes.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/aesni.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/arc4.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/asn1parse.c" />
          <file file_name="../../../../../../../../external/nrf_tls/mbedtls/replacements/asn1write.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/base64.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/bignum.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/blowfish.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/camellia.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ccm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/certs.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cipher.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cipher_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cmac.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ctr_drbg.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/debug.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/des.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/dhm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecdh.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecdsa.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecp.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecp_curves.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/entropy.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/entropy_poll.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/error.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/gcm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/havege.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/hmac_drbg.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md2.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md4.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md5.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/memory_buffer_alloc.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/oid.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/padlock.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pem.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pk.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pk_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs11.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs12.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs5.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkparse.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkwrite.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/platform.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ripemd160.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/rsa.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha1.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha256.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha512.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cache.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_ciphersuites.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cli.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cookie.c" />
          <file file_name="../../../../../../../../external/nrf_tls/mbedtls/replacements/ssl_srv.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_ticket.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_tls.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/threading.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/version.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/version_features.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_create.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_crl.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_crt.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_csr.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/xtea.c" />
        </folder>
        <folder Name="nRF_Oberon_Crypto">
          <file file_name="../../../../../../../../external/nrf_oberon/lib/nrf52/liboberon_2.0.4.a" />
        </folder>
        <folder Name="nRF_Segger_RTT">
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT.c" />
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT_Syscalls_SES.c" />
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT_printf.c" />
        </folder>
        <folder Name="nRF_BLE">
          <file file_name="../../../../../../components/ble/common/ble_advdata.c" />
          <file file_name="../../../../../../components/ble/ble_advertising/ble_advertising.c" />
          <file file_name="../../../../../../components/ble/common/ble_conn_params.c" />
          <file file_name="../../../../../../components/ble/common/ble_conn_state.c" />
          <file file_name="../../../../../../components/ble/ble_link_ctx_manager/ble_link_ctx_manager.c" />
          <file file_name="../../../../../../components/ble/common/ble_srv_common.c" />
          <file file_name="../../../../../../components/ble/nrf_ble_gatt/nrf_ble_gatt.c" />
          <file file_name="../../../../../../components/ble/nrf_ble_qwr/nrf_ble_qwr.c" />
        </folder>
        <folder Name="nRF_BLE_Services">
          <file file_name="../../../../../../components/ble/ble_services/ble_nus/ble_nus.c" />
        </folder>
        <folder Name="nRF_SoftDevice">
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh.c" />
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh_ble.c" />
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh_soc.c" />
        </folder>
        <configuration
          Name="Release"
          c_user_include_directories="../../../../../../components/libraries/delay." />
      </project>
      <configuration
        Name="Release"
        c_preprocessor_definitions="NDEBUG"
        gcc_optimization_level="Optimize For Size" />
      <configuration
        Name="Debug"
        c_preprocessor_definitions="DEBUG; DEBUG_NRF"
        gcc_optimization_level="None" />
    </solution>
    

Reply
  • HI Hieu ,

    can you tell me what should add exactly .because i am adding path but still getting same error .i am sending you ble_uart and aes_ctr merge emproject file 

    Building ‘ble_app_uart_pca10056_s140’ from solution ‘ble_app_uart_pca10056_s140’ in configuration ‘Release’
    1> Assembling ‘thumb_crt0.s’
    2> Compiling ‘nrf_log_backend_serial.c’
    3> Compiling ‘nrf_log_backend_rtt.c’
    4> Compiling ‘nrf_log_backend_uart.c’
    5> Compiling ‘nrf_log_default_backends.c’
    6> Compiling ‘nrf_log_frontend.c’
    7> Compiling ‘nrf_log_str_formatter.c’
    8> Compiling ‘app_button.c’
    9> Compiling ‘app_error.c’
    10> Compiling ‘app_error_handler_gcc.c’
    11> Compiling ‘app_error_weak.c’
    12> Compiling ‘app_fifo.c’
    1> Compiling ‘app_scheduler.c’
    3> In file included from C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_rtt.c:46:
    3> ../../../../../../components/libraries/delay/nrf_delay.h:44:10: fatal error: nrfx.h: No such file or directory
    3> compilation terminated.
    4> C:\Users\firmw\Desktop\AES_BLE\nRF5_SDK_15.0.0_a53641a\components\libraries\experimental_log\src\nrf_log_backend_uart.c:45:10: fatal error: nrf_drv_uart.h: No such file or directory
    4> compilation terminated.
    Build failed

    <!DOCTYPE CrossStudio_Project_File>
    <solution Name="ble_app_uart_pca10056_s140" target="8" version="2">
      <project Name="ble_app_uart_pca10056_s140">
        <configuration
          Name="Common"
          arm_architecture="v7EM"
          arm_core_type="Cortex-M4"
          arm_endian="Little"
          arm_fp_abi="Hard"
          arm_fpu_type="FPv4-SP-D16"
          arm_linker_heap_size="8192"
          arm_linker_process_stack_size="0"
          arm_linker_stack_size="8192"
          arm_linker_treat_warnings_as_errors="No"
          arm_simulator_memory_simulation_parameter="RWX 00000000,00100000,FFFFFFFF;RWX 20000000,00010000,CDCDCDCD"
          arm_target_device_name="nRF52840_xxAA"
          arm_target_interface_type="SWD"
          c_preprocessor_definitions="BOARD_PCA10056;CONFIG_GPIO_AS_PINRESET;FLOAT_ABI_HARD;INITIALIZE_USER_SECTIONS;NO_VTOR_CONFIG;NRF52840_XXAA;NRF_SD_BLE_API_VERSION=6;S140;SOFTDEVICE_PRESENT;SWI_DISABLE0;"
          c_user_include_directories="../../../config;../../../../../../components;../../../../../../components/ble/ble_advertising;../../../../../../components/ble/ble_dtm;../../../../../../components/ble/ble_link_ctx_manager;../../../../../../components/ble/ble_racp;../../../../../../components/ble/ble_services/ble_ancs_c;../../../../../../components/ble/ble_services/ble_ans_c;../../../../../../components/ble/ble_services/ble_bas;../../../../../../components/ble/ble_services/ble_bas_c;../../../../../../components/ble/ble_services/ble_cscs;../../../../../../components/ble/ble_services/ble_cts_c;../../../../../../components/ble/ble_services/ble_dfu;../../../../../../components/ble/ble_services/ble_dis;../../../../../../components/ble/ble_services/ble_gls;../../../../../../components/ble/ble_services/ble_hids;../../../../../../components/ble/ble_services/ble_hrs;../../../../../../components/ble/ble_services/ble_hrs_c;../../../../../../components/ble/ble_services/ble_hts;../../../../../../components/ble/ble_services/ble_ias;../../../../../../components/ble/ble_services/ble_ias_c;../../../../../../components/ble/ble_services/ble_lbs;../../../../../../components/ble/ble_services/ble_lbs_c;../../../../../../components/ble/ble_services/ble_lls;../../../../../../components/ble/ble_services/ble_nus;../../../../../../components/ble/ble_services/ble_nus_c;../../../../../../components/ble/ble_services/ble_rscs;../../../../../../components/ble/ble_services/ble_rscs_c;../../../../../../components/ble/ble_services/ble_tps;../../../../../../components/ble/common;../../../../../../components/ble/nrf_ble_gatt;../../../../../../components/ble/nrf_ble_qwr;../../../../../../components/ble/peer_manager;../../../../../../components/boards;../../../../../../components/drivers_nrf/usbd;../../../../../../components/libraries/atomic;../../../../../../../../components/libraries/atomic_fifo;../../../../../../components/libraries/atomic_flags;../../../../../../components/libraries/balloc;../../../../../../components/libraries/bootloader/ble_dfu;../../../../../../components/libraries/bsp;../../../../../../../../components/libraries/button;../../../../../../components/libraries/cli;../../../../../../components/libraries/crc16;../../../../../../components/libraries/crc32;../../../../../../components/libraries/crypto;../../../../../../components/libraries/crypto/backend/cc310;../../../../../../components/libraries/crypto/backend/cc310_bl;../../../../../../components/libraries/crypto/backend/cifra;../../../../../../components/libraries/crypto/backend/mbedtls;../../../../../../components/libraries/crypto/backend/micro_ecc;../../../../../../components/libraries/crypto/backend/nrf_hw;../../../../../../components/libraries/crypto/backend/nrf_sw;../../../../../../components/libraries/crypto/backend/oberon;../../../../../../components/libraries/csense;../../../../../../components/libraries/csense_drv;../../../../../../components/libraries/delay;../../../../../../components/libraries/ecc;../../../../../../components/libraries/experimental_log;../../../../../../components/libraries/experimental_log/src;../../../../../../components/libraries/experimental_memobj;../../../../../../components/libraries/experimental_mpu;../../../../../../components/libraries/experimental_ringbuf;../../../../../../components/libraries/experimental_section_vars;../../../../../../components/libraries/experimental_stack_guard;../../../../../../components/libraries/experimental_task_manager;../../../../../../components/libraries/fds;../../../../../../../../components/libraries/fifo;../../../../../../components/libraries/fstorage;../../../../../../components/libraries/gfx;../../../../../../../../components/libraries/gpiote;../../../../../../components/libraries/hardfault;../../../../../../components/libraries/hardfault/nrf52;../../../../../../components/libraries/hci;../../../../../../components/libraries/led_softblink;../../../../../../components/libraries/low_power_pwm;../../../../../../components/libraries/mem_manager;../../../../../../components/libraries/mutex;../../../../../../components/libraries/pwm;../../../../../../components/libraries/pwr_mgmt;../../../../../../components/libraries/queue;../../../../../../components/libraries/scheduler;../../../../../../components/libraries/stack_info;../../../../../../components/libraries/sdcard;../../../../../../components/libraries/slip;../../../../../../components/libraries/sortlist;../../../../../../components/libraries/spi_mngr;../../../../../../components/libraries/strerror;../../../../../../components/libraries/timer;../../../../../../components/libraries/twi_mngr;../../../../../../components/libraries/twi_sensor;../../../../../../../../components/libraries/uart;../../../../../../components/libraries/usbd;../../../../../../components/libraries/usbd/class/audio;../../../../../../components/libraries/usbd/class/cdc;../../../../../../components/libraries/usbd/class/cdc/acm;../../../../../../components/libraries/usbd/class/hid;../../../../../../components/libraries/usbd/class/hid/generic;../../../../../../components/libraries/usbd/class/hid/kbd;../../../../../../components/libraries/usbd/class/hid/mouse;../../../../../../components/libraries/usbd/class/msc;../../../../../../components/libraries/usbd/config;../../../../../../components/libraries/util;../../../../../../components/nfc/ndef/conn_hand_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser;../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser;../../../../../../components/nfc/ndef/connection_handover/ac_rec;../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata;../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib;../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg;../../../../../../components/nfc/ndef/connection_handover/common;../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec;../../../../../../components/nfc/ndef/connection_handover/hs_rec;../../../../../../components/nfc/ndef/connection_handover/le_oob_rec;../../../../../../components/nfc/ndef/generic/message;../../../../../../components/nfc/ndef/generic/record;../../../../../../components/nfc/ndef/launchapp;../../../../../../components/nfc/ndef/parser/message;../../../../../../components/nfc/ndef/parser/record;../../../../../../components/nfc/ndef/text;../../../../../../components/nfc/ndef/uri;../../../../../../components/nfc/t2t_lib;../../../../../../components/nfc/t2t_lib/hal_t2t;../../../../../../components/nfc/t2t_parser;../../../../../../components/nfc/t4t_lib;../../../../../../components/nfc/t4t_lib/hal_t4t;../../../../../../components/nfc/t4t_parser/apdu;../../../../../../components/nfc/t4t_parser/cc_file;../../../../../../components/nfc/t4t_parser/hl_detection_procedure;../../../../../../components/nfc/t4t_parser/tlv;../../../../../../components/softdevice/common;../../../../../../components/softdevice/s140/headers;../../../../../../components/softdevice/s140/headers/nrf52;../../../../../../components/toolchain/cmsis/include;../../..;../../../../../../external/cifra_AES128-EAX;../../../../../../external/fprintf;../../../../../../external/mbedtls/include;../../../../../../external/micro-ecc/micro-ecc;../../../../../../external/nrf_cc310/include;../../../../../../external/nrf_oberon../../../../../../external/nrf_oberon/include;../../../../../../external/nrf_tls/mbedtls/nrf_crypto/config;../../../../../../external/segger_rtt;../../../../../../../../integration/nrfx;../../../../../../../../integration/nrfx/legacy;../../../../../../../../modules/nrfx;../../../../../../modules/nrfx/drivers/include;../../../../../../../../modules/nrfx/hal;../../../../../../modules/nrfx/mdk;../config"
          debug_additional_load_file="../../../../../../components/softdevice/s140/hex/s140_nrf52_6.0.0_softdevice.hex"
          debug_register_definition_file="../../../../../../modules/nrfx/mdk/nrf52840.svd"
          debug_start_from_entry_point_symbol="No"
          debug_target_connection="J-Link"
          gcc_debugging_level="Level 3"
          gcc_entry_point="Reset_Handler"
          linker_output_format="hex"
          linker_printf_fmt_level="long"
          linker_printf_width_precision_supported="Yes"
          linker_section_placement_file="flash_placement.xml"
          linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x26000;FLASH_SIZE=0xda000;RAM_START=0x20002a98;RAM_SIZE=0x3d568"
          linker_section_placements_segments="FLASH RX 0x0 0x100000;RAM RWX 0x20000000 0x40000"
          macros="CMSIS_CONFIG_TOOL=../../../../../../external_tools/cmsisconfig/CMSIS_Configuration_Wizard.jar"
          project_directory=""
          project_type="Executable" />
        <folder Name="Segger Startup Files">
          <file file_name="$(StudioDir)/source/thumb_crt0.s" />
        </folder>
        <folder Name="nrf_cc310">
          <file file_name="../../../../../../external/nrf_cc310/lib/libnrf_cc310_0.9.9.a" />
        </folder>
        <folder Name="nRF_Log">
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_rtt.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_serial.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_backend_uart.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_default_backends.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_frontend.c" />
          <file file_name="../../../../../../components/libraries/experimental_log/src/nrf_log_str_formatter.c" />
        </folder>
        <folder Name="nRF_Libraries">
          <file file_name="../../../../../../components/libraries/button/app_button.c" />
          <file file_name="../../../../../../components/libraries/util/app_error.c" />
          <file file_name="../../../../../../components/libraries/util/app_error_handler_gcc.c" />
          <file file_name="../../../../../../components/libraries/util/app_error_weak.c" />
          <file file_name="../../../../../../components/libraries/fifo/app_fifo.c" />
          <file file_name="../../../../../../components/libraries/scheduler/app_scheduler.c" />
          <file file_name="../../../../../../components/libraries/timer/app_timer.c" />
          <file file_name="../../../../../../components/libraries/uart/app_uart_fifo.c" />
          <file file_name="../../../../../../components/libraries/util/app_util_platform.c" />
          <file file_name="../../../../../../components/libraries/hardfault/hardfault_implementation.c" />
          <file file_name="../../../../../../components/libraries/util/nrf_assert.c" />
          <file file_name="../../../../../../components/libraries/atomic_fifo/nrf_atfifo.c" />
          <file file_name="../../../../../../components/libraries/atomic_flags/nrf_atflags.c" />
          <file file_name="../../../../../../components/libraries/atomic/nrf_atomic.c" />
          <file file_name="../../../../../../components/libraries/balloc/nrf_balloc.c" />
          <file file_name="../../../../../../external/fprintf/nrf_fprintf.c" />
          <file file_name="../../../../../../external/fprintf/nrf_fprintf_format.c" />
          <file file_name="../../../../../../components/libraries/fstorage/nrf_fstorage.c" />
          <file file_name="../../../../../../components/libraries/fstorage/nrf_fstorage_sd.c" />
          <file file_name="../../../../../../components/libraries/experimental_memobj/nrf_memobj.c" />
          <file file_name="../../../../../../components/libraries/pwr_mgmt/nrf_pwr_mgmt.c" />
          <file file_name="../../../../../../components/libraries/experimental_section_vars/nrf_section_iter.c" />
          <file file_name="../../../../../../components/libraries/strerror/nrf_strerror.c" />
          <file file_name="../../../../../../../../components/libraries/uart/retarget.c" />
        </folder>
        <folder Name="None">
          <file file_name="../../../../../../modules/nrfx/mdk/ses_nRF_Startup.s" />
          <file file_name="../../../../../../modules/nrfx/mdk/ses_nrf52840_Vectors.s" />
          <file file_name="../../../../../../modules/nrfx/mdk/system_nrf52840.c" />
        </folder>
        <folder Name="Board Definition">
          <file file_name="../../../../../../components/boards/boards.c" />
        </folder>
        <folder Name="nRF_Crypto backend uECC">
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/micro_ecc/micro_ecc_backend_ecdsa.c" />
        </folder>
        <folder Name="nRF_Drivers">
          <file file_name="../../../../../../integration/nrfx/legacy/nrf_drv_clock.c" />
          <file file_name="../../../../../../../../integration/nrfx/legacy/nrf_drv_uart.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_clock.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_gpiote.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_power_clock.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/prs/nrfx_prs.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uart.c" />
          <file file_name="../../../../../../modules/nrfx/drivers/src/nrfx_uarte.c" />
        </folder>
        <folder Name="nRF_Crypto backend mbed TLS">
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_aes.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_aes_aead.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_ecdsa.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_hash.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_hmac.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/mbedtls/mbedtls_backend_init.c" />
        </folder>
        <folder Name="nRF_Crypto">
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aead.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aes.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_aes_shared.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecc.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecdh.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_ecdsa.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_error.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hash.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hkdf.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_hmac.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_init.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_rng.c" />
          <file file_name="../../../../../../components/libraries/crypto/nrf_crypto_shared.c" />
        </folder>
        <folder Name="Board Support">
          <file file_name="../../../../../../components/libraries/bsp/bsp.c" />
          <file file_name="../../../../../../components/libraries/bsp/bsp_btn_ble.c" />
        </folder>
        <folder Name="nRF_Crypto backend nRF HW">
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_init.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_rng.c" />
          <file file_name="../../../../../../components/libraries/crypto/backend/nrf_hw/nrf_hw_backend_rng_mbedtls.c" />
        </folder>
        <folder Name="Application">
          <file file_name="../../../main.c" />
          <file file_name="../config/sdk_config.h" />
        </folder>
        <folder Name="nRF_micro-ecc">
          <file file_name="../../../../../../../../external/micro-ecc/nrf52hf_armgcc/armgcc/micro_ecc_lib_nrf52.a" />
        </folder>
        <folder Name="nRF_TLS">
          <file file_name="../../../../../../../../external/mbedtls/library/aes.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/aesni.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/arc4.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/asn1parse.c" />
          <file file_name="../../../../../../../../external/nrf_tls/mbedtls/replacements/asn1write.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/base64.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/bignum.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/blowfish.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/camellia.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ccm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/certs.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cipher.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cipher_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/cmac.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ctr_drbg.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/debug.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/des.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/dhm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecdh.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecdsa.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecp.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ecp_curves.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/entropy.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/entropy_poll.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/error.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/gcm.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/havege.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/hmac_drbg.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md2.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md4.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md5.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/md_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/memory_buffer_alloc.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/oid.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/padlock.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pem.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pk.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pk_wrap.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs11.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs12.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkcs5.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkparse.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/pkwrite.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/platform.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ripemd160.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/rsa.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha1.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha256.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/sha512.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cache.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_ciphersuites.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cli.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_cookie.c" />
          <file file_name="../../../../../../../../external/nrf_tls/mbedtls/replacements/ssl_srv.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_ticket.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/ssl_tls.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/threading.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/version.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/version_features.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_create.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_crl.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_crt.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/x509_csr.c" />
          <file file_name="../../../../../../../../external/mbedtls/library/xtea.c" />
        </folder>
        <folder Name="nRF_Oberon_Crypto">
          <file file_name="../../../../../../../../external/nrf_oberon/lib/nrf52/liboberon_2.0.4.a" />
        </folder>
        <folder Name="nRF_Segger_RTT">
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT.c" />
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT_Syscalls_SES.c" />
          <file file_name="../../../../../../external/segger_rtt/SEGGER_RTT_printf.c" />
        </folder>
        <folder Name="nRF_BLE">
          <file file_name="../../../../../../components/ble/common/ble_advdata.c" />
          <file file_name="../../../../../../components/ble/ble_advertising/ble_advertising.c" />
          <file file_name="../../../../../../components/ble/common/ble_conn_params.c" />
          <file file_name="../../../../../../components/ble/common/ble_conn_state.c" />
          <file file_name="../../../../../../components/ble/ble_link_ctx_manager/ble_link_ctx_manager.c" />
          <file file_name="../../../../../../components/ble/common/ble_srv_common.c" />
          <file file_name="../../../../../../components/ble/nrf_ble_gatt/nrf_ble_gatt.c" />
          <file file_name="../../../../../../components/ble/nrf_ble_qwr/nrf_ble_qwr.c" />
        </folder>
        <folder Name="nRF_BLE_Services">
          <file file_name="../../../../../../components/ble/ble_services/ble_nus/ble_nus.c" />
        </folder>
        <folder Name="nRF_SoftDevice">
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh.c" />
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh_ble.c" />
          <file file_name="../../../../../../components/softdevice/common/nrf_sdh_soc.c" />
        </folder>
        <configuration
          Name="Release"
          c_user_include_directories="../../../../../../components/libraries/delay." />
      </project>
      <configuration
        Name="Release"
        c_preprocessor_definitions="NDEBUG"
        gcc_optimization_level="Optimize For Size" />
      <configuration
        Name="Debug"
        c_preprocessor_definitions="DEBUG; DEBUG_NRF"
        gcc_optimization_level="None" />
    </solution>
    

Children
  • Hi DG,

    Please also add these include folders:

    ../../../../../../modules/nrfx for nrfx.h

    ../../../../../../integration/nrfx/legacy

    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.

    Also, if you are using the nRF5 SDK, please consider using the latest version, v17.1.0 instead.

    If you have strong reason to use v15.x.y, please consider using the latest version, v15.3.0.

    Otherwise, the nRF5 SDK is in maintenance mode, and we encourage all new projects to be based on the nRF Connect SDK.

  • Hi Hieu,

    now i am getting another error ,can you tell me what should add .and check this include directories

    c_user_include_directories="../../../config;../../../../../../components;../../../../../../components/ble/ble_advertising;../../../../../../components/ble/ble_dtm;../../../../../../components/ble/ble_link_ctx_manager;../../../../../../components/ble/ble_racp;../../../../../../components/ble/ble_services/ble_ancs_c;../../../../../../components/ble/ble_services/ble_ans_c;../../../../../../components/ble/ble_services/ble_bas;../../../../../../components/ble/ble_services/ble_bas_c;../../../../../../components/ble/ble_services/ble_cscs;../../../../../../components/ble/ble_services/ble_cts_c;../../../../../../components/ble/ble_services/ble_dfu;../../../../../../components/ble/ble_services/ble_dis;../../../../../../components/ble/ble_services/ble_gls;../../../../../../components/ble/ble_services/ble_hids;../../../../../../components/ble/ble_services/ble_hrs;../../../../../../components/ble/ble_services/ble_hrs_c;../../../../../../components/ble/ble_services/ble_hts;../../../../../../components/ble/ble_services/ble_ias;../../../../../../components/ble/ble_services/ble_ias_c;../../../../../../components/ble/ble_services/ble_lbs;../../../../../../components/ble/ble_services/ble_lbs_c;../../../../../../components/ble/ble_services/ble_lls;../../../../../../components/ble/ble_services/ble_nus;../../../../../../components/ble/ble_services/ble_nus_c;../../../../../../components/ble/ble_services/ble_rscs;../../../../../../components/ble/ble_services/ble_rscs_c;../../../../../../components/ble/ble_services/ble_tps;../../../../../../components/ble/common;../../../../../../components/ble/nrf_ble_gatt;../../../../../../components/ble/nrf_ble_qwr;../../../../../../components/ble/peer_manager;../../../../../../components/boards;../../../../../../components/drivers_nrf/usbd;../../../../../../components/libraries/atomic;../../../../../../../../components/libraries/atomic_fifo;../../../../../../components/libraries/atomic_flags;../../../../../../components/libraries/balloc;../../../../../../components/libraries/bootloader/ble_dfu;../../../../../../components/libraries/bsp;../../../../../../../../components/libraries/button;../../../../../../components/libraries/cli;../../../../../../components/libraries/crc16;../../../../../../components/libraries/crc32;../../../../../../components/libraries/crypto;../../../../../../components/libraries/crypto/backend/cc310;../../../../../../components/libraries/crypto/backend/cc310_bl;../../../../../../components/libraries/crypto/backend/cifra;../../../../../../components/libraries/crypto/backend/mbedtls;../../../../../../components/libraries/crypto/backend/micro_ecc;../../../../../../components/libraries/crypto/backend/nrf_hw;../../../../../../components/libraries/crypto/backend/nrf_sw;../../../../../../components/libraries/crypto/backend/oberon;../../../../../../components/libraries/csense;../../../../../../components/libraries/csense_drv;../../../../../../components/libraries/delay;../../../../../../components/libraries/ecc;../../../../../../components/libraries/experimental_log;../../../../../../components/libraries/experimental_log/src;../../../../../../components/libraries/experimental_memobj;../../../../../../components/libraries/experimental_mpu;../../../../../../components/libraries/experimental_ringbuf;../../../../../../components/libraries/experimental_section_vars;../../../../../../components/libraries/experimental_stack_guard;../../../../../../components/libraries/experimental_task_manager;../../../../../../components/libraries/fds;../../../../../../../../components/libraries/fifo;../../../../../../components/libraries/fstorage;../../../../../../components/libraries/gfx;../../../../../../../../components/libraries/gpiote;../../../../../../components/libraries/hardfault;../../../../../../components/libraries/hardfault/nrf52;../../../../../../components/libraries/hci;../../../../../../components/libraries/led_softblink;../../../../../../components/libraries/low_power_pwm;../../../../../../components/libraries/mem_manager;../../../../../../components/libraries/mutex;../../../../../../components/libraries/pwm;../../../../../../components/libraries/pwr_mgmt;../../../../../../components/libraries/queue;../../../../../../components/libraries/scheduler;../../../../../../components/libraries/stack_info;../../../../../../components/libraries/sdcard;../../../../../../components/libraries/slip;../../../../../../components/libraries/sortlist;../../../../../../components/libraries/spi_mngr;../../../../../../components/libraries/strerror;../../../../../../components/libraries/timer;../../../../../../components/libraries/twi_mngr;../../../../../../components/libraries/twi_sensor;../../../../../../../../components/libraries/uart;../../../../../../components/libraries/usbd;../../../../../../components/libraries/usbd/class/audio;../../../../../../components/libraries/usbd/class/cdc;../../../../../../components/libraries/usbd/class/cdc/acm;../../../../../../components/libraries/usbd/class/hid;../../../../../../components/libraries/usbd/class/hid/generic;../../../../../../components/libraries/usbd/class/hid/kbd;../../../../../../components/libraries/usbd/class/hid/mouse;../../../../../../components/libraries/usbd/class/msc;../../../../../../components/libraries/usbd/config;../../../../../../components/libraries/util;../../../../../../components/nfc/ndef/conn_hand_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ac_rec_parser;../../../../../../components/nfc/ndef/conn_hand_parser/ble_oob_advdata_parser;../../../../../../components/nfc/ndef/conn_hand_parser/le_oob_rec_parser;../../../../../../components/nfc/ndef/connection_handover/ac_rec;../../../../../../components/nfc/ndef/connection_handover/ble_oob_advdata;../../../../../../components/nfc/ndef/connection_handover/ble_pair_lib;../../../../../../components/nfc/ndef/connection_handover/ble_pair_msg;../../../../../../components/nfc/ndef/connection_handover/common;../../../../../../components/nfc/ndef/connection_handover/ep_oob_rec;../../../../../../components/nfc/ndef/connection_handover/hs_rec;../../../../../../components/nfc/ndef/connection_handover/le_oob_rec;../../../../../../components/nfc/ndef/generic/message;../../../../../../components/nfc/ndef/generic/record;../../../../../../components/nfc/ndef/launchapp;../../../../../../components/nfc/ndef/parser/message;../../../../../../components/nfc/ndef/parser/record;../../../../../../components/nfc/ndef/text;../../../../../../components/nfc/ndef/uri;../../../../../../components/nfc/t2t_lib;../../../../../../components/nfc/t2t_lib/hal_t2t;../../../../../../components/nfc/t2t_parser;../../../../../../components/nfc/t4t_lib;../../../../../../components/nfc/t4t_lib/hal_t4t;../../../../../../components/nfc/t4t_parser/apdu;../../../../../../components/nfc/t4t_parser/cc_file;../../../../../../components/nfc/t4t_parser/hl_detection_procedure;../../../../../../components/nfc/t4t_parser/tlv;../../../../../../components/softdevice/common;../../../../../../components/softdevice/s140/headers;../../../../../../components/softdevice/s140/headers/nrf52;../../../../../../components/toolchain/cmsis/include;../../..;../../../../../../external/cifra_AES128-EAX;../../../../../../external/fprintf;../../../../../../external/mbedtls/include;../../../../../../external/micro-ecc/micro-ecc;../../../../../../external/nrf_cc310/include;../../../../../../external/nrf_oberon../../../../../../external/nrf_oberon/include;../../../../../../external/nrf_tls/mbedtls/nrf_crypto/config;../../../../../../external/segger_rtt;../../../../../../../../integration/nrfx;../../../../../../integration/nrfx/legacy;../../../../../../modules/nrfx;../../../../../../modules/nrfx/drivers/include;../../../../../../../../modules/nrfx/hal;../../../../../../modules/nrfx/mdk;../config"

  • 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

Related