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

Missing file when compiling NFC pairing example

Hi,

After setting up my IDE and toolchain and trying out some example codes, I wanted to try the example for NFC pairing from SDK ver 17.0.2, because the pairing via NFC will be key to my application scenario. I wanted to try out the example "ble_nfc_pairing_reference". After (hopefully successfully) compiling and adding the micro-ecc library to my project, I get an error when I try to compile in Segger Embedded Studio:

"can't open '.../SDK17.0.2/nRF5SDK1702d674dde/nRF5_SDK_17.0.2_d674dde/examples/ble_peripheral/experimental/ble_nfc_pairing_reference/pca10056/s140/ses/Output/Release/Obj/ble_nfc_pairing_reference_pca10056_s140/nrf_hw_backend_init.asm' for writing: No such file or directory"

Seems like this file is used to initialize the hardware. But where do I get it from? And why is it missing in the example? Or am I missing something?

Any help would be appreciated.

Parents Reply Children
  • Is it under nrf52hf_armgcc\armgcc? If so, try to clean and rebuild the project or redownload the SDK. You should not get an error like that. 

    -Amanda H. 

  • Yes, it is under nrf52hf_armgcc\armgcc. I now reinstalled the whole SDK, re-compiled the micro-ecc library and opened the SES example project. The compile process now gets further, at least it compiles the nrff_hw_backend_init.c file and seems to find hw_backend_init.asm. But now it does not find "nrf_hw_backend_rng_mbedtls.asm".

    Whole error string:

    can't open '.../nRF5SDK1702d674dde/nRF5_SDK_17.0.2_d674dde/examples/ble_peripheral/experimental/ble_nfc_pairing_reference/pca10056/s140/ses/Output/Release/Obj/ble_nfc_pairing_reference_pca10056_s140/nrf_hw_backend_rng_mbedtls.asm' for writing: No such file or directory

    Maybe I am doing something wrong in SES? Since I am using the "ble_nfc_pairing_reference" example the nRF_micro-ecc file is already in the project (picture below), so I did not include it as described on the corresponding infocenter site. Maybe this is the reason? 

  • Hi, 

    I cannot reproduce the error with the unmodified example.  Did you modify the example? If so, what is that? 

    -Amanda H.

  • Hi, 

    Thank you for replying. No, I haven't changed anything in the example - of course except the neccessary configurations in sdk_config.h.

    I have now gone even more steps back and uninstalled and then reinstalled SES along with the SDK and the nRF Command Line tool. Of course I compiled the micro-ecc library with MinGW again and configured the sdk_config.h so that only micro-ecc is enabled.

    It got better again, now failing at the 61th file with the same error:

    'cc310_backend_chacha_poly_aead.h: No such file or directory'

    It does get better, I really try to stick to the descriptions and tutorials and it still fails.

    Do you have any more suggestions on what the issue is?

  • Hi, 

    AHass said:

    It got better again, now failing at the 61th file with the same error:

    'cc310_backend_chacha_poly_aead.h: No such file or directory'

    The file is under nRF5_SDK\components\libraries\crypto\backend\cc310, and it supposes to be included as in the example:

    Could you try this ble_nfc_pairing_reference.zip? Extract the file under nRF5_SDK_17.0.2_d674dde\examples\ble_peripheral\experimental. 

    -Amanda H.  

Related