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

SVC_REGISTER_FUNCTION: Could not compile Nordic crypto library

Hello,

if I want to use the Nordic crypto library, I include all nrf_crypto_xx .c files. While compilation, I get in IAR an error:

"explicit type is missing ("int" assumed) C:\XX\XX\SDK\nRF5_SDK_15.2.0_9412b96\components\libraries\crypto\nrf_crypto_svc.c 52'

It is caused from this function: SVC_REGISTER_FUNCTION

in: "nrf_crypto_svc.c"

If I exclude this .c file from build, everything works fine.

Question: What is the correct setting somewhere in the project to avoid this problem? Does excluding this file from build cause any bad sideffects? I think excluding something that Nordic wanted to be compiled shouldn't be the recomendation.

Thanks, Regards

Related