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);
}
Parents
  • Hi,

    I cannot find any resource conflicts between ESB, NFCT, and the FreeRTOS libraries in the SDK examples.

    ESB uses TIMER2 and TIMER3, while NFCT driver uses TIMER4. Have you modified any resources in the SDK?

    It could also be some priority related issues, but this is hard to say without looking at your project. Would you be able to upload the full project for review/debugging? If you do not want to post in a public case, I can convert it to private.

    Best regards,
    Jørgen

Reply
  • Hi,

    I cannot find any resource conflicts between ESB, NFCT, and the FreeRTOS libraries in the SDK examples.

    ESB uses TIMER2 and TIMER3, while NFCT driver uses TIMER4. Have you modified any resources in the SDK?

    It could also be some priority related issues, but this is hard to say without looking at your project. Would you be able to upload the full project for review/debugging? If you do not want to post in a public case, I can convert it to private.

    Best regards,
    Jørgen

Children
No Data
Related