Build Issue Integrating central NFC poller sample code into nRF5340 ADK headset app

Hi.

I have integrated the NFC samples (nRF5340 DK) into the audio headset app (nRF5340 ADK), using SDK 2.5.2.  

For simplicity I've created two builds, a central version and a peripheral version.

The peripheral version was fairly straight forward to get to build. The central version has been giving some build issues.

I am getting 'undefined references' where the object files are being brought together, although seems to build into the objects ok.

The main items in question are nfc_poller_init/nfc_poller_process and log_set_tag.

The nfc_ functions are included in nfc_poller.h and nfc_poller.c, and these have been copied from the central_nfc_pairing sample with these two source files added to the source directory of the modified headset app in the same way they were for the central_nfc_pairing sample.  #include "nfc_poller.h" was added to the top of main.c and VS code picks up this link within the IDE and there are no squiggles or obvious issues.

log_set_tag is included in log_core.h, and is referenced in fw_app_info.c.  There is no #include for log_core.h at the top of fw_app_info.c, although this .c file is build generated, so it does not seem obvious that I can add the #include where I would expect to.

What can be causing these?

Thanks, Larry.

Parents
  • I am also having difficulty inserting the VS code terminal output into this ticketing system.  The OK button has no effect, if I paste this into the comment box I get an orange error box pop up.

  • Hi Laurence

    'undefined reference' errors are usually caused by some missing Kconfig configurations. 

    Did you make sure to copy the following configuration from the central_nfc_pairing sample into your own project configuration? 

    #Condif NFC modules
    CONFIG_NFC_NDEF=y
    CONFIG_NFC_NDEF_RECORD=y
    CONFIG_NFC_NDEF_TEXT_RECORD=y
    CONFIG_NFC_NDEF_MSG=y
    CONFIG_NFC_NDEF_PARSER=y
    CONFIG_NFC_T2T_PARSER=y
    CONFIG_NFC_T4T_HL_PROCEDURE=y
    CONFIG_NFC_TNEP_POLLER=y
    CONFIG_NFC_NDEF_LE_OOB_REC=y
    CONFIG_NFC_NDEF_LE_OOB_REC_PARSER=y
    CONFIG_NFC_NDEF_CH_MSG=y
    CONFIG_NFC_TNEP_CH=y
    
    CONFIG_POLL=y

    Larry_rad said:
    I am also having difficulty inserting the VS code terminal output into this ticketing system.  The OK button has no effect, if I paste this into the comment box I get an orange error box pop up.

    Could you try the Insert -> Code feature? 

    This is generally the best way to include logs, source code etc into a ticket. 

    Best regards
    Torbjørn

Reply
  • Hi Laurence

    'undefined reference' errors are usually caused by some missing Kconfig configurations. 

    Did you make sure to copy the following configuration from the central_nfc_pairing sample into your own project configuration? 

    #Condif NFC modules
    CONFIG_NFC_NDEF=y
    CONFIG_NFC_NDEF_RECORD=y
    CONFIG_NFC_NDEF_TEXT_RECORD=y
    CONFIG_NFC_NDEF_MSG=y
    CONFIG_NFC_NDEF_PARSER=y
    CONFIG_NFC_T2T_PARSER=y
    CONFIG_NFC_T4T_HL_PROCEDURE=y
    CONFIG_NFC_TNEP_POLLER=y
    CONFIG_NFC_NDEF_LE_OOB_REC=y
    CONFIG_NFC_NDEF_LE_OOB_REC_PARSER=y
    CONFIG_NFC_NDEF_CH_MSG=y
    CONFIG_NFC_TNEP_CH=y
    
    CONFIG_POLL=y

    Larry_rad said:
    I am also having difficulty inserting the VS code terminal output into this ticketing system.  The OK button has no effect, if I paste this into the comment box I get an orange error box pop up.

    Could you try the Insert -> Code feature? 

    This is generally the best way to include logs, source code etc into a ticket. 

    Best regards
    Torbjørn

Children
No Data
Related