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

NFC example not working

Hello,

I am running the NFC example applicaiotn(URI Message Example) in SDK5 v11.0.0. I am using a PCA10040(V1.1.1) dev board with the NFC antenna connected to it and testing against an NFC-enabled Android phone(SONY ZR) with NXP TagInfo App installed.

I followed steps at link text, but couldn't observe that LED 1 is lit and of course URL "www.nordicsemi.com" was not opened on SmartPhone and TagInfo showed nothing. The results were the same with running other NFC examples.

I've retried the same test on another PCA10040(V0.9.0)dev board with another NFC antenna to temporarily exclude the hardware issue. Also I've checked the CLOCK_ENABLED is 1 in nrf_drv_config.h as nrf_drv_config.h

Some information for device is as below:

-Softdevice s132 with firmware S132_nRF52_2.0.0

-Nordicsemi nRF5 SDK v11.0.0

-PATH: \examples\nfc\record_url\pca10040\arm5_no_packs

So, any ideas would be great appreciated!!!

Moreover, how to enable the NFC_HAL log as in link text

Thanks

Parents
  • First of all, the example you mentioned is meant to work without SoftDevice. It is not possible to flash this example (when compiled with default settings from SDK) on a device with SoftDevice programmed before. To enable UART logs, configure NRF_LOG_USES_UART=1, for RTT logs, configure NRF_LOG_USES_RTT=1 (global defines) in project options.

  • Thank you for your prompt reply. It's really helpful! After erasing all partitions and only programming \examples\nfc\record_url\hex\nfc_url_record_pca10040.hex, it works! And then I try to change URL within the \record_url\main.c . Rebuild(Keil uVersion V5.17.0.0) and program again, but nfc couldn't work as before. What I observe is the nrf52832_xxaa.hex(user build?) I build and flash is generated in \examples\nfc\record_url\pca10040\arm5_no_packs_build, whereas the nfc_url_record_pca10040.hex(official build?) mentioned above is in \examples\nfc\record_url\hex\ , but the imgae size is the same. So is there any other configuration that I need to setup? Sorry, I'm really not familiar with Nordic solution!

Reply
  • Thank you for your prompt reply. It's really helpful! After erasing all partitions and only programming \examples\nfc\record_url\hex\nfc_url_record_pca10040.hex, it works! And then I try to change URL within the \record_url\main.c . Rebuild(Keil uVersion V5.17.0.0) and program again, but nfc couldn't work as before. What I observe is the nrf52832_xxaa.hex(user build?) I build and flash is generated in \examples\nfc\record_url\pca10040\arm5_no_packs_build, whereas the nfc_url_record_pca10040.hex(official build?) mentioned above is in \examples\nfc\record_url\hex\ , but the imgae size is the same. So is there any other configuration that I need to setup? Sorry, I'm really not familiar with Nordic solution!

Children
No Data
Related