This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

cc310_backend_rng.h: No such file or directory

Hello

I am using sdk v17. I am merging the example of ble_app_uart and crypto_aes_ctr.

I added files about crypto and set the file path.
However, the path error is printed as below when build.

//nrf_crypto_rng_backend.h

#include "cc310_backend_rng.h"
#include "nrf_hw_backend_rng.h"
#include "nrf_hw_backend_rng_mbedtls.h"
#include "optiga_backend_rng.h"

//cc310_backend_rng.h: No such file or directory

This is my file path.

../../../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/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/csense
../../../../../../components/libraries/csense_drv
../../../../../../components/libraries/delay
../../../../../../components/libraries/ecc
../../../../../../components/libraries/experimental_section_vars
../../../../../../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/hci
../../../../../../components/libraries/led_softblink
../../../../../../components/libraries/log
../../../../../../components/libraries/log/src
../../../../../../components/libraries/low_power_pwm
../../../../../../components/libraries/mem_manager
../../../../../../components/libraries/memobj
../../../../../../components/libraries/mpu
../../../../../../components/libraries/mutex
../../../../../../components/libraries/pwm
../../../../../../components/libraries/pwr_mgmt
../../../../../../components/libraries/queue
../../../../../../components/libraries/ringbuf
../../../../../../components/libraries/scheduler
../../../../../../components/libraries/sdcard
../../../../../../components/libraries/slip
../../../../../../components/libraries/sortlist
../../../../../../components/libraries/spi_mngr
../../../../../../components/libraries/stack_guard
../../../../../../components/libraries/strerror
../../../../../../components/libraries/svc
../../../../../../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/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/platform
../../../../../../components/nfc/t2t_lib
../../../../../../components/nfc/t2t_parser
../../../../../../components/nfc/t4t_lib
../../../../../../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/s132/headers
../../../../../../components/softdevice/s132/headers/nrf52
../../../../../../components/toolchain/cmsis/include
../../../../../../../../components/libraries/hardfault/nrf52
../../../../../../../../components/libraries/stack_info 
../../../../../../../../components/drivers_nrf/nrf_soc_nosd
../../../../../../../../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/crypto/backend/optiga
../../../../../../external/fprintf
../../../../../../external/segger_rtt
../../../../../../external/utf_converter
../../../../../../integration/nrfx
../../../../../../integration/nrfx/legacy
../../../../../../modules/nrfx
../../../../../../modules/nrfx/drivers/include
../../../../../../modules/nrfx/hal
../../../../../../modules/nrfx/mdk
../../../../../../../../external/cifra_AES128-EAX
../../../../../../../../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
../config

May I know the problem with this?
(I'm adding my project files.)

Thank you.

Parents
  • Hi,

    I have not seen this error message before, to be honest. However, it seem to me you are using <SDK>\examples\ble_peripheral\ble_crypto\pca10040\s132\ses\ble_app_uart_pca10040_s132.emProject? If so, this is a project for the nRF52832, which does not have a CryptoCell peripheral. So it cannot work. The only nRF52 device with CryptoCell is nRF52840, and the DK for that is PCA10056.

    Note that you can still use nrf_crypto with a SW backend, but not CC310. However, you still need the path etc to CC310 header files in your project, as it is included in for instance the various *_backend.h files. Please see an example project that use nrf_crypto and duplicate all includes, all configuration, all C files etc. Then you just adapt sdk_config.h to enable what you need.

Reply
  • Hi,

    I have not seen this error message before, to be honest. However, it seem to me you are using <SDK>\examples\ble_peripheral\ble_crypto\pca10040\s132\ses\ble_app_uart_pca10040_s132.emProject? If so, this is a project for the nRF52832, which does not have a CryptoCell peripheral. So it cannot work. The only nRF52 device with CryptoCell is nRF52840, and the DK for that is PCA10056.

    Note that you can still use nrf_crypto with a SW backend, but not CC310. However, you still need the path etc to CC310 header files in your project, as it is included in for instance the various *_backend.h files. Please see an example project that use nrf_crypto and duplicate all includes, all configuration, all C files etc. Then you just adapt sdk_config.h to enable what you need.

Children
No Data
Related