This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf_crypto already defined

Hi,

i've a problem with the implementation of nrf_crypto.c, each function has already been defined according to the build output.

..\..\..\..\..\..\components\libraries\crypto\nrf_crypto.c(19): error:  #247: function "nrf_crypto_init" has already been defined

In nrf_crypto.c there is this function in error:

   uint32_t nrf_crypto_init(void)
   {
       ecc_init(false);

       return NRF_SUCCESS;
   }

And in nrf_crypto.h if i comment this line the error disappear :

#ifdef SVC_INTERFACE_CALL_AS_NORMAL_FUNCTION
  uint32_t nrf_crypto_init(void);
#else
  // SVCI(NRF_CRYPTO_SVCI_INIT, uint32_t, nrf_crypto_init);
#endif

So, can you explain me why this makes disappear the error and if it can create another error.

Thanks you in advance, Maxim

Parents Reply Children
No Data
Related