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.

  • My comments on the 2 points above:

    1. The hex file located in examples\nfc\record_url\hex is a precompiled one - ready to program. If you want to modify the example, you need to rebuild the project (either Keil5 or 4, IAR or gcc) located in examples\nfc\record_url\pca10040. The hex will be generated by the tool in e.g. arm5_no_packs_build. What you need to do is just flash it without SoftDevice. SoftDevice is not used in this example.
    2. NRF_LOG_USES_UART=1 should be enough to enable logs (works for me). Maybe check your serial terminal setup (baudrate = 115200, other settings should be default, 8 data bits, 1 stop bit, no parity)
Reply
  • My comments on the 2 points above:

    1. The hex file located in examples\nfc\record_url\hex is a precompiled one - ready to program. If you want to modify the example, you need to rebuild the project (either Keil5 or 4, IAR or gcc) located in examples\nfc\record_url\pca10040. The hex will be generated by the tool in e.g. arm5_no_packs_build. What you need to do is just flash it without SoftDevice. SoftDevice is not used in this example.
    2. NRF_LOG_USES_UART=1 should be enough to enable logs (works for me). Maybe check your serial terminal setup (baudrate = 115200, other settings should be default, 8 data bits, 1 stop bit, no parity)
Children
No Data
Related