I am trying to get the NFC communication up and running.
I have tried the writable_ndef_msg and it runs on my kit. Now I try to make it work in my project, but I get some strange behavior.
I don't get any error codes, but the interrupt handler for the NFC only gets the NFC_T4T_EVENT_FIELD_OFF event. None of the other events are generated.
I have tried to use it the way it is used in the NFC_Uart example:
/* Set up NFC */
err_code = nfc_t4t_setup(nfc_callback, NULL);
APP_ERROR_CHECK(err_code);
/* Start sensing NFC field */
err_code = nfc_t4t_emulation_start();
APP_ERROR_CHECK(err_code);
And I have also tried as writable_ndef_msg example:
uint32_t size = sizeof(m_ndef_msg_buf);
ndef_file_default_message(m_ndef_msg_buf, &size);
/* Set up NFC */
uint8_t Err = nfc_t4t_setup(nfc_callback, NULL);
APP_ERROR_CHECK(Err);
/* Run Read-Write mode for Type 4 Tag platform */
Err = nfc_t4t_ndef_rwpayload_set(m_ndef_msg_buf, sizeof(m_ndef_msg_buf));
APP_ERROR_CHECK(Err);
/* Start sensing NFC field */
Err = nfc_t4t_emulation_start();
APP_ERROR_CHECK(Err);
But both tries only generates NFC_T4T_EVENT_FIELD_OFF event (multiple times). Does anyone know how that can be - is there anyone who has made a R/W example with NFC tag4 that can send/receive data without the flash has to be enabled?