I have ported the NFC URI example to a custom project that I am working on (platform details listed below). I am using an Android phone running NXP tag info app to read the tag. I am using the NFC_T2T_HAL along with nfc_t2t_lib_gcc.a to create the NFC tag.
If I do not enable BLE functionality then the NFC tag can be read 100% of the time. However, when I enable BLE functionality I can only read the NFC tag around 25% of the time. When I can read the tag it is intermittent. I may be able to read the tag a few times and then it will stop. But often I cannot read the tag at all. When the tag cannot be read resetting the nRF52840 will sometimes allow the tag to be read a few times before it stops again. When the tag cannot be read I do not see any events for the NFC being triggered (field on, field off, etc). It's as if the NFC module is completely dead.
I have seen other posts regarding problems with the soft device and NFC and I believe I have incorporated all the solutions described in those posts.
I have verified
- BOARD_PCA10056 is defined
- HAL_NFC_NRF52840_ENGINEERING_ABC_WORKAROUND is defined
- HAL_NFC_ENGINEERING_BC_FTPAN_WORKAROUND is not defined
Any ideas as to what would cause the NFC module to work intermittently as described above?
NFC tag reader
- Samsung Galaxy S6 (model SM-G925T)
- Android 7.0
- NXP Tag Info app
Hardware
- nRF52840 DK PCA10056 0.12.0 2018.9
SDK
- nRF5_SDK_15.0.0_a53641a
Toolchain
- gcc-arm-none-eabi-7-2018-q2-update
