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
  • My project use esb. And I find that if I use ble, the NFC can work. 

    So is there any suggestion when use esb and NFC with freertos?

    ----------------------------------------------------------------

    BLE:

      ble_stack_init();
      gap_params_init();
      gatt_init();
      services_init();
      advertising_init();
      conn_params_init();

      // Start advertise
      advertising_start();
    ------------------------------------------------------------------
    ESB:
    // Initialize
    clocks_start();
    err_code = esb_init();
    APP_ERROR_CHECK(err_code);
    ---------------------------------------------------------------------
Reply
  • My project use esb. And I find that if I use ble, the NFC can work. 

    So is there any suggestion when use esb and NFC with freertos?

    ----------------------------------------------------------------

    BLE:

      ble_stack_init();
      gap_params_init();
      gatt_init();
      services_init();
      advertising_init();
      conn_params_init();

      // Start advertise
      advertising_start();
    ------------------------------------------------------------------
    ESB:
    // Initialize
    clocks_start();
    err_code = esb_init();
    APP_ERROR_CHECK(err_code);
    ---------------------------------------------------------------------
Children
No Data
Related