Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NFC can't work with freertos in SKD15.3.0

Hi,

I add NFC to my project with freertos. The initialization of nfc is ok. After running few seconds ,it hang. If I comment the usr_nfc_init() that in the main() function, the project runs good.

I don't know why.

Can the NFC work with freertos? 

My SDK is nRF5 SDK 15.3.0. And my ic is nRF52840. 

void usr_nfc_init(void) {
  ret_code_t err_code;

  /* Set up FIFOs for data that are transfered over NFC */
  err_code = nfc_fifos_init();
  APP_ERROR_CHECK(err_code);

  /* Set up NFC */
  err_code = nfc_t4t_setup(nfc_callbackNULL);
  APP_ERROR_CHECK(err_code);

  /* Start sensing NFC field */
  err_code = nfc_t4t_emulation_start();
  APP_ERROR_CHECK(err_code);
}
Related