Hi,
Sorry for the late reply.
As you told the components were missing in my build . But the NFC packages were added in device.mk .Need to figure out what making the components to be excluded in the build. Right now i am using mm command and flashing as a module.Now the NFC service is registered and listed out in the service list.
But now I am facing a different issue .The firmware download is failing. I believe there should be a firmware in the Android files system under /vendor/firmware as I saw the below code snippet in NativeNfcManager.jave file
private static final String NFC_CONTROLLER_FIRMWARE_FILE_NAME = "/vendor/firmware/libpn544_fw.so";
I copied the firmware file manually in my target sd card and provided full permission to the file . But the logcat message shows firmware download failed
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 1
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 0
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 1
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 1
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 0
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 1
E/NxpHal ( 699): Force FW Download, NFCC not coming out from Standby
D/NxpExtns( 699): const CNfcParam* CNfcConfig::find(const char*) const found NXP_SYS_CLK_SRC_SEL=(0x1)
D/NxpExtns( 699): const CNfcParam* CNfcConfig::find(const char*) const found NXP_SYS_CLK_FREQ_SEL=(0x0)
D/NxpExtns( 699): const CNfcParam* CNfcConfig::find(const char*) const found NXP_SYS_CLOCK_TO_CFG=(0x1)
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 2
E/NxpFwDnld( 699): phDnldNfc_InitImgInfo: FAILED
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 0
D/NxpTml ( 699): phTmlNfc_i2c_reset(), VEN level 1
E/NxpHal ( 699): FW Download failed - NFCC init will continue
D/NfcAdaptation( 699): NfcAdaptation::HalDeviceContextCallback: event=6
I/BrcmNfcNfa( 699): nfc_main_hal_cback event: HAL_NFC_ERROR_EVT(0x6), status=1
I/BrcmNfcNfa( 699): nfc_main_handle_hal_evt(): HAL event=0x6
I tried with libpn547_fw.so version firmware also. But same error occurs?....Any idea?