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.
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.
3) Set the optimization as None (-O0) from the project properties (Project -> Properties -> C/C++ Build -> Settings -> MCU C Compiler -> Optimization).
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!
-----------------------------------------------------------------------------------------------------------------------