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
  • Hi again

    1. Interrupt priorities 2, 3 and 5-7 are available to the application. So priority level 5 should be okay to use. Seems like the sdk_config.h files needs an update. Thank you for notifying us.

    2. It should also be okay to set the app timer up to 7. It was done to all peripherals' default priority as of SDK v15.2.0 so it would be possible to set select peripherals lower instead of having to increase the priority of all the others, giving the priority settings a bit more leeway.

    Best regards,

    Simon

Reply
  • Hi again

    1. Interrupt priorities 2, 3 and 5-7 are available to the application. So priority level 5 should be okay to use. Seems like the sdk_config.h files needs an update. Thank you for notifying us.

    2. It should also be okay to set the app timer up to 7. It was done to all peripherals' default priority as of SDK v15.2.0 so it would be possible to set select peripherals lower instead of having to increase the priority of all the others, giving the priority settings a bit more leeway.

    Best regards,

    Simon

Children
Related