NXP NFC Reader Library

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

NXP NFC Reader Library

591 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

573 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

565 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

548 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