This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NFC Tag can't work with BLE in SDK15

Hello everyone,

now i'm working with nRF52840 PDK(Engineering B) and i migrate my project from SDK 14.1 to SDK 15.  My starting point is ble_app_template and i want to use NFC Tag with it. 

My code works fine in SDK 14.1, but it can't work in SDK15.

Here is my code:

void NFC_Emulation(void)
{
		uint32_t err_code;
		uint32_t len = sizeof(m_ndef_msg_buf);
		
		err_code = nfc_t2t_setup(nfc_callback, NULL);
		
		info_msg_encode(m_ndef_msg_buf, &len);
	
		err_code = nfc_t2t_payload_set(m_ndef_msg_buf, len);
    APP_ERROR_CHECK(err_code);
		
    /* Start sensing NFC field */
    err_code = nfc_t2t_emulation_start();
    APP_ERROR_CHECK(err_code);		
		
}

and this is NFC setting:

There are no error in Keil, but my smartphone can't detect NFC Tag.

Is something changed in SDK15 or what am i missing?

I would appreciate your help.

Regards,

Fengjie

Related