Change to NFC library

Hi,

In ncs/v3.1.0/modules/hal/nordic/nrfx/drivers/include/nrfx_nfct.h, the enum 'nrfx_nfct_param_id_t' is defined as:

/** @brief NFCT driver parameter types. */
typedef enum
{
    NRFX_NFCT_PARAM_ID_FDT,     ///< NFC-A Frame Delay Time parameter.
    NRFX_NFCT_PARAM_ID_FDT_MIN, ///< NFC-A Frame Delay Time Min parameter.
    NRFX_NFCT_PARAM_ID_SEL_RES, ///< Value of the 'Protocol' field in the NFC-A SEL_RES frame.
    NRFX_NFCT_PARAM_ID_NFCID1,  ///< NFC-A NFCID1 setting (NFC tag identifier).
} nrfx_nfct_param_id_t;

In the nrfx support libraries shipped to us with a vendor Bluetooth stack, the enum is defined as:

/** @brief NFCT driver parameter types. */
typedef enum
{
    NRFX_NFCT_PARAM_ID_FDT,     ///< NFC-A Frame Delay Time parameter.
    NRFX_NFCT_PARAM_ID_SEL_RES, ///< Value of the 'Protocol' field in the NFC-A SEL_RES frame.
    NRFX_NFCT_PARAM_ID_NFCID1,  ///< NFC-A NFCID1 setting (NFC tag identifier).
} nrfx_nfct_param_id_t;

We are using the NFC libraries (libnfc_t2t.a and libnfc_t4t.a) from SDK v3.1.0 so it appears that v3.1.0 libraries are incompatible with the nrfx support libraries shipped with the Bluetooth stack.

Can you advise in which SDK version the above enum was changed? I'm thinking that I should use the libnfc_t2t.a and libnfc_t4t.a libraries from an SDK version prior to the change.

Kind regards,

Andrew Coad

Parents
  • Hi Andrew

    The 

    NRFX_NFCT_PARAM_ID_FDT_MIN configuration parameter was added as part of nrfx v2.9.0 back in July of 2022, so the libraries or Bluetooth stack you have been sent is rather old at this point. What Bluetooth stack is this exactly? From what I can see, the release this NFCT library was viable was in NCS v2.0.1.
     
    Best regards,
    Simon
  • Hi Simonr,

    Thank you for your response.

    The Bluetooth stack is from Packetcraft. NFC is quite separate from Bluetooth but it still links in to the same NRFX libraries...

    I can confirm that NCS 2.0.0 has the older enum declaration; NCS 2.1.0 has the newer declaration. I do not see a NCS 2.0.1 to download (using VS Code).

    I guess my options are 1) to use libnfc_t2t.a and libnfc_t4t.a from NCS 2.0.0 or 2) find a way to build the NFC part using libraries from NCS 3.1.0 while building the Bluetooth part using the provided NRFX libraries.

    Kind regards,

    Andrew Coad

Reply
  • Hi Simonr,

    Thank you for your response.

    The Bluetooth stack is from Packetcraft. NFC is quite separate from Bluetooth but it still links in to the same NRFX libraries...

    I can confirm that NCS 2.0.0 has the older enum declaration; NCS 2.1.0 has the newer declaration. I do not see a NCS 2.0.1 to download (using VS Code).

    I guess my options are 1) to use libnfc_t2t.a and libnfc_t4t.a from NCS 2.0.0 or 2) find a way to build the NFC part using libraries from NCS 3.1.0 while building the Bluetooth part using the provided NRFX libraries.

    Kind regards,

    Andrew Coad

Children
No Data
Related