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

There is a bug in sdk 1.3.0. When compile the "mbedtls" under the path of "modules\nrfxlib\nrf_security\src\mbedtls\" . I get the following error : mbedtls/library/chacha20.c:29:10: error: #include expects "FILENAME" or

I think there is a bug in the west tool.  If only one -Dxxxx=”xx.h"  parameter  in the command-line, the quotes will be filtered.  So update the  "nrfxlib\nrf_security\src\mbedtls\shared\CMakeLists.txt" , add a ‘NONE’ micro into the command-line:

-  target_compile_definitions(mbedcrypto_shared PRIVATE
-     MBEDTLS_CONFIG_FILE="nrf-config-noglue.h"
-  )

+  target_compile_definitions(mbedcrypto_shared PRIVATE
+   NONE PRIVATE MBEDTLS_CONFIG_FILE="nrf-config-noglue.h"
+  )

it looks work for me 

Related