NXP NFC Reader Library

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NXP NFC Reader Library

594 Views
Florian_37
Contributor II

Hello, 

i started using NXP NFC Reader Library for PN7462 and i recognized a weird thing. I don't want to use a RTOS, so i defined the macro PH_OSAL_NULLOS. Because of this definition, i now have two SysTick_Handler(), one in NfcLib/RTOS/phOsal/src/NullOs/portable/phOsal_Port_PN74xxxx.c and one in NfcLib/PN7462AU/phRtos/src/phRtos_NoRtos.c . The linker problem only disapears when i comment out one SysTick_Handler(). Is this intended to be like this or do i have to use any additional macros.

 

Best regards 

Florian

0 Kudos
Reply
3 Replies

576 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Florian_37

Hope you are doing well.

Please make sure you have removed PH_OSAL_FREERTOS from Project Properties > C/C++ General > Paths and Symbols; you can also define PH_OSAL_NULLOS in this same window.

Regards,
Eduardo.

0 Kudos
Reply

568 Views
Florian_37
Contributor II

Hi @EduardoZamora ,

already did that. I only defined PH_OSAL_NULLOS and PHFL_APP_NXPBUILD_CONFIG additionaly to the default definitons.

 

In my opinion this is a library issue. When  PH_OSAL_NULLOS is defined, PHFL_HALAPI_NO_RTOS is implicitly defined in ph_NxpBuild.h. Both macros independently control the presence of SysTick_Handler in the files phOsal_Port_PN74xxx.c and phRtos_NoRtos.c This leads to multiple implementations and linker errror. 

 

I mean for me it was no problem to comment out one implementation, but i am not  a big fan of touching library code. 

 

 

 

0 Kudos
Reply

551 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi,

My apologies, I was not able to reproduce this behavior on my end. Please use the latest version available of the NFC Reader Library for PN7462 and also import the Library by following a method similar to the one described in Section 5.3 of this document.

Regards,
Eduardo.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2312960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENXP%20NFC%20Reader%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20started%20using%20NXP%20NFC%20Reader%20Library%20for%20PN7462%20and%20i%20recognized%20a%20weird%20thing.%20I%20don't%20want%20to%20use%20a%20RTOS%2C%20so%20i%20defined%20the%20macro%20PH_OSAL_NULLOS.%20Because%20of%20this%20definition%2C%20i%20now%20have%20two%20SysTick_Handler()%2C%20one%20in%20NfcLib%2FRTOS%2FphOsal%2Fsrc%2FNullOs%2Fportable%2FphOsal_Port_PN74xxxx.c%20and%20one%20in%20NfcLib%2FPN7462AU%2FphRtos%2Fsrc%2FphRtos_NoRtos.c%20.%20The%20linker%20problem%20only%20disapears%20when%20i%20comment%20out%20one%20SysTick_Handler().%20Is%20this%20intended%20to%20be%20like%20this%20or%20do%20i%20have%20to%20use%20any%20additional%20macros.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%26nbsp%3B%3C%2FP%3E%3CP%3EFlorian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20NFC%20Reader%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313444%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200888%22%20target%3D%22_blank%22%3E%40EduardoZamora%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3Ealready%20did%20that.%20I%20only%20defined%20PH_OSAL_NULLOS%20and%20PHFL_APP_NXPBUILD_CONFIG%20additionaly%20to%20the%20default%20definitons.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20my%20opinion%20this%20is%20a%20library%20issue.%20When%26nbsp%3B%20PH_OSAL_NULLOS%20is%20defined%2C%20PHFL_HALAPI_NO_RTOS%20is%20implicitly%20defined%20in%20ph_NxpBuild.h.%20Both%20macros%20independently%20control%20the%20presence%20of%20SysTick_Handler%20in%20the%20files%20phOsal_Port_PN74xxx.c%20and%20phRtos_NoRtos.c%20This%20leads%20to%20multiple%20implementations%20and%20linker%20errror.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20mean%20for%20me%20it%20was%20no%20problem%20to%20comment%20out%20one%20implementation%2C%20but%20i%20am%20not%26nbsp%3B%20a%20big%20fan%20of%20touching%20library%20code.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313107%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20NFC%20Reader%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313107%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F255337%22%20target%3D%22_blank%22%3E%40Florian_37%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EHope%20you%20are%20doing%20well.%3C%2FP%3E%0A%3CP%3EPlease%20make%20sure%20you%20have%20removed%20PH_OSAL_FREERTOS%20from%20Project%20Properties%20%26gt%3B%20C%2FC%2B%2B%20General%20%26gt%3B%20Paths%20and%20Symbols%3B%20you%20can%20also%20define%20PH_OSAL_NULLOS%20in%20this%20same%20window.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EEduardo.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20NXP%20NFC%20Reader%20Library%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314012%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EMy%20apologies%2C%20I%20was%20not%20able%20to%20reproduce%20this%20behavior%20on%20my%20end.%20Please%20use%20the%20latest%20version%20available%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fapplications%2Ftechnologies%2Fsecurity%2Findustrial-security%2Fnfc-reader-library-software-support-for-nfc-frontend-solutions%3ANFC-READER-LIBRARY%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENFC%20Reader%20Library%3C%2FA%3E%20for%20PN7462%20and%20also%20import%20the%20Library%20by%20following%20a%20method%20similar%20to%20the%20one%20described%20in%20Section%205.3%20of%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12550.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ethis%20document%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3ERegards%2C%3CBR%20%2F%3EEduardo.%3C%2FP%3E%3C%2FLINGO-BODY%3E