APP_ERROR_CHECK(NRF_LOG_INIT(NULL)); ?

Dear Members,

I want to run :

E:\nRF5_SDK_17.0.2_d674dde\examples\peripheral\spi\main.c

on this line :

APP_ERROR_CHECK(NRF_LOG_INIT(NULL));

I get :

error : use of undeclared indentifier "NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY"

and the app can not do NRF_LOG_INFO,

How can I rectify it ?

Thanks

Parents Reply Children
  • Hi,

    Undeclared identifier means that the compiler was not able to find the function declaration, which implies that the file including the declaration has not been included. I tried building the SPI example in Keil and managed it fine without any build errors. Which means that either you have modified the project in some way or you didn't open the project correctly. Did you use the project icon:

Related