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

NFC stops working

Hello Devzone,

For my project I am using NFC and I am using the writeable NDEF message project as an example.

Everything is working except I have found one issue.

Whenever I receive the NFC_T4T_EVENT_FIELD_ON event and I get an interrupt that takes time to complete NFC stops working.

I can still read and write my device but the NFC_T4T_EVENT_NDEF_UPDATED is never triggered.

I use this event to process all incoming data.

This issue can be easily reproduced by adding the following code in the NFC_T4T_EVENT_FIELD_ON event

uint32_t temp = 100000;
while(--temp); // Simulate interrupt by "waiting" in event.

How can I solve this problem that the NFC_T4T_EVENT_NDEF_UPDATED  will be triggered if I receive an interrupt in the NFC_T4T_EVENT_FIELD_ON event?

Parents Reply Children
  • I am using RTT backend. I have added some additional prints here and there and this is what I've got.

    Every time my device is read, I also do a write so every time the text I got read prints, it should follow up with a I got written

     <info> app_timer: RTC: initialized.
    <info> app: NFC starting initializaion
    <debug> ndef_file_m: FDS event 0 with result 0.
    <info> ndef_file_m: Found NDEF file record.
    <debug> ndef_file_m: NDEF file data length: 24 bytes.
    <debug> ndef_file_m:  00 16 C1 01 00 00 00 0F|........
    <debug> ndef_file_m:  55 01 6E 6F 72 64 69 63|U.nordic
    <debug> ndef_file_m:  73 65 6D 69 2E 63 6F 6D|semi.com
    <debug> app: NFC active
    1
    <info> app: NFC starting encryption
    Field on
    I got read
    Field off
    Field on
    <info> app: NFC starting decryption
    Correct
    I got written
    Interrupt
     Field off
    Interrupt
     Interrupt
     Field on
    I got read
    Field off
    Field on
    <info> app: NFC starting decryption
    Correct
    I got written
    Field off
    Interrupt
     Interrupt
     Field on
    I got read
    Field off
    Field on
    Interrupt
     Field off
    Interrupt
     Interrupt
     Field on
    Field off
    Field on
    <info> app: NFC starting decryption
    Correct
    I got written
    Field off
    Interrupt
     Interrupt
     Field on
    I got read
    Field off
    Interrupt
     Field off
    Interrupt
     Interrupt
     Field on
    I got read
    Field off
    Field on
    <info> app: NFC starting decryption
    Correct
    I got written
    Field off
    Interrupt
     Interrupt
     Field on
    Interrupt
     Interrupt

Related