Hi
I am trying to build the BLE Secure DFU Bootloader example using SDK 17.02 and the PCA10040 Dev board. Following various threads in the forum, I have been successful in downloading, building and adding the micro-ecc library to the project file. I am at the point where all the files compile with no error but it fails during the linking stage with the following errors
1> Linking secure_bootloader_ble_s132_pca10040.elf 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/secure_bootloader_ble_s132_pca10040/nrf_dfu_validation.o: in function `crypto_init': 1> /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:233: undefined reference to `g_nrf_crypto_ecc_secp256r1_curve_info' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/secure_bootloader_ble_s132_pca10040/nrf_dfu_validation.o: in function `nrf_dfu_validation_signature_check': 1> /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:362: undefined reference to `nrf_crypto_hash_calculate' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:370: undefined reference to `g_nrf_crypto_hash_sha256_info' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/secure_bootloader_ble_s132_pca10040/nrf_dfu_validation.o: in function `nrf_dfu_validation_hash_ok': 1> /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:657: undefined reference to `nrf_crypto_hash_calculate' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: /Users/michael.sprauve/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:667: undefined reference to `g_nrf_crypto_hash_sha256_info' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: Output/Release/Obj/secure_bootloader_ble_s132_pca10040/nrf_dfu_validation.o: in function `boot_validation_extract': 1> /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:776: undefined reference to `nrf_crypto_hash_calculate' 1> /Applications/SEGGER Embedded Studio for ARM 5.40/gcc/arm-none-eabi/bin/ld: /Users/test/CodeDev/nRF5_SDK_current/components/libraries/bootloader/dfu/nrf_dfu_validation.c:791: undefined reference to `g_nrf_crypto_hash_sha256_info' Build failed
It seems like I don't have the config flags set correctly but I am not sure if it's that or something else
Thanks