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.

  • Spent much time finally worked it out.

    1. If I want to modify \record_url\main.c file and build my own .hex file, I have to flash not only nrf52832_xxaa.hex but also softdevice.hex. But why? Can I have a explanation? Thanks!

    2. According to link text, NRF_LOG_USES_RTT=1 does also work for me. I finally can observe the logs on RTT viewer, but ENABLE_DEBUG_LOG_SUPPORT or NRF_LOG_USES_UART=1 still didn't get anything via Tera Term...

Reply
  • Spent much time finally worked it out.

    1. If I want to modify \record_url\main.c file and build my own .hex file, I have to flash not only nrf52832_xxaa.hex but also softdevice.hex. But why? Can I have a explanation? Thanks!

    2. According to link text, NRF_LOG_USES_RTT=1 does also work for me. I finally can observe the logs on RTT viewer, but ENABLE_DEBUG_LOG_SUPPORT or NRF_LOG_USES_UART=1 still didn't get anything via Tera Term...

Children
No Data
Related