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

nfc example for gcc?

I am working on nrf52 DK board with eclipse gcc + nRF52 SDK 0.9.2. I found the experimental nfc project but it does not include the gcc make file. I would like to ask:

Can I build that example with gcc? I try to add those nfc code in the make file. But how to add the .lib in the make file? I try to copy the hrs example make file and add this but seems not work with below errors...

INC_PATHS += -L../../../../../../components/libraries/experimental_nfc/nfc_lib

LIBRARIES += -lnfc_lib.lib

C:\nRF52_SDK_0.9.2_dbc28c9\examples\ble_peripheral\experimental_ble_app_hrs_pairing_nfc\pca10036\s132\armgcc/../../../main.c:1044: undefined reference to nfcSetup' make[1]: Leaving directoryC:/nRF52_SDK_0.9.2_dbc28c9/examples/ble_peripheral/experimental_ble_app_hrs_pairing_nfc/pca10036/s132/armgcc' C:\nRF52_SDK_0.9.2_dbc28c9\examples\ble_peripheral\experimental_ble_app_hrs_pairing_nfc\pca10036\s132\armgcc/../../../main.c:1050: undefined reference to nfcSetPayload' C:\nRF52_SDK_0.9.2_dbc28c9\examples\ble_peripheral\experimental_ble_app_hrs_pairing_nfc\pca10036\s132\armgcc/../../../main.c:1056: undefined reference tonfcStartEmulation' collect2.exe: error: ld returned 1 exit status make[1]: *** [nrf52832_xxaa_s132] Error 1 make: *** [all] Error 2

Related