PN5180 Library with software set to PH_OSAL_NULLOS (NfcrdlibEx1_BasicDiscoveryLoop) not working

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

PN5180 Library with software set to PH_OSAL_NULLOS (NfcrdlibEx1_BasicDiscoveryLoop) not working

2,076 Views
jorisdebeer
Contributor I

Hi NXP support and forum,

we have the PNEV5180 evalboard.

This board works perfect when using the NFC Cockipt application.

It also works with the default NfcrdlibEx1_BasicDiscoveryLoop application in LPCexpresso.

Now we changed the BasicDiscoveryloop example to use the non-OS option since

we want to integrate this into our existing non-OS project.

This does not work.

We used the #define NXPBUILD__PH_OSAL_NULLOS.

We see the project start up (debug), we see communication between the NXPCPU and the PN5180,

but when we put a card close to the antenna, no reaction from the software.

We use NFC Reader Library for PNEV5180B - V04.030.00.011627.

Can you assist in getting this demo program to work without the OS?

Thank you.

1 Reply

1,342 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Joris De Beer,

Please follow the next steps to get the NullOS mode working:

1) In the file ph_NxpBuild_App.h comment out the macro NXPBUILD__PH_OSAL_FREERTOS and enable the macro NXPBUILD__PH_OSAL_NULLOS.

 

2) Exclude the FreeRTOS files from the build. For this right click on the FreeRTOS folder -> Resource Configurations -> Exclude from Build and select the Debug and Release configurations.

 

Exclude_FreeRTOS.jpg

 

3) Set the optimization as None (-O0) from the project properties (Project -> Properties -> C/C++ Build -> Settings -> MCU C Compiler -> Optimization).

 

pastedImage_2.png

Then build and run the project. It should work as expected.

Best Regards!,
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply